-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with latest heishamon3.x errors in plugin #12
Comments
I got the same issue since V3: 2022-09-26 13:43:38.117 Error: Heishamon MQTT: ----> Line 613 in '/home/pi/domoticz/plugins/HeishamonMQTT/plugin.py', function onMessage |
Same here. No clue what's causing it. First error line is less than helpful. |
Fixed it. In MQTT.py: Line 156 and beyond:
Changed decoding from utf8 to latin-1. |
great find, this fixed it |
i love the plugin use it for almost a year now without problems a big thnx 4 that!,
but i now have this error in domoticz. it started with the latest released Heishamon
https://github.com/IgorYbema/HeishaMon/tree/v3.0/binaries
2022-06-23 18:38:11.343 Error: heishamon: Call to function 'onMessage' failed, exception details:
2022-06-23 18:38:11.344 Error: heishamon: Traceback (most recent call last):
2022-06-23 18:38:11.344 Error: heishamon: File "/home/pi/domoticz/plugins/HeishamonMQTT/plugin.py", line 613, in onMessage
2022-06-23 18:38:11.344 Error: heishamon: _plugin.onMessage(Connection, Data)
2022-06-23 18:38:11.344 Error: heishamon: File "/home/pi/domoticz/plugins/HeishamonMQTT/plugin.py", line 293, in onMessage
2022-06-23 18:38:11.344 Error: heishamon: self.mqttClient.onMessage(Connection, Data)
2022-06-23 18:38:11.344 Error: heishamon: File "/home/pi/domoticz/plugins/HeishamonMQTT/mqtt.py", line 157, in onMessage
2022-06-23 18:38:11.344 Error: heishamon: payload = Data['Payload'].decode('utf8') if 'Payload' in Data else ''
2022-06-23 18:38:11.344 Error: heishamon: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 1: invalid continuation byte
when i drop back to a previous 2.2-x it disappears ,so just a hint for upcoming releases
I and probably others would loved this fixed.
Thnx in advance
The text was updated successfully, but these errors were encountered: