Check last update on device

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

Moderator: leecollings

Post Reply
JeroenG
Posts: 27
Joined: Monday 06 January 2020 20:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 20231
Contact:

Check last update on device

Post by JeroenG »

Hi,

every few (something between 3 and 14) domoticz stops getting information from my Nibe Uplink connection. Solution is to disable and enable the device in the hardware section.

What is an easy way to detect if the last update of a specific device is more then x minutes ago? If this is the case some action should be taken (flip a switch, send alert or maybe even disable/enable the connection automaticly).

Posted this in dzVents as it looks as the best way to go, but any other solution is also welcome ;).

Any suggestions?
User avatar
waltervl
Posts: 5846
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Check last update on device

Post by waltervl »

The easiest way is to set a notification on last update time, so no need to script. https://www.domoticz.com/wiki/Managing_ ... ifications

Edit: if you need more and so need to script check the following topic for inspiration: viewtopic.php?t=28446
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
JeroenG
Posts: 27
Joined: Monday 06 January 2020 20:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 20231
Contact:

Re: Check last update on device

Post by JeroenG »

Thanks Walter,

notification on last update will probably be good enough. Never realised that it was a dropdown ;)
Post Reply

Who is online

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