home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.94k stars 29.03k forks source link

Rfxtrx does not work anymore since last update #113698

Closed pljda closed 2 months ago

pljda commented 3 months ago

The problem

Since the last release 2024.03, my integration Rfxtrx does not start any more. i am running Ha on the Yellow

What version of Home Assistant Core has the issue?

2024.03.1

What was the last working version of Home Assistant Core?

2024.02.x the latest

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Rfxtrx

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 3 months ago

Hey there @danielhiversen, @elupus, @robbie1221, mind taking a look at this issue as it has been labeled with an integration (rfxtrx) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `rfxtrx` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign rfxtrx` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


rfxtrx documentation rfxtrx source (message by IssueLinks)

joostlek commented 3 months ago

Anything in the logs?

pljda commented 3 months ago

Hi Joost,I will try to have a look but this happens the day before my holiday leave.  I could not do much. Philippe Sent from my iPhoneOn 17 Mar 2024, at 19:19, Joost Lekkerkerker @.***> wrote: Anything in the logs?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

pljda commented 3 months ago

Here are the logs .. repeated every 20 seconds2024-03-17 03:02:15.451 DEBUG (SyncWorker_6) [homeassistant.components.rfxtrx] Using modes: ac,lacrosse,oregon2024-03-17 03:02:15.460 DEBUG (SyncWorker_6) [RFXtrx] connect failed: [Errno 2] could not open port /dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO3Z5I3Y-if00-port0: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO3Z5I3Y-if00-port0'FileNotFoundError: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO3Z5I3Y-if00-port0'File "/usr/local/lib/python3.12/site-packages/RFXtrx/init.py", line 807, in errorsFile "/usr/local/lib/python3.12/site-packages/RFXtrx/init__.py", line 835, in connectserial.serialutil.SerialException: [Errno 2] could not open port /dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO3Z5I3Y-if00-port0: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO3Z5I3Y-if00-port0'Envoyé de mon iPadLe 17 mars 2024 à 19:19, Joost Lekkerkerker @.***> a écrit : Anything in the logs?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

elupus commented 3 months ago

If you look on the hardware tab under system, and look for RFXCOM entries, likely one of the tty:s can you see what path it says there?

pljda commented 3 months ago

Hi, I had to reboot first because I could not find anything regarding RFXCom. Just something called “rfkill”

After the reboot, I have found back the RFXtrx integration. Very strange because I did such reboot before reporting the bug.

As my system reboots once a day, I’ll see tomorrow. Anyway when typing RFX I have 2 answers : 1-1.2 and ttyUSB0

1-1.2 BUSNUM: '001' DEVNAME: /dev/bus/usb/001/003 DEVNUM: '003' DEVPATH: /devices/platform/soc/fe980000.usb/usb1/1-1/1-1.2 DEVTYPE: usb_device DRIVER: usb ID_BUS: usb ID_FOR_SEAT: usb-platform-fe980000_usb-usb-0_1_2 ID_MODEL: RFXtrx433XL ID_MODEL_ENC: RFXtrx433XL ID_MODEL_ID: '6015' ID_PATH: platform-fe980000.usb-usb-0:1.2 ID_PATH_TAG: platform-fe980000_usb-usb-0_1_2 ID_REVISION: '1000' ID_SERIAL: RFXCOM_RFXtrx433XL_DO3Z5I3Y ID_SERIAL_SHORT: DO3Z5I3Y ID_USB_INTERFACES: ':ffffff:' ID_USB_MODEL: RFXtrx433XL ID_USB_MODEL_ENC: RFXtrx433XL ID_USB_MODEL_ID: '6015' ID_USB_REVISION: '1000' ID_USB_SERIAL: RFXCOM_RFXtrx433XL_DO3Z5I3Y ID_USB_SERIAL_SHORT: DO3Z5I3Y ID_USB_VENDOR: RFXCOM ID_USB_VENDOR_ENC: RFXCOM ID_USB_VENDOR_ID: '0403' ID_VENDOR: RFXCOM ID_VENDOR_ENC: RFXCOM ID_VENDOR_ID: '0403' MAJOR: '189' MINOR: '2' PRODUCT: 403/6015/1000 SUBSYSTEM: usb TAGS: ':seat:' TYPE: 0/0/0 USEC_INITIALIZED: '7787521 Sent from my iPhone

ttyUSB0 ID : /dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO3Z5I3Y-if00-port0 Attributes: DEVLINKS: >- /dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO3Z5I3Y-if00-port0 /dev/serial/by-path/platform-fe980000.usb-usb-0:1.2:1.0-port0 DEVNAME: /dev/ttyUSB0 DEVPATH: >- /devices/platform/soc/fe980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0/tty/ttyUSB0 ID_BUS: usb ID_MODEL: RFXtrx433XL ID_MODEL_ENC: RFXtrx433XL ID_MODEL_ID: '6015' ID_PATH: platform-fe980000.usb-usb-0:1.2:1.0 ID_PATH_TAG: platform-fe980000_usb-usb-0_1_2_1_0 ID_REVISION: '1000' ID_SERIAL: RFXCOM_RFXtrx433XL_DO3Z5I3Y ID_SERIAL_SHORT: DO3Z5I3Y ID_TYPE: generic ID_USB_DRIVER: ftdi_sio ID_USB_INTERFACES: ':ffffff:' ID_USB_INTERFACE_NUM: '00' ID_USB_MODEL: RFXtrx433XL ID_USB_MODEL_ENC: RFXtrx433XL ID_USB_MODEL_ID: '6015' ID_USB_REVISION: '1000' ID_USB_SERIAL: RFXCOM_RFXtrx433XL_DO3Z5I3Y ID_USB_SERIAL_SHORT: DO3Z5I3Y ID_USB_TYPE: generic ID_USB_VENDOR: RFXCOM ID_USB_VENDOR_ENC: RFXCOM ID_USB_VENDOR_ID: '0403' ID_VENDOR: RFXCOM ID_VENDOR_ENC: RFXCOM ID_VENDOR_ID: '0403' MAJOR: '188' MINOR: '0' SUBSYSTEM: tty TAGS: ':systemd:' USEC_INITIALIZED: '7948239

Sent from my iPhone

On 17 Mar 2024, at 22:39, Joakim Plate @.***> wrote:

If you look on the hardware tab under system, and look for RFXCOM entries, likely one of the tty:s can you see what path it says there?

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/113698#issuecomment-2002626085, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE44H6D72CKKH45WIP733RTYYYESFAVCNFSM6AAAAABE2MYJ6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBSGYZDMMBYGU. You are receiving this because you authored the thread.

elupus commented 3 months ago

So that looks correct. If that is not listed the usb device ls not available for some reason. Not really the rfx integration that can cause it to be missing.

You could look in the haos boot logs if it goes missing again.

pljda commented 3 months ago

I guess you are right. It seems not to be linked with the RFX integration. I have also the Dongle Bluetooth (feasycom long range) that is not working. I need to do some cleaning and will have a look in the boot log. Anyway thanks for your prompt answer and support. Philippe Sent from my iPhoneOn 18 Mar 2024, at 18:48, Joakim Plate @.***> wrote: So that looks correct. If that is not listed the usb device ls not available for some reason. Not really the rfx integration that can cause it to be missing. You could look in the haos boot logs if it goes missing again.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

SeByDocKy commented 3 months ago

Yes I can confirm there is a problem with both my RFXTRX and ZHA integrations... For the RFXTRX is trying to initialize for ever without sucess... and for ZHA (+ sky connect), the integration is regulary in failure configuration..... my system :

2024.3.1
Supervisor
2024.03.0
Operating System
12.1
Interface utilisateur
20240307.0````

On android M1...

Log for ZHA : 
```Enregistreur: homeassistant.helpers.dispatcher
Source: helpers/dispatcher.py:102
S'est produit pour la première fois: 20 mars 2024 à 18:02:47 (26 occurrences)
Dernier enregistrement: 08:34:05

Unable to remove unknown dispatcher <bound method GroupProbe._reprobe_group of <homeassistant.components.zha.core.discovery.GroupProbe object at 0xffff46c76ba0>>

Source: components/zha/core/cluster_handlers/__init__.py:513
S'est produit pour la première fois: 20 mars 2024 à 18:18:41 (17 occurrences)
Dernier enregistrement: 08:22:26

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/sensor.py", line 263, in _refresh
    await self.async_update()
  File "/usr/src/homeassistant/homeassistant/components/zha/entity.py", line 256, in async_update
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/smartenergy.py", line 324, in async_update
    result = await self.get_attributes(attrs, from_cache=False, only_cache=False)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 513, in _get_attributes
    read, _ = await self.cluster.read_attributes(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/zigpy/zcl/__init__.py", line 528, in read_attributes
    result = await self.read_attributes_raw(to_read, manufacturer=manufacturer)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/zigpy/quirks/__init__.py", line 289, in read_attributes_raw
    results = await super().read_attributes_raw(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/zigpy/quirks/__init__.py", line 334, in _read_attributes
    return await super()._read_attributes(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/zigpy/zcl/__init__.py", line 377, in request
    return await self._endpoint.request(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/zigpy/endpoint.py", line 253, in request
    return await self.device.request(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/zigpy/device.py", line 339, in request
    await send_request()
  File "/usr/local/lib/python3.12/site-packages/zigpy/application.py", line 841, in request
    await self.send_packet(
  File "/usr/local/lib/python3.12/site-packages/bellows/zigbee/application.py", line 868, in send_packet
    status, _ = await self._ezsp.sendUnicast(
                      ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'sendUnicast'```
EddyK69 commented 3 months ago

Had the same issue. Reboot of HA and OTGW didn't work. After a power-cycle of my OTGW is worked again for me

SeByDocKy commented 3 months ago

Had the same issue. Reboot of HA and OTGW didn't work. After a power-cycle of my OTGW is worked again for me

Right it need a complete shunt down .... now reworking ...

korttoma commented 3 months ago

I see some spontaneous reloads of this integration also since the 2024.03 update. A bit annoying since the reload is interpreted as if I was activating some remotes to trigger actions.

Logger: homeassistant.components.rfxtrx Source: components/rfxtrx/init.py:179 integration: RFXCOM RFXtrx (documentation, issues) First occurred: April 2, 2024 at 23:29:28 (3 occurrences) Last logged: 04:02:38

Connection was lost, triggering reload

elupus commented 3 months ago

@korttoma

  1. are you using serial or net
  2. Could you turn on debug logging and turn off once you get the issue
  3. What is getting activated ? If its events you have automations on you should be using the new event entity
korttoma commented 3 months ago

@elupus

  1. I am using the serial USB RFXtrx433
  2. Turned on debugging, now we wait for it to happen again.
  3. I basically just have an automation that turns on a light from a "Device turned On" trigger. The device is a Proove sys2000 remote 433.92MHz. The state changes from "unavailable" to "Turned On" when the integration reloads. Not sure what you mean with the "new event entity" can you elaborate on that?
elupus commented 3 months ago
  1. There is a new entity type for the reception type which is better than the old sensor entity that existed. It would not cause an event on startup. But I will look at your case too.
korttoma commented 3 months ago

home-assistant_rfxtrx_2024-04-03T11-51-10.224Z.log

elupus commented 3 months ago

Your usb device did look like it disconnected from the system. Previously that would have been silently ignored.

So its recovering as expected. So you would need to handle the unavailability in your trigger somehow.

korttoma commented 3 months ago

@elupus ok, thanks for checking my anomaly.