Good morning,
I am using Zigbee2MQTT, and I have two Sonoff motion sensors connected to it. One motion sensor is mounted above the door at the entrance, and the other is located upstairs by the staircase. On the top floor, there is only the bathroom. To avoid walking in the dark on the stairs, I created two separate motion automations.
When I walk from the hallway to go upstairs (to the bathroom), the light in the hallway turns on and stays on for two minutes. Then I proceed up the stairs, and the other motion sensor detects my movement. However, when I walk back downstairs, the hallway light turns off, leaving me to descend the stairs in the dark. How is this possible? The motion sensor on the stairs detected me, right? Why does the first motion sensor override my movement and still turn the hallway light off after two minutes?
I also tried linking both motion sensors in the same blueprint, but I still didn’t get the desired result.
My specific question: how can I ensure that the motion sensor on the stairs (or vice versa) always sends the last update to the light, and from that point, the light stays on for two minutes before turning off? Instead of the light turning off two minutes after the first detection?