But see, you have to change your thinking slightly. You are putting the conditions first or you're mixing your rules with your conditions. Think of it this way, The phone rings, so you pick it up. It's a robot call, so you hang it up. The phone ringing is the event that cause the something to happen, you picking up the phone. Who's on the other end is the condition that you evaluate and then take action on. So, in your example, arriving home wuld be the trigger. The condition you're going to evaluate is what time of the day (or mode) the system is in.
Ultimately, something has to cause the rule to begin it's work. All of that is based on events generated by devices. If you can think of it that way, you can usually find the correct trigger to use in your rule. Just ask yourself, when I want this to happen, what was the last event that occurred? That will be your trigger. You'll get it...just keep plugging away at it.
I would not put it that way Combining the trigger and the condition with AND is probably going to confuse people. If I were you, I would separate the trigger from the action. I usually put it this way.
TRIGGER: Presence Arriving
ACTION:
If Mode is Night Then
Turn on light
End-If
Separate the trigger from the condition and I think you might find it easier for people to understand.
So immediately after trigger I cancel delayed actions (should just be the off?)
The light is normally triggered by motion - so its status is usually correct. The fan is ZW (not Plus) switch and often doesn't report physical changes. So I added the refresh and delayed processing for 10 seconds to allow it to correct.
Awesome. Thanks for clarifying. Was just thinking that if someone got to a point with their hub's performance where the number of rules triggering off an event became a bottleneck of sorts that you could pause/unpause sets of rules depending on say the mode. Not that I need that, as my list of rules is pretty small at this stage.