Long story short: I currently have a series of triggers set up so that opening any window in the house will immediately cause the air conditioning or heat to shut down if it's active. Similarly, closing the windows will cause the thermostats to turn back on.
I'd like to do the same thing for doors in the house, however, I don't want to toggle the state every time a door is open -- only if a given door is open for a minimum length of time. Doors are used more frequently and I don't want to short-cycle the AC.
e.g. if a door is open for at least 5 minutes, shutdown the thermostats, turn them back on once all the doors are closed.
Triggering on a door open or close to set a variable is easy. However, figuring out how to cause a later action which would allow me to test the variable is the problem.
In the current UI, there doesn't appear to be a way to delay the testing of a condition or for a trigger to delay and fire another trigger.
I'm I missing something obvious?
Thanks