Page 1 of 1

Error: <name> hardware (<idx>) thread seems to have ended unexpectedly

Posted: Wednesday 17 December 2025 10:46
by fdemees
Hello,

I have a plugin (hardware item) supported by a Python script, that stops working after several days, and reports every 10 to 15 seconds in the log:

Code: Select all

Error: <name> hardware (<idx>) thread seems to have ended unexpectedly
2025-12-16 14_30_53-Domoticz — Mozilla Firefox.png
2025-12-16 14_30_53-Domoticz — Mozilla Firefox.png (21.77 KiB) Viewed 47 times
The script polls a dongle every X seconds via HTTP. The HTTP reply is a JSON-formatted reading. The script then feeds some Domoticz counters.
The dongle is attached to an electricity meter used in Europe (aka P1- smart meter).

There is no evidence of any malfunction of the dongle.

When this happens, if I go in the settings, Hardware, select that item, slide the switch in order to disable it, Domoticz becomes completely unresponsive (although the domoticz process is still there and consumes some CPU ticks.)

I have no crash log, nothing that could help tracing the defect.
-- --
The script is here: https://github.com/gettevan/HomeWizard-Wifi-p1-plugin
The dongle is from HomeWizard.com.
  • How can I diagnose the problem ?
  • Is there any better way to recover, other than stopping and restarting Domoticz ?
Thank you !