IF statements

I’m just curious on if you guys use the IF THE ELSE Conditions or just regular rules.

I’m still new to rules and find IF conditions a lot easier to get something up and running (like a presence heating rule) over the regular rules option which was confusing me a bit (I need to watch more training videos)

If-Then-Else are only for conditional actions, the conditions or triggers of rules cannot use them.

Example

Trigger - Hallway Motion Active
Action - If time of day is between sunset and sunrise Then
Action - Set hallway dimmer to 60%
Else
Action - Set the hallway dimmer to 50%
End If

Yeah I need to get my head around it a bit more

The conditional actions within a rule only work in the overall action is already taking place, either via a rule's truth change (in the case of a rule) or a Triggered event, in the case of a trigger....So, Rules don't have an ELSE. Only conditional actions do.

Yeah I realised I wasn't using Rule Machine in that much depth I've spent some time on it and now get it

1 Like

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