sydspost / Domoticz-WiZ-connected-plugin

Domoticz WiZ connected plugin
MIT License
5 stars 6 forks source link

Error: Wiz_light hardware (18) thread seems to have ended unexpectedly #1

Closed artenverho closed 2 years ago

artenverho commented 2 years ago

Hi,

I love your plugin! I have been having issues with the 'hardware thread' ending. It especially occur when doing multiple input to a light one after another but sometimes it also just occurs randomly. the only solution I have found is completely restart Domoticz.

I am running on ARM hardware with Debian Buster, Domoticz V2021.1 and Python 3.7.3 installed.

Have you seen this problem before? I would love to fix this but the log is not particularly helpful.

Cheers!

Maarten

Below the log:

2021-09-16 11:56:22.050 (Wiz_light) Processing 'onHeartbeatCallback' message
2021-09-16 11:56:22.050 Wiz_light: (Wiz_light) Calling message handler 'onHeartbeat'.
2021-09-16 11:56:22.050 Wiz_light: (Wiz_light) onHeartbeat called time=1631786182.0506508
2021-09-16 11:56:22.051 Wiz_light: (Wiz_light) in handlethread
2021-09-16 11:56:23.864 Wiz_light: (Wiz_light) Pushing 'onCommandCallback' on to queue
2021-09-16 11:56:23.911 (Wiz_light) Processing 'onCommandCallback' message
2021-09-16 11:56:23.911 Wiz_light: (Wiz_light) Calling message handler 'onCommand'.
2021-09-16 11:56:23.911 Wiz_light: (Wiz_light) onCommand called for Unit 1: Parameter 'Off', Level: 14
2021-09-16 11:56:23.911 Wiz_light: (Wiz_light) Sending command for DeviceID=wiz_523124.lan
2021-09-16 11:56:23.862 Status: User: Arten (IP: 130.225.198.151) initiated a switch command (198/Living Room Couch/Off)
2021-09-16 11:57:26.967 Error: Wiz_light hardware (18) thread seems to have ended unexpectedly
2021-09-16 11:57:40.971 Error: Wiz_light hardware (18) thread seems to have ended unexpectedly
2021-09-16 11:57:54.974 Error: Wiz_light hardware (18) thread seems to have ended unexpectedly
2021-09-16 11:58:08.978 Error: Wiz_light hardware (18) thread seems to have ended unexpectedly
2021-09-16 11:58:22.981 Error: Wiz_light hardware (18) thread seems to have ended unexpectedly 
sydspost commented 2 years ago

Maarten, i Saw this error also, but only during stop and start of the plugin in Domoticz. I have only one device in my home, so i can't test it with multiple devices. I'm on holiday now, but when i'm home i Will dive in to this problem (on condition that i can reproduce it with a single device)

artenverho commented 2 years ago

Hi sydspost,

I only have one device as well: https://www.wizconnected.com/nl-NL/consumenten/producten/8718699787158/. I have been trying to find out if it due to any interference with any of my other IOT devices on the network but so far I havent been able to find the problem. The Wiz Connected App works fine though. the error occurs for me multiple times a day and I can replicate it pretty reliably by quickly changing settings for the light multiple times in rapid succession.

I am not familiar with the Domoticz Python plugin structure. Is there a way to find on what line the script has an error?

Let me know I can be of any help.

artenverho commented 2 years ago

Hi sydspost,

It seems updating to the newest Domoticz beta might have solved it for me. At least I have not experienced any problems in normal use for the past 5 days.