Required expression option in button rule?

Sounds like a odd request I suppose but I have a button event that dont want to even run unless a condition is true.

The issue is the button event is created when you turn on and off the light from the switch. So when the switch is off i want this to run. but when its ON i dont want a new version of the rule to run as it might create a timing issue.

image

That's a lot of overhead for an edge case. You could just use a Conditional Action to exit the rule. The theory of Button Rule not having Required Expressions is that pushing a button is an entirely voluntary thing to do, as opposed to Rule 5.1 where any number of things might trigger it.

1 Like

Thats a simple idea that could work? i had though of putting the lot into a condition but then there may be a race condition of the light turning off and getting evaluated.

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