This is a very simple rule. I'm posting it here because it's something I had previously not thought about when automating my outside lights. I like my front lights to go on each night regardless of whether I'm home or not. However, little witches and goblins may become quite agitated when they come up to my house, lit up, and find no one answering the door. To preemptively avoid being TP'd or egged, I changed my rule to have a required expression. Everything else is as it was before making this change.
2 Likes
I just realized that this requires expression will be evaluated every date change and every time mode changes to away, which is a (very slight) waste of hub time. Instead, since the action only runs once a day, it's cheaper to evaluate the condition when the rule runs. Also, did the date check first to short-circuit the AND on every date except Halloween. It's probably a silly optimization, but, what the heck, it is an optimization, so I'll do it.
3 Likes