Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
Moderator: leecollings
-
- Posts: 38
- Joined: Sunday 08 October 2017 13:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
-
- Posts: 1
- Joined: Sunday 10 March 2019 15:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
Hi - I have the exact same issue but can't find a solution - what did you do to get it working? Or can anyone else advise what causes the error above?mvveelen wrote: ↑Saturday 02 June 2018 21:31 I have the same settings, and no devices are found.
Setup: RPi3, latest beta Domoticz, done the setoption19 1 thingy, MQTT up and running.
Sonoff setup:
MQTT Host 192.168.0.124
MQTT Port 1883
MQTT Client & Fallback Topic DVES_AF76EE
MQTT User
MQTT Topic sonoff35 (every Sonoff has it's own Topic)
MQTT Group Topic sonoffs
MQTT Full Topic cmnd/sonoff35/
Full topic: %prefix%/%topic%/
Domoticz setup:
MQTT Server address:localhost
Port: 1883
Username:
Password:
Discovery topic: sonoffs
Ignored device topics (comma separated): tasmota/sonoff
What is wrong with this setup?
Edit:
I also have this error message in the log:
What could this mean ? How can I solve this ?2018-06-03 11:30:25.656 (MQTT discovery) Warning: could not load plugin options '' as JSON object
-
- Posts: 38
- Joined: Sunday 08 October 2017 13:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
effing: You need to update to the latest version of the plugin where this should be fixed
-
- Posts: 4
- Joined: Tuesday 26 March 2019 20:35
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
I installed this plugin last week with the latest beta release
Initially I connected my sonoff devices via the standard way using dummy/virtual devices, but I now switched everything to the new plugin
The plugin is working very good but I noticed that for a specific sonoff device you see an entry in the logging of that device every 5 minutes. So if the device is off, it is reported every 5 minutes as off
For other plugins/devices you only see a logging when the state has changed, eg if the device is off for 5 hours and then turned on, you see 1 logging only at the time the device turned on (until it is switched off again ofcourse)
How can I remove the multiple entries every 5 minutes with same state?
Initially I connected my sonoff devices via the standard way using dummy/virtual devices, but I now switched everything to the new plugin
The plugin is working very good but I noticed that for a specific sonoff device you see an entry in the logging of that device every 5 minutes. So if the device is off, it is reported every 5 minutes as off
For other plugins/devices you only see a logging when the state has changed, eg if the device is off for 5 hours and then turned on, you see 1 logging only at the time the device turned on (until it is switched off again ofcourse)
How can I remove the multiple entries every 5 minutes with same state?
-
- Posts: 1
- Joined: Monday 13 May 2019 0:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
Hi,
Installed latest version of the plugin 1hour ago, latest domoticz version (4.10717) and I'm getting the "2019-05-12 23:12:33.758 (espscsgate) Warning: could not load plugin options '' as JSON object" message...tips?
Installed latest version of the plugin 1hour ago, latest domoticz version (4.10717) and I'm getting the "2019-05-12 23:12:33.758 (espscsgate) Warning: could not load plugin options '' as JSON object" message...tips?
-
- Posts: 68
- Joined: Wednesday 03 February 2016 19:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
Your plugin is working great for my sonoff/blitzwolf powerplug.
The on/off device is added auto.
Only the power devices not, any hint?
Sorry do you mean with no sensors supported in the op that it doesn't work
The on/off device is added auto.
Only the power devices not, any hint?
Sorry do you mean with no sensors supported in the op that it doesn't work


Code: Select all
2019-07-15 21:59:30.300 (Discovery) updateDeviceSettings: Did not find device with key='devicename', value = '238EF1_RL_1'
2019-07-15 21:59:30.300 (Discovery) updateDeviceSettings: TypeName: 'Switch' Type: 244
2019-07-15 21:59:30.300 (Discovery) Creating device with unit: 1
2019-07-15 21:59:30.359 (Discovery) 001/Discovery - Sonoff: Setting TimedOut: '0'
2019-07-15 21:59:30.417 (Discovery) updateDeviceSettings: Did not find device with key='devicename', value = '238EF1_ENERGY_TotalStartTime'
2019-07-15 21:59:30.417 (Discovery) updateDeviceSettings: TypeName: '' Type: 0
2019-07-15 21:59:30.417 (Discovery) updateDeviceSettings: Did not find device with key='devicename', value = '238EF1_ENERGY_Total'
2019-07-15 21:59:30.418 (Discovery) updateDeviceSettings: TypeName: '' Type: 0
2019-07-15 21:59:30.469 (Discovery) updateDeviceSettings: Did not find device with key='devicename', value = '238EF1_ENERGY_Yesterday'
2019-07-15 21:59:30.469 (Discovery) updateDeviceSettings: TypeName: '' Type: 0
2019-07-15 21:59:30.470 (Discovery) updateDeviceSettings: Did not find device with key='devicename', value = '238EF1_ENERGY_Today'
2019-07-15 21:59:30.470 (Discovery) updateDeviceSettings: TypeName: '' Type: 0
2019-07-15 21:59:30.521 (Discovery) updateDeviceSettings: Did not find device with key='devicename', value = '238EF1_ENERGY_Power'
2019-07-15 21:59:30.521 (Discovery) updateDeviceSettings: TypeName: '' Type: 0
2019-07-15 21:59:30.522 (Discovery) updateDeviceSettings: Did not find device with key='devicename', value = '238EF1_ENERGY_ApparentPower'
2019-07-15 21:59:30.522 (Discovery) updateDeviceSettings: TypeName: '' Type: 0
2019-07-15 21:59:30.573 (Discovery) updateDeviceSettings: Did not find device with key='devicename', value = '238EF1_ENERGY_ReactivePower'
2019-07-15 21:59:30.573 (Discovery) updateDeviceSettings: TypeName: '' Type: 0
2019-07-15 21:59:30.624 (Discovery) updateDeviceSettings: Did not find device with key='devicename', value = '238EF1_ENERGY_Factor'
2019-07-15 21:59:30.624 (Discovery) updateDeviceSettings: TypeName: '' Type: 0
2019-07-15 21:59:30.625 (Discovery) updateDeviceSettings: Did not find device with key='devicename', value = '238EF1_ENERGY_Voltage'
2019-07-15 21:59:30.625 (Discovery) updateDeviceSettings: TypeName: '' Type: 0
2019-07-15 21:59:30.676 (Discovery) updateDeviceSettings: Did not find device with key='devicename', value = '238EF1_ENERGY_Current'
2019-07-15 21:59:30.676 (Discovery) updateDeviceSettings: TypeName: '' Type: 0
2019-07-15 21:59:30.677 (Discovery) updateDeviceSettings: Did not find device with key='devicename', value = '238EF1_status'
2019-07-15 21:59:30.678 (Discovery) updateDeviceSettings: TypeName: '' Type: 0
2019-07-15 21:59:37.498 (Discovery) 001/Discovery - Sonoff: Topic: 'sonoff1/tele/STATE 'Setting nValue: 0->1, sValue: ''->''
2019-07-15 21:59:58.149 (Discovery) onCommand 001/Discovery - Sonoff: Command: 'Off', Level: 0, Color:
2019-07-15 21:59:58.149 (Discovery) MqttClient::Publish sonoff1/cmnd/POWER (OFF)
2019-07-15 21:59:58.201 (Discovery) 001/Discovery - Sonoff: Topic: 'sonoff1/tele/STATE 'Setting nValue: 1->0, sValue: ''->''
2019-07-15 21:59:58.117 Status: User: Admin initiated a switch command (32/Discovery - Sonoff/Off)
2019-07-15 21:59:59.870 (Discovery) onCommand 001/Discovery - Sonoff: Command: 'On', Level: 0, Color:
2019-07-15 21:59:59.871 (Discovery) MqttClient::Publish sonoff1/cmnd/POWER (ON)
- mvveelen
- Posts: 687
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
With the latest version of the plugin and Tasmota version 6.7.1 there are extra 'switches' discovered. For instance, I have already a discovered switch with the name "Lamp" and then it discovers an extra switch with the name "Lamp Button" which will do....nothing when you switch it.
Any idea? I now deleted them, but I suppose they will be discovered again when I restart Domoticz.
Any idea? I now deleted them, but I suppose they will be discovered again when I restart Domoticz.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
-
- Posts: 3
- Joined: Wednesday 04 December 2019 20:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.11533
- Location: Amsterdam
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
Hi all,
I am trying to tackle the issue of setting my first LSC Smart Filament Bulb in Domoticz. I would appreciate if someone points me towards error in configuration (i've tried multiple combinations of naming the topic and device itself); I am not sure whether I am configuring it wrong, or should I look for older versions of Tasmota, as it seems it worked for others previously? I can control device fine from it's own IP address; my only problem is that I can't add it to DOmoticz - yet I seem to see device in logs.
I have flashed the bulb with Tasmota 7.0.0.3:
I am seeing following logs (hidden in spoiler not to overflow topic):
I am trying to tackle the issue of setting my first LSC Smart Filament Bulb in Domoticz. I would appreciate if someone points me towards error in configuration (i've tried multiple combinations of naming the topic and device itself); I am not sure whether I am configuring it wrong, or should I look for older versions of Tasmota, as it seems it worked for others previously? I can control device fine from it's own IP address; my only problem is that I can't add it to DOmoticz - yet I seem to see device in logs.
I have flashed the bulb with Tasmota 7.0.0.3:
Code: Select all
Generic Module
standing_pixar_lamp
Program Version 7.0.0.3(tasmota)
Build Date & Time 2019-11-06T23:07:19
Core/SDK Version STAGE/2.2.2-dev(38a443e)
Uptime 0T00:03:28
Flash write Count 82 at 0xF7000
Boot Count 24
Restart Reason Software/System restart
Friendly Name 1 standing_pixar_lamp
AP1 SSId (RSSI) maybe (90%)
Hostname pixar_standing_lamp-6999
IP Address 10.1.1.22
Gateway 10.1.1.1
Subnet Mask 255.255.255.0
DNS Server 10.1.1.1
MAC Address 84:0D:8E:6B:3B:52
MQTT Host 10.1.1.2
MQTT Port 1883
MQTT User mqtt
MQTT Client DVES_6B3B57
MQTT Topic pixar_standing_lamp
MQTT Group Topic tasmotas/cmnd/
MQTT Full Topic pixar_standing_lamp/cmnd/
MQTT Fallback Topic cmnd/DVES_6B3B57_fb/
Emulation Disabled
mDNS Discovery Disabled
ESP Chip Id 7027543
Flash Chip Id 0x144051
Flash Size 1024kB
Program Flash Size 1024kB
Program Size 446kB
Free Program Space 556kB
Free Memory 30kB
I am seeing following logs (hidden in spoiler not to overflow topic):
- Spoiler: show
RPi4-MODBP-4GB | Domoticz V4.11533 | Shelly Plug S | RPi0 w/ handwritten scripts | LSC Smart Filament Bulbs
-
- Posts: 170
- Joined: Monday 22 January 2018 21:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
@apatrid: did you look in Domoticz device database? (Setup > devices)
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
Zwave, Zigate, RFlink etc.
-
- Posts: 3
- Joined: Wednesday 04 December 2019 20:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.11533
- Location: Amsterdam
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
yes, sure. I managed to add them via old method, but mqtt discovery failed. i also managed to brick one of them with attempting to upload sonoff 6.1.1 firmware; now it briefly flashes some esp32 wifi hotspot but it won't turn on nor it will allow me to really connect to wifi; seems bricked. oh well 
i managed to add other two only after updating with OTAto tasmota 7.1.1 and getting domoticz menu.

i managed to add other two only after updating with OTAto tasmota 7.1.1 and getting domoticz menu.
RPi4-MODBP-4GB | Domoticz V4.11533 | Shelly Plug S | RPi0 w/ handwritten scripts | LSC Smart Filament Bulbs
-
- Posts: 40
- Joined: Friday 24 February 2017 21:20
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
hello,
i installed and configured this plugin and it is working.
devices are discovered and the status is updating.
now i'm trying to switch a rgbww device(action lsc gu10) with tasmota 7.1.2.6 with dzvents but that is not working.
can u tell me how to do that in dzvents?
i installed and configured this plugin and it is working.
devices are discovered and the status is updating.
now i'm trying to switch a rgbww device(action lsc gu10) with tasmota 7.1.2.6 with dzvents but that is not working.
can u tell me how to do that in dzvents?
-
- Posts: 75
- Joined: Sunday 27 September 2015 15:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Finland
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
I got into testing a Sonoff Basic switch with Tasmota firmware, but my Domoticz doesn't detect any devices - any ideas what might be the issue?
I installed the plugin as per the instructions on the first page and added MQTT discovery into the hardware page. So far so good, but no devices are visible in devices list, nor is the MQTT discovery seen in the hardware list of the device page sidebar: In log there's something related to this, not sure if that's correct amount of data:
The Sonoff switch itself can be controlled and configured through browser, ie it's in the same network and so on:
Any pointers how to get this up & running?
I installed the plugin as per the instructions on the first page and added MQTT discovery into the hardware page. So far so good, but no devices are visible in devices list, nor is the MQTT discovery seen in the hardware list of the device page sidebar: In log there's something related to this, not sure if that's correct amount of data:
Code: Select all
2020-01-16 11:51:32.397 (mqtt) MqttClient::Ping
2020-01-16 11:51:32.397 (mqtt) Sending 2 bytes of data
2020-01-16 11:51:32.397 (mqtt) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �.
2020-01-16 11:51:32.448 (mqtt) Received 2 bytes of data
2020-01-16 11:51:32.448 (mqtt) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �.
-
- Posts: 742
- Joined: Saturday 30 May 2015 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
Which firmware of the sonoff did you install? Make sure you select a bin version that supports the mqttdiscovery.johansson wrote:I got into testing a Sonoff Basic switch with Tasmota firmware, but my Domoticz doesn't detect any devices - any ideas what might be the issue?
I installed the plugin as per the instructions on the first page and added MQTT discovery into the hardware page. So far so good, but no devices are visible in devices list, nor is the MQTT discovery seen in the hardware list of the device page sidebar: In log there's something related to this, not sure if that's correct amount of data:
The Sonoff switch itself can be controlled and configured through browser, ie it's in the same network and so on: Any pointers how to get this up & running?Code: Select all
2020-01-16 11:51:32.397 (mqtt) MqttClient::Ping 2020-01-16 11:51:32.397 (mqtt) Sending 2 bytes of data 2020-01-16 11:51:32.397 (mqtt) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �. 2020-01-16 11:51:32.448 (mqtt) Received 2 bytes of data 2020-01-16 11:51:32.448 (mqtt) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �.
https://github.com/arendst/Tasmota/blob ... /BUILDS.md
At first I didn't realize that I needed a full version to get this to work. In the mean time I found an alternative that works for all binary files. Recovery in domoticz with this plugin is excellent: Tasmoticz
https://github.com/joba-1/Tasmoticz
I added 6 temperature sensors to the basic switch and they were immediately recognized within domoticz
-
- Posts: 75
- Joined: Sunday 27 September 2015 15:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Finland
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
Perfect, that was it - thanks Jake! I got the Sonoff pre-flashed, so didn't pay any attention to the firmware: downloaded tasmota.bin from http://thehackbox.org/tasmota/, uploaded it to switch and immediately it shows up in Domoticz. Case closed.
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
I have an issue with this plugin who makes my re-use my sonoff 1st gen and flash action wifi plug.
This plugin update again and again device status even if there is no change.
Not very usefull and this use log for nothing
This plugin update again and again device status even if there is no change.
Not very usefull and this use log for nothing

Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
- mvveelen
- Posts: 687
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
I'm using the latest version of the plugin and sometimes after a restart / update of Domoticz I get new Sonoff devices discovered.
How is this possible? Or do I have to delete the old devices and use the new devices to get rid of this "problem" ?
Devices that were already discovered and are being used for a while now get found again. So then I delete these new discovered (double) devices.2020-02-02 12:02:23.592 Status: (MQTT discovery) Entering work loop.
2020-02-02 12:02:23.592 Status: (MQTT discovery) Initialized version 0.0.4
How is this possible? Or do I have to delete the old devices and use the new devices to get rid of this "problem" ?
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
-
- Posts: 2
- Joined: Wednesday 31 July 2019 13:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
Hello fellow Domoticz'ers
Im running into some issues aswell, i have a bunch of Sonofss DIY mini which i flashed with the tasmota-lite.bin since it only allows max 500kb.
Im a complete newbie, but managed to do this following those youtube guides: https://www.youtube.com/watch?v=w7QhsFqBr30 https://www.youtube.com/watch?v=t1yHmKZTsgE and https://www.youtube.com/watch?v=fzEDFmB0UYU Big up to their comprehencive vids!
I am running the latest Domoticz version on a Raspberry pi 3, i have flashed the sonoffs DIY mini's with tasmota, installed mousquitto MQTT broker with latest updates/upgrades.
My devices appear in domoticz, but only like 1 out of 15 try's to switch my lights on/of from domoticz does come trough, when connecting directly to the tasmota trough browser ip i can switch on/off without any hassle.
In my opinion there is somthing going on with my MQTT broker, since i dont see anything unusual in the tasmota logs, i havent managed yet to get a view of the MQTT broker logs.
Some help or advice would be much apreciated!
Im running into some issues aswell, i have a bunch of Sonofss DIY mini which i flashed with the tasmota-lite.bin since it only allows max 500kb.
Im a complete newbie, but managed to do this following those youtube guides: https://www.youtube.com/watch?v=w7QhsFqBr30 https://www.youtube.com/watch?v=t1yHmKZTsgE and https://www.youtube.com/watch?v=fzEDFmB0UYU Big up to their comprehencive vids!
I am running the latest Domoticz version on a Raspberry pi 3, i have flashed the sonoffs DIY mini's with tasmota, installed mousquitto MQTT broker with latest updates/upgrades.
My devices appear in domoticz, but only like 1 out of 15 try's to switch my lights on/of from domoticz does come trough, when connecting directly to the tasmota trough browser ip i can switch on/off without any hassle.
In my opinion there is somthing going on with my MQTT broker, since i dont see anything unusual in the tasmota logs, i havent managed yet to get a view of the MQTT broker logs.
Some help or advice would be much apreciated!
- rolandtwilt
- Posts: 74
- Joined: Monday 05 October 2020 18:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin: Sonoff-Tasmota + Other devices supporting MQTT Discovery
Good morning smart people,
I get the error message below and I'm looking for a solution but can't find an explanation.
Anyone know what's going on here?
logbook Domoticz:
2022-03-28 10:10:17.717 Error: MQTT Discovery: Call to function 'onMessage' failed, exception details:
2022-03-28 10:10:17.720 Error: MQTT Discovery: Traceback (most recent call last):
2022-03-28 10:10:17.720 Error: MQTT Discovery: File "/home/pi/domoticz/plugins/domoticz_mqtt_discovery/plugin.py", line 392, in onMQTTPublish
2022-03-28 10:10:17.720 Error: MQTT Discovery: message = json.loads(rawmessage.decode('utf8'))
2022-03-28 10:10:17.720 Error: MQTT Discovery: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 264: invalid start byte
2022-03-28 10:10:17.720 Error: MQTT Discovery:
2022-03-28 10:10:17.720 Error: MQTT Discovery: During handling of the above exception, another exception occurred:
2022-03-28 10:10:17.720 Error: MQTT Discovery:
2022-03-28 10:10:17.720 Error: MQTT Discovery: Traceback (most recent call last):
2022-03-28 10:10:17.720 Error: MQTT Discovery: File "/home/pi/domoticz/plugins/domoticz_mqtt_discovery/plugin.py", line 1116, in onMessage
2022-03-28 10:10:17.720 Error: MQTT Discovery: _plugin.onMessage(Connection, Data)
2022-03-28 10:10:17.720 Error: MQTT Discovery: File "/home/pi/domoticz/plugins/domoticz_mqtt_discovery/plugin.py", line 379, in onMessage
2022-03-28 10:10:17.720 Error: MQTT Discovery: self.mqttClient.onMessage(Connection, Data)
2022-03-28 10:10:17.720 Error: MQTT Discovery: File "/home/pi/domoticz/plugins/domoticz_mqtt_discovery/plugin.py", line 151, in onMessage
2022-03-28 10:10:17.720 Error: MQTT Discovery: self.mqttPublishCb(topic, Data['Payload'])
2022-03-28 10:10:17.720 Error: MQTT Discovery: File "/home/pi/domoticz/plugins/domoticz_mqtt_discovery/plugin.py", line 395, in onMQTTPublish
2022-03-28 10:10:17.720 Error: MQTT Discovery: message = rawmessage.decode('utf8')
2022-03-28 10:10:17.720 Error: MQTT Discovery: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 264: invalid start byte
please help
I get the error message below and I'm looking for a solution but can't find an explanation.
Anyone know what's going on here?
logbook Domoticz:
2022-03-28 10:10:17.717 Error: MQTT Discovery: Call to function 'onMessage' failed, exception details:
2022-03-28 10:10:17.720 Error: MQTT Discovery: Traceback (most recent call last):
2022-03-28 10:10:17.720 Error: MQTT Discovery: File "/home/pi/domoticz/plugins/domoticz_mqtt_discovery/plugin.py", line 392, in onMQTTPublish
2022-03-28 10:10:17.720 Error: MQTT Discovery: message = json.loads(rawmessage.decode('utf8'))
2022-03-28 10:10:17.720 Error: MQTT Discovery: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 264: invalid start byte
2022-03-28 10:10:17.720 Error: MQTT Discovery:
2022-03-28 10:10:17.720 Error: MQTT Discovery: During handling of the above exception, another exception occurred:
2022-03-28 10:10:17.720 Error: MQTT Discovery:
2022-03-28 10:10:17.720 Error: MQTT Discovery: Traceback (most recent call last):
2022-03-28 10:10:17.720 Error: MQTT Discovery: File "/home/pi/domoticz/plugins/domoticz_mqtt_discovery/plugin.py", line 1116, in onMessage
2022-03-28 10:10:17.720 Error: MQTT Discovery: _plugin.onMessage(Connection, Data)
2022-03-28 10:10:17.720 Error: MQTT Discovery: File "/home/pi/domoticz/plugins/domoticz_mqtt_discovery/plugin.py", line 379, in onMessage
2022-03-28 10:10:17.720 Error: MQTT Discovery: self.mqttClient.onMessage(Connection, Data)
2022-03-28 10:10:17.720 Error: MQTT Discovery: File "/home/pi/domoticz/plugins/domoticz_mqtt_discovery/plugin.py", line 151, in onMessage
2022-03-28 10:10:17.720 Error: MQTT Discovery: self.mqttPublishCb(topic, Data['Payload'])
2022-03-28 10:10:17.720 Error: MQTT Discovery: File "/home/pi/domoticz/plugins/domoticz_mqtt_discovery/plugin.py", line 395, in onMQTTPublish
2022-03-28 10:10:17.720 Error: MQTT Discovery: message = rawmessage.decode('utf8')
2022-03-28 10:10:17.720 Error: MQTT Discovery: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 264: invalid start byte
please help
Who is online
Users browsing this forum: Bing [Bot] and 1 guest