Is it possible to check how long a switch selector was on a certain level?
I have a switch selector 10, 20, 30, 40 and want to use the .lastUpdate.minutesAgo but not on the swicht but on the level of this switch, so count how long level 40 was actif for example.
lastUpdate on switch selector
Moderator: leecollings
- waltervl
- Posts: 6691
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: lastUpdate on switch selector
There are scripts available that can count how long a switch is in On status, eg for calculating run time of an engine. Those should be able to rewrite to selector switch. Example: viewtopic.php?t=23713
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
roblom
- Posts: 408
- Joined: Wednesday 26 February 2014 15:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: the Netherlands
- Contact:
Re: lastUpdate on switch selector
Thank you for your reply, I used another trigger which was easier than write some code to count. The link you supplied is still useful so I saved it.
Who is online
Users browsing this forum: Google [Bot] and 1 guest