ERROR (Thread-13 (_connect)) [root] Uncaught thread exception
Describe the bug After an update to HA (sorry I do not know which one), Ramses RF failed to set up. It has been working fine previously
see logs below for error details (time 2025-01-26 12:27:58.040)
-
ramses_cc:section from configuration.yaml
ramses configuration
ramses_cc: #serial_port: /dev/ttyACM0 # e.g. evofw3-based device serial_port: /dev/serial/by-id/usb-SparkFun_evofw3_atmega32u4-if00
restore_cache: true
packet_log: file_name: packet.log rotate_bytes: null rotate_backups: 28
scan_interval: 180 # How often HA/ramses_cc polls ramses_rf for a change in state. The default value is 300 seconds. Having it lower than 180 is of little value, except for troubleshooting
ramses_rf: #all default values are false enforce_known_list: false # if not true, still enforces the block_list - Tip: Initially, you may prefer enforce_known_list: false, but setting it to true is strongly recommended, once you have a complete known_list:. disable_discovery: false disable_sending: false # do not transmit any packets, ever enable_eavesdrop: false # can be used to create an initial system schema
known_list: #18:123456: # Honeywell HGI80 #30:111111: {class: FAN} # Orcon HRU #32:333333: {class: REM, faked: true} # an impersonatable remote #32:555555: {class: CO2, faked: true} # a fully faked sensor
- contemporaneous portion of the home-assistant.log (removed non-relevant messages) 2025-01-26 12:27:48.103 WARNING (MainThread) [ramses_tx.protocol_fsm] TOUT.. = <ProtocolContext state=WantEcho cmd_=0418|RQ|01:195932|00, tx_count=4/4>: echo_timeout=4.0 2025-01-26 12:27:48.518 WARNING (MainThread) [ramses_rf.entity_base] 01:195932_07 (RAD): Failed to send discovery cmd: 2349|RP|01:195932|07 within 15 secs: 2025-01-26 12:27:52.107 WARNING (MainThread) [ramses_tx.protocol_fsm] TOUT.. = <ProtocolContext state=WantEcho cmd_=2349|RQ|01:195932|07, tx_count=1/4>: echo_timeout=4.0 2025-01-26 12:27:52.164 WARNING (MainThread) [ramses_rf.entity_base] 01:195932_01 (UFH): Failed to send discovery cmd: 2349|RP|01:195932|01 within 15 secs:
2025-01-26 12:27:55.914 WARNING (MainThread) [ramses_rf.entity_base] 01:195932_00 (UFH): Failed to send discovery cmd: 2349|RP|01:195932|00 within 15 secs: 2025-01-26 12:27:56.111 WARNING (MainThread) [ramses_tx.protocol_fsm] TOUT.. = <ProtocolContext state=WantEcho cmd_=2349|RQ|01:195932|07, tx_count=2/4>: echo_timeout=4.0 2025-01-26 12:27:56.159 WARNING (MainThread) [ramses_tx.transport] 044 RP --- 201492 --:------ 2349 007 07064000FFFFFF < PacketInvalid(Bad frame: invalid structure: >>>RP --- 201492 --:------ 2349 007 07064000FFFFFF<<<) 2025-01-26 12:27:58.040 WARNING (MainThread) [ramses_rf.entity_base] 13:027756 (BDR): True: Failed to send discovery cmd: 3EF1|RP|13:027756 within 15 secs: 2025-01-26 12:28:00.006 ERROR (Thread-13 (_connect)) [root] Uncaught thread exception Traceback (most recent call last): File "/usr/local/lib/python3.13/threading.py", line 1041, in _bootstrap_inner self.run() ~~~~~~~~^^ File "/usr/local/lib/python3.13/threading.py", line 992, in run self._target(*self._args, **self._kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/RFXtrx/init.py", line 1046, in _connect self._connect_internal() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/site-packages/RFXtrx/init.py", line 1067, in _connect_internal self.send_start() ~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/site-packages/RFXtrx/init.py", line 1118, in send_start return self.transport.receive_blocking() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/site-packages/RFXtrx/init.py", line 807, in __errors return func(instance, *args, **kargs) File "/usr/local/lib/python3.13/site-packages/RFXtrx/init.py", line 845, in receive_blocking return self._receive_packet() ~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/site-packages/RFXtrx/init.py", line 849, in receive_packet data = self.serial.read() File "/usr/local/lib/python3.13/site-packages/serial/serialposix.py", line 575, in read buf = os.read(self.fd, size - len(read)) TypeError: 'NoneType' object cannot be interpreted as an integer 2025-01-26 12:28:00.114 WARNING (MainThread) [ramses_tx.protocol_fsm] TOUT.. = <ProtocolContext state=WantEcho cmd=2349|RQ|01:195932|07, tx_count=3/4>: echo_timeout=4.0 2025-01-26 12:28:00.153 WARNING (MainThread) [ramses_tx.transport] 044 RP --- 01:19592 --:------ 2349 007 07064000FFFFFF < PacketInvalid(Bad frame: invalid structure: >>>RP --- 01:19592 --:------ 2349 007 07064000FFFFFF<<<)
2025-01-26 12:28:01.079 WARNING (MainThread) [ramses_rf.entity_base] 01:195932_04 (RAD): Failed to send discovery cmd: 2349|RP|01:195932|04 within 15 secs:
2025-01-26 12:28:04.116 WARNING (MainThread) [ramses_tx.protocol_fsm] TOUT.. = <ProtocolContext state=WantEcho cmd_=2349|RQ|01:195932|07, tx_count=4/4>: echo_timeout=4.0
- contemporaneous portion of the packet.log 2025-01-26T12:27:47.497585 044 RP --- 01:195932 18:201492 --:------ 2349 013 03083404FFFFFF1E111A0107E9 2025-01-26T12:27:48.128382 000 RQ --- 18:201492 01:195932 --:------ 2349 001 07 2025-01-26T12:27:48.145382 044 RP --- 01:195932 18:201492 --:------ 2349 007 07064000FFFFFF 2025-01-26T12:27:48.409190 000 RQ --- 18:201492 13:027756 --:------ 3EF1 001 00 2025-01-26T12:27:48.422725 045 RP --- 13:027756 18:201492 --:------ 3EF1 007 000434004400FF 2025-01-26T12:27:52.130625 000 RQ --- 18:201492 01:195932 --:------ 2349 001 07 2025-01-26T12:27:52.149727 044 RP --- 01:195932 18:201492 --:------ 2349 007 07064000FFFFFF 2025-01-26T12:27:56.133838 000 RQ --- 18:201492 01:195932 --:------ 2349 001 07 2025-01-26T12:28:00.136941 000 RQ --- 18:201492 01:195932 --:------ 2349 001 07 2025-01-26T12:28:03.490492 000 RQ --- 18:201492 01:195932 --:------ 2349 001 01 2025-01-26T12:28:03.508084 044 RP --- 01:195932 18:201492 --:------ 2349 007 01070800FFFFFF 2025-01-26T12:28:04.140860 000 RQ --- 18:201492 13:203402 --:------ 3EF1 001 00 2025-01-26T12:28:04.154515 053 RP --- 13:203402 18:201492 --:------ 3EF1 007 00038C038C00FF 2025-01-26T12:28:08.144961 000 RQ --- 18:201492 13:203402 --:------ 3EF1 001 00
Screenshots Only if applicable, add screenshots to help explain your problem. Do not provide a screenshot as an alternative to providing the above information.
Additional context Stand alone Home Assistant running on a raspberry Pi 4, with an evofw3 usb device installed (I have checked this and it is outputting the correct messages, as can be seen by packet.log)