I'm trying to replace my vairous RM rules controlling my house lights with various Room Lighting instances and am struggling to determine the best way of making sure that the Room Lighting instances don't overlap/conflict with each other. Hoping someone may be able to point me in the direction of "best practice".
In the kitchen I have different light schemes depending on time of day (modes aren't really an option unfortunately given the number - e.g. I have one lighting scheme for sunset to 90 minutes after sunset, another for the 90 minutes after that and so on).
So in the below Room Lighting instance, I have limited activation to between Sunrise and Sunset with the lights turning off 5 minutes after motion becomes inactive.
The next instance will take over from Sunset +1 minute until Sunset +90.
My question really is this. How do I best structure the above instance (and the rest) so say, motion is detected 1 minute before Sunset in the above Sunset/Sunrise instance and then the next Sunset+1 until Sunset +90 instance kicks in, that:
- the lights will still turn off if there is no motion detected in the Sunset+1 until Sunset +90 instance (i.e. the first instance will still turn the lights off);
- if motion is detected in the second instance (say two minutes after Sunset), the first instance will no longer turn of the lights.
I've been experimenting with limiting turning off under Conditions etc. but I still get situations where the handover occurs and the lights turn off - don't turn on etc. So hoping someone can point me in the right direction so I can get all my Room Lighting instances correct from the start rather than the trial and error method I've been using.