What am I doing wrong?

Can anyone tell me why this didnt run? Do I need an end if between each If statement? I added the end if after it didnt fire. Not sure if that makes a difference or not.

If I click Run Actions it did what it was supposed to but it didnt do it on its own.

edit: It runs if I have a trigger look at the rule but it doesn't run without that.

Are there any Triggers for this rule? Any Required Expressions?

There are not. Is that what I'm missing?

Required Expressions, no. Triggers, generally, yes. And I would pu in the End Ifs just because it looks better, if not needed.

Ok thank you. I assumed that this If statement would run if the different conditions changed. I thought I could do it without a trigger.

That is the trigger - things changing.

1 Like

Right, but one of those If statements became true and nothing happened. Am I just being impatient? Not sure how often the rules refresh. Once I added an actual trigger it happened right away.


Once I did this it worked instantly.

1 Like

Without a trigger, the actions will never run, unless the rule is called by another rule.

1 Like

Understood. Thank you. I just misunderstood how these work.

That answers my question! Thanks so much everyone.

To clarify, the Hubitat model is event driven. Rules (and other things) are scheduled to happen when events (triggers) occur. The rules aren’t always running; they only run when the triggering events occur.

2 Likes