I have a hallway with 3 lights. Right now they switch with the sensor light automation and have one IR-motion sensor.
Now I would like to add door sensors and switch the lights on one by one based on which door is open. So for example if the door on the left has opened and then the motion sensor triggers the light on the left should be switch on first then the middle one and so on.