I want my lights go on full when we are awake, but dimmed if it’s night (sleeptime). So for all motions sensors I have a flow that when there is motion, and awake is true, go full. When there is motion, and awake is false, go dim.
But Now the boolean.
The start is quite easy. The same time every weekday and another time on weekends.
The awake is false is more random. It is: after a certain time (9 pm) but not when there is a light on in the living room or bedroom. Or after a certain time (11 pm) or when the light in the living room or bedroom is turned off earlier.
But it feels like a lot of flows. Is there a better way? Any suggestions? How do you do this?