Closed LarsThunberg closed 2 years ago
Found a solution: line 257 need to convert/decode to utf-8. When fixed, the script updates the devices!
received = sock.recv(1024).decode('utf-8')
I'm closing this issue.
Lars, thx for your contribution. I added your suggestion to the plugin and tested it, it works fine. So i added the .decode to all sock.recv commands in the plugin. Syds
Hi, got this plugin running and it´s a cool plugin for my WiZ lights! I have this error every 10 second, I guess it is the JSON respons from the WiZ light? The status of the light is not updated in Domoticz, if changed from the Wiz app. But controlling the light from Domoticz is possible.
Can I just ignore the error or can it be fixed?
2021-10-21 14:09:42.647 Error: WiZ : (WiZ ) handleThread: the JSON object must be str, not 'bytes' line 257