XaF / qolsysgw

Qolsys IQ Panel 2+ gateway to an Home Assistant Alarm Control Panel
MIT License
117 stars 11 forks source link

Qolssys sending UTF-16 but qolsqw looking for UTF8 maybe? #163

Open continuousmining opened 3 weeks ago

continuousmining commented 3 weeks ago

Before submitting this form

Description of the bug

Should be able to decode the messages, but it seems IQ Panel 4 might be sending it in UTF-16. MQTT Broker isn't seeing any of this.

Expected behavior

Should see actual MQTT messages

DEBUG logs

2024-09-08 23:42:48.858152 INFO MQTT: Unable to decode MQTT message 2024-09-08 23:42:48.858522 ERROR MQTT: Unable to decode MQTT message, with Traceback: Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/appdaemon/plugins/mqtt/mqttplugin.py", line 271, in mqtt_on_message payload = payload.decode() ^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

2024-09-08 23:42:49.119569 INFO MQTT: Unable to decode MQTT message 2024-09-08 23:42:49.120493 ERROR MQTT: Unable to decode MQTT message, with Traceback: Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/appdaemon/plugins/mqtt/mqttplugin.py", line 271, in mqtt_on_message payload = payload.decode() ^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

Additional context

Issuing commands in the panel and getting these errors. Looking to decipher the payloads.

XaF commented 3 weeks ago

According to the error message, these seem to be raised directly in the MQTT plugin of AppDaemon ?

continuousmining commented 3 weeks ago

AppDaemon

Anto79-ops commented 2 weeks ago

I posted the issue at AD just recently because I noticed this also in the AD logs.

https://github.com/hassio-addons/addon-appdaemon/issues/350

Anto79-ops commented 1 week ago

just curiious, has the new AD update to 0.16.7 solved this for you? I'm not seeing these in my logs anymore but i just updated 20 minutes ago so perhaps its to early to tell....