In my case whenever my front door is opened for 10 seconds as someone comes and goes it is turning my themostat off for 5 minutes before turning it back to auto because the door closed. I only want the thermostat to turn off if a contact has been open for more than 5 minutes, not everytime someone opens and closes a door or window for only a few seconds to go in or out or to just clean a window.
Do I really need to have the contacts for any closed as a trigger or will the fact that opening trigger the entire rule to run even after say 2 hours that a door or window has been open that the thermostat will recognize the closure and continue the rule to turn the thermostat back on?
This is all doable if you write the rule correctly to do so.
Can't tell what you are agreeing with, or what this means. Cancel is specific to actions with delays and cancel selected. It is not a "stop this rule" mechanism. There are other ways to do that.
I guess I'm not understanding how this could be written any different to do what I'm trying to accomplish. I looked at the wait commands but there's no "wait" with cancel on truth change, thers wait for an event or wait for a condition... perhaps you're saying I should wait for the contact sensor to be open for 5 minutes with a cancel on truth change? I suck a rule writing... sigh
The only thing that you might want to think about is if you have multiple doors or the window opened during the same 5 minute period. A second opening would cancel the first opening delay causing the thermostat to stay in auto for longer than 5 minutes with something opened. If it's an unlikely case you should be fine.
You also might want to insert an action of delay rather than use a delayed action. Delayed actions all get scheduled at the beginning of the block of actions, then the rest of the actions happen. So, you are scheduling a delayed action and then immediately canceling it. This is what the order of operation when any of your contact sensors open and the thermo is in auto mode:
Schedule delay of Thermo Off
Schedule delay of Notification
Cancel all delayed actions
The last one will cause the first two to not happen.