If switch was on at least 30 seconds?

After being on Hubitat for over a year, I’m finally moving my automations over to Rule Machine from webcore. There is one automation I’m struggling to recreate.

How do recreate ā€œswitch was on at least 30 secondsā€ as a conditional action?

Define two local variables.

Thanks. I didn’t get deep enough into RM to learn about variables. Guess I’ll do that next!

1 Like

The reason it has to be done that way is that Variable Math (e.g., the subtraction, and the comparison) can only be done with variables, not time functions like ā€œnow()ā€.