Stop Rule Actions If Device Attribute Changes

How do I exit execution of a rule's actions (stop actions) if a device attribute changes within X seconds?

I have a warning that plays before the garage door closes. I'd like to stop playing the warning and not close the door if the GDO-Obstruction device value changes to on.

Thanks!

Screenshots of the rule would help.

You want a screenshot of the rule I want to exit/stop actions?

I haven't modified the existing rule. I'm asking how do I modify the rule to accomplish the desired result (stopping actions).

These are the existing rule's actions:

image

Is it possible to use a rule's Private Boolean in a Conditional Action? If so, I could create a second rule to change the value of my original rule's Private Boolean:

image

and change my existing rule:

Delay 0:15 seconds
If Private Boolean = false, exit rule
Push button 2 on Lutron vKeypad1 (closes garage)

UPDATE:
I found the Private Boolean Conditional Action! I was looking under Variable because Private Boolean is described in the Hubitat Documentation as a built-in variable but it's listed as its own capability for Action Condition.

My rule actions are now:

image

And it works!

There is a Condition for Time Since Event. You enter a time for it, and it can be tested like any other condition in Conditional Actions.

3 Likes