britkat1980 / tsmart

13 stars 6 forks source link

Traceback on restart of tsmart add-on #7

Open BettySwallocks opened 1 year ago

BettySwallocks commented 1 year ago

My t-smart currently has an E03 error currently being investigated by my installer, but I thought I'd mention that the add-on lost comms with the unit some time yesterday, then on restart produces this traceback:

2023-02-01 10:45:32,286 TSmart_STARTUP - Starting UDP Server 2023-02-01 10:45:33,147 - root [CRITICAL] Inside server.py 2023-02-01 10:45:33,149 - root [CRITICAL] UDP server up and listening 2023-02-01 10:45:33,175 - TSmart_HA_AUTO [INFO] Client IP Address:('192.168.0.40', 1337): Message from Client:b'\xf1\x00\x00\x01\x96\x00"\x8a\x00\x00\x01\x93\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08' --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.10/logging/__init__.py", line 1098, in emit msg = self.format(record) File "/usr/local/lib/python3.10/logging/__init__.py", line 942, in format return fmt.format(record) File "/usr/local/lib/python3.10/logging/__init__.py", line 678, in format record.message = record.getMessage() File "/usr/local/lib/python3.10/logging/__init__.py", line 368, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "/app/TSmart/server.py", line 133, in <module> output['Set_Point']=int(to_little(response[8:12]),16)/10 File "/app/TSmart/server.py", line 32, in to_little logger.debug("Byte array format:", little_hex) Message: 'Byte array format:' Arguments: (bytearray(b'\x00\x96'),) Traceback (most recent call last): File "/app/TSmart/server.py", line 134, in <module> output['Mode']=TSMode[int(response[12:14],16)] IndexError: list index out of range

BettySwallocks commented 1 year ago

It took a while to get this fault resolved with my cylinder/immersion supplier but I have a new TSmart fitted now and it is operating via the TSmart mobile app but not on HA. Same/similar traceback occurs on my latest HA release 2023.3 as above. Any views?