When triggering an alarm the comfort2.py process crashes:
root@xxx:~# systemctl status comfort2@pi.service
● comfort2@pi.service - Comfort 2
Loaded: loaded (/etc/systemd/system/comfort2@pi.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-08-17 16:07:50 CEST; 2 days ago
Process: 250477 ExecStart=/usr/bin/python3 /opt/comfort2mqtt/comfort2.py (code=exited, status=1/FAILURE)
Main PID: 250477 (code=exited, status=1/FAILURE)
CPU: 3min 47.156s
Aug 17 16:07:50 xxx python3[250477]: File "/opt/comfort2mqtt/comfort2.py", line 422, in <module>
Aug 17 16:07:50 xxx python3[250477]: mqttc.run()
Aug 17 16:07:50 xxx python3[250477]: File "/opt/comfort2mqtt/comfort2.py", line 374, in run
Aug 17 16:07:50 xxx python3[250477]: amMsg = ComfortAMSystemAlarmReport(line[1:])
Aug 17 16:07:50 xxx python3[250477]: File "/opt/comfort2mqtt/comfort2.py", line 150, in __init__
Aug 17 16:07:50 xxx python3[250477]: self.parameter = int(data[4:6],16)
Aug 17 16:07:50 xxx python3[250477]: ValueError: invalid literal for int() with base 16: '\x1e2'
Aug 17 16:07:50 xxx systemd[1]: comfort2@pi.service: Main process exited, code=exited, status=1/FAILURE
Aug 17 16:07:50 xxx systemd[1]: comfort2@pi.service: Failed with result 'exit-code'.
Aug 17 16:07:50 xxx systemd[1]: comfort2@pi.service: Consumed 3min 47.156s CPU time.
When triggering an alarm the comfort2.py process crashes: