Page 1 of 1

Python hardware plugin - device timeout

Posted: Tuesday 08 April 2025 7:39
by fleinze
Hi,

I wrote a python plugin for zigbee devices. What bothers me is that the devices don't turn red if the last update is longer ago than the configured timout. Is this by design? I noticed that I can manually trigger the red color by updating the device with ´TimedOut=1´.
Is the plugin expected to check if a device timed out? If so, how can I access the settings value for sensor timeout from within python?

I appreciate your help
--fleinze

Re: Python hardware plugin - device timeout

Posted: Tuesday 08 April 2025 8:14
by waltervl
Turning red (timed out) is by domoticz only implemented for some device types like sensors. Switches can be stable and not updated for days or weeks in contrary of eg temperatures.

Why are you creating a new plugin for zigbee? Are the available integrations (plugins or zigbee2mqtt/mqtt AD) not good enough?

Re: Python hardware plugin - device timeout

Posted: Tuesday 08 April 2025 9:26
by fleinze
I created a new plugin because I use a Tasmota Zigbee Gateway, which speaks MQTT, but is not supported by MQTT AD and I also don't want to install additional Software (zigbee2mqtt).
The devices in question are temperature-sensors which should time-out but they don't.
I can see the same behaviour with the tasmoticz-plugin for other sensor-devices like electric counters which should time-out. Funny enought, they time-out when I use Domoticz-remote on this devices, but not on the original domoticz instance.