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

Python and python framework

Moderator: leecollings

Post Reply
fdemees
Posts: 30
Joined: Sunday 29 March 2020 17:33
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Belgium, close to Brussels
Contact:

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

Post 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 41 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 !
Domoticz on Rpi 3B+, ZigbeeforDomoticz, Sonoff Zigbee coordinator, several Sonoff/ESPEasy/Tasmota, IPX800, several Zigbee things, Ksenia Lares
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 1 guest