I have a few rules that track whether family members are awake or not yet, but also notify me if a child uses the bathroom, etc. in the middle of the night.
I am missing a timeout in this rule and was seeking help to place it and also add the action to exit the rule in that case. There is a required expression to prevent running when not necessary, and the trigger is simple motion active. My thought is to simply add the timeout to the 'wait for expression' action, which is first - but confused on where/how to add the action 'exit the rule' properly so it doesn't exit when it's running properly / true positive.
NOTE: I'm using a virtual presence to toggle sleep/awake.
Sorry, I maybe wasn't clear -
My goal is to cancel the notifications if the door isn't opened within 90 seconds for example. I went ahead and added the timeout and exit rule action where I desire them to go, but just not sure how to cancel the "exit rule" action if the door IS opened within the 90 seconds.
It could be more elegant way but when I am using a "Wait for Expressing" statement with a Timeout immediately after i am using IF statement with the same expression as for the Wait. If IF is true then the Expression became TRUE before the Timeout expire but if FALSE then Timeout was the reason for the Wait to complete.