So, you might be asking: "Why not just use motion lighting?"
Well, I'm using a very similar rule for my kitchen to set color based on time. So my question is: How do I get a rule to wait until the motion sensor is inactive before it starts the timer to turn off the light, or dim, or do whatever else the rule does? I threw this together by reading a few other posts, and it still doesn't do what I expect, which is keep the lights on until no motion is detected, and then start the timer, cancelling it when motion is detected again, etc, until the lights finally just turn off when no motion has been detected in that window.
imgur com/a/pCRgdQx