Hi
I’m new to Home Assistant and after much ado I got my home automations and smart setup about 80% finished, when all of a sudden the RFXCOM FRXtrx integration stopped working, it can not load. I have searched and tried various tricks and fixes but can’t get it to work. I don’t have the energy to start all over from a clean slate, and hope that won’t be necessary.
I run HA in docker on a Raspberry Pi4 with RaspberryOS (up to date)
A note that might be of relevance, I could not get
devices:
- '/dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO5OP3V5-if00-port0:/dev/usb_RFXcom'
or
devices:
- /dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO5OP3V5-if00-port0:/dev/usb_RFXcom
But
- /dev/ttyUSB1:/dev/rfxcom
- /dev/ttyUSB0:/dev/zwave
Have worked stable until now. I tried to change them around, using ie USB2 or 3 renders an error, and the Z-Wave stick still works. The RFXtrx device itself seems to work fine in windows with rfxmngr, receiving sensor data.
In the Pi shell
$ ls -l /dev/serial/by-id
totalt 0
lrwxrwxrwx 1 root root 13 3 mar 22.20 usb-RFXCOM_RFXtrx433XL_DO5OP3V5-if00-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root 13 3 mar 22.20 usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_1e914fd02487ec118153e93719c2d21c-if00-port0 -> ../../ttyUSB1
If I enable debug logging in the RTXtrx integration and click Reload, I get this log
2023-03-04 15:40:09.308 ERROR (Thread-2 (_connect)) [root] Uncaught thread exception
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/RFXtrx/__init__.py", line 985, in _connect
self.transport.reset()
File "/usr/lib/python3.10/site-packages/RFXtrx/__init__.py", line 832, in reset
self.send(b'\x0D\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
File "/usr/lib/python3.10/site-packages/RFXtrx/__init__.py", line 828, in send
self.serial.write(pkt)
AttributeError: 'NoneType' object has no attribute 'write'
2023-03-04 15:40:39.306 ERROR (MainThread) [homeassistant.components.rfxtrx] Connection timeout: failed to receive response from RFXtrx device
2023-03-04 15:47:00.935 ERROR (Thread-13 (_connect)) [root] Uncaught thread exception
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/RFXtrx/__init__.py", line 985, in _connect
self.transport.reset()
File "/usr/lib/python3.10/site-packages/RFXtrx/__init__.py", line 832, in reset
self.send(b'\x0D\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
File "/usr/lib/python3.10/site-packages/RFXtrx/__init__.py", line 828, in send
self.serial.write(pkt)
AttributeError: 'NoneType' object has no attribute 'write'
The main log also contains this line
2023-03-04 15:47:30.934 ERROR (MainThread) [homeassistant.components.rfxtrx] Connection timeout: failed to receive response from RFXtrx device
If I restart HA fro within the gui, and immediately after start go to Settings -System -Logs this is what I find
2023-03-04 19:33:30.113 ERROR (Thread-2 (_connect)) [root] Uncaught thread exception
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/RFXtrx/__init__.py", line 985, in _connect
self.transport.reset()
File "/usr/lib/python3.10/site-packages/RFXtrx/__init__.py", line 832, in reset
self.send(b'\x0D\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
File "/usr/lib/python3.10/site-packages/RFXtrx/__init__.py", line 828, in send
self.serial.write(pkt)
AttributeError: 'NoneType' object has no attribute 'write'
2023-03-04 19:34:00.108 ERROR (MainThread) [homeassistant.components.rfxtrx] Connection timeout: failed to receive response from RFXtrx device
If I delete the RFXtrx integration and try to add it again, it won’t find the physical device. So my guts tells me that there is where the problem is. But what do I know, I’m addicted to licorice.
I’ll be happy to provide any other logs that might help, just tell me how to get them, and I will be deeply grateful to anyone that is able to help.