Page 1 of 1

Need to detect a power outage on an outlet - how to get the sensor timeout in dzVents

Posted: Thursday 30 December 2021 19:33
by user4563
Hi,

I'm trying to detect a power outage on a circuit that I have a Z-Wave switch plugged into. Domoticz can already detect a sensor timeout which would be adequate (turns red). However, I don't see a way to get the sensor timeout true/false in dzVents so I can notify on it. Nothing was in the docs or on this board. Does anyone know if this is possible?

I also tried the domoticz.devices('MyDevice').lastUpdate.minutesAgo to see if I could work with that but returns nil on every device

Re: Need to detect a power outage on an outlet - how to get the sensor timeout in dzVents

Posted: Thursday 30 December 2021 23:35
by rrozema
Every device has a timedOut property which is true when the device is timed out.