If you have other places where you may want to apply this sort of thing, you might be interested in the Time of Day Design Pattern:
The tl;dr is you have a String Item which represents state and a rule or rules to calculate the state. In your rules that care they just check the state to see what it should do. I’ve found a String is better primarily because once you have more than a couple of states maintaining Switches becomes challenging.