Wait for Expression, timeout, exit rule

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.

I think you can simply turn on the slider cancel pending actions, in the required expression.

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.

Oh yes, that would work for my needs here.
I'll see if any other suggestions come in today but otherwise will mark it solved with your reply, thanks!

This, several ways to skin the cat as they say. But a simple IF door is closed exit rule should work.

2 Likes

Ok, I'll have to wait until tomorrow to test it out, but I think this encompasses the goals, thanks to the help from you guys!

  • Addi presence = virtual switch to denote asleep/awake
  • Addi Ball Light is turned off at bed, so I know this will only run after official 'goodnight'

Does it pass the sniff test?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.