stas-demydiuk / domoticz-h801-tasmota-plugin

Python plugin for Domoticz to control H801 LED WiFi Controller with Tasmota firmware
MIT License
8 stars 2 forks source link

[solved] Error 'onMessage' failed 'JSONDecodeError'. #4

Closed Garycooper07 closed 3 years ago

Garycooper07 commented 3 years ago

Hello, I've got severals H801 connected on my house and one of us give me troubles on domoticz. I tried with Tasmota 9.3.1 and 9.4 but always the same error. I tried a git pull but no success.

2021-05-04 00:29:28.310 Error: Ruban LED TV salon: (Ruban LED TV salon) 'onMessage' failed 'JSONDecodeError'. 2021-05-04 00:29:28.310 Error: Ruban LED TV salon: (Ruban LED TV salon) ----> Line 143 in '/home/pi/domoticz/plugins/h801-tasmota-plugin/plugin.py', function onMessage 2021-05-04 00:29:28.310 Error: Ruban LED TV salon: (Ruban LED TV salon) ----> Line 101 in '/home/pi/domoticz/plugins/h801-tasmota-plugin/plugin.py', function onMessage 2021-05-04 00:29:28.310 Error: Ruban LED TV salon: (Ruban LED TV salon) ----> Line 167 in '/home/pi/domoticz/plugins/h801-tasmota-plugin/mqtt.py', function onMessage 2021-05-04 00:29:28.310 Error: Ruban LED TV salon: (Ruban LED TV salon) ----> Line 120 in '/home/pi/domoticz/plugins/h801-tasmota-plugin/plugin.py', function onMQTTPublish 2021-05-04 00:29:28.310 Error: Ruban LED TV salon: (Ruban LED TV salon) ----> Line 61 in '/home/pi/domoticz/plugins/h801-tasmota-plugin/controllers/color_dimmer.py', function onMqttMessage 2021-05-04 00:29:28.310 Error: Ruban LED TV salon: (Ruban LED TV salon) ----> Line 348 in '/usr/lib/python3.7/json/init.py', function loads 2021-05-04 00:29:28.310 Error: Ruban LED TV salon: (Ruban LED TV salon) ----> Line 337 in '/usr/lib/python3.7/json/decoder.py', function decode 2021-05-04 00:29:28.310 Error: Ruban LED TV salon: (Ruban LED TV salon) ----> Line 355 in '/usr/lib/python3.7/json/decoder.py', function raw_decode

Thanks

Garycooper07 commented 3 years ago

Solved after resetting H801. Works correctly now