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

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
User avatar
user4563
Posts: 114
Joined: Tuesday 19 October 2021 17:24
Target OS: Linux
Domoticz version: 2025.2
Contact:

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

Post 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
ODroid H4+ / Ubuntu server 24.04 LTS
Aeotec Z-Stick Gen5+
ZWave-JS-UI / Mosquitto MQTT
Domoticz for Android
Domoticz Scenes add-on in Kodi
rrozema
Posts: 470
Joined: Thursday 26 October 2017 13:37
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Delft
Contact:

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

Post by rrozema »

Every device has a timedOut property which is true when the device is timed out.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest