Hey all!
I am sure there is a simple solution to my problem.
Currently I have a schedule that every minute checks the lux on a sensor (it's in a cupboard).
If the door is closed the lux is 0; so I trigger an action based on it being greater than zero. Works fine!
The problem is that by pure bad timing you could open the cupboard and then close it almost immediately causing the trigger to occur.
What I really want is a schedule to check the sensor. If the door is open for say 60 seconds to then trigger an action. If the door is closed (because lux is zero) to effectively reset.
Is there an elegant way to do this?
thanks