I’m having a bit of an issue with the logic for modes. The away / home logic is simple, but for instance, I want my lights to come on when I walk in a room only when I’m home and it’s dark out, and not just when the dog walks into the living room.
Right now I have 5 modes - Away, Morning, Home, Evening, Night. If I was manually setting the modes, everything would be fine, but it’s getting them to set automatically that’s the issue.
For instance, if I’m home, the mode switches to “evening” when the sun sets, which allows my Light Follows Me programs to run. However, if I leave the house in the evening and return, I can only change it to “home,” since there is no if/then stage to instead switch to “evening” if I get home after the sun goes down.
I’m wondering if I’m going about this the wrong way, or if I should write a single presence app to include that logic, or if I should update the “light follows me” app to include logic to only fire if we’re past the sunset time.