My wife carpools with her sister in the morning. She shows up any time between 7:15 and 7:30 and they leave between 7:30 and 7:35. The off part is easy since I can have it turn off at 7:35 and it does not matter if it is on or not. My question is about how to do the "on" part. I want the light to come on at 7:15 only if it is not yet sunrise. Is there a way to do that?
I would try a predicate rule and use ”between two times,” then set to “between 7:15 and sunrise”
This won't work, because after sunrise, between 7:15 and sunrise means sunrise tomorrow.
What would work is a second rule that sets the PB of this rule to true at 4:00 AM, and then to false at sunrise. Then the predicate could be that PB is true, with a trigger of 7:15 AM. That would not trigger unless 7:15 is before sunrise, when PB is still true.
Ahhh - Got it. You gave me the hint I needed. I actually just did it with mode. I set Day at sunrise, Evening at sunset, Night at 11pm. I use mode=Night as my predicate.