Hello,
I would like to know if a switch has been activated with a timing condition.
For example if I use " commandArray['anydevice'] = 'On FOR 5' " I can check the status = On, but I can't know if there is a timing condition.
I have checked the JSON status fields for the device, but I have not found any difference if I activate it with 'On' or with 'On FOR 5'
Is it possible? Using LUA? Using JSON?
Thanks in advance !
Civi
Is it possible to know if a switch has been activated with a timing condition?
Moderators: leecollings, remb0
- bobkersten
- Posts: 34
- Joined: Tuesday 06 October 2015 9:17
- Target OS: Linux
- Domoticz version: beta
- Location: Venray
- Contact:
Re: Is it possible to know if a switch has been activated with a timing condition?
Currently there is no way to differentiate between a temporary or permanent On/Off action. You can however solve this with uservariables quite easily. Just store a flag when you turn it On for 5 minutes and remove it when it turns Off again. Anywhere between that period, if the device is On and the flag has not been set, it must've been turned On permanently.
Mac mini w/ ESXi running Ubuntu w/ Domoticz custombuild, SolarEdge 3500Wp, S0 Meter, P1 Smart Meter, RFXtrx433e, Aeotec Z-Stick Gen5
Who is online
Users browsing this forum: No registered users and 1 guest