Being relatively new, I am struggling with figuring out how to prevent a motion sensor in one room turning off a light in another room it turned on.
What I am trying to do - When the hall motion sensor detects motion I want the hall light and the bathroom light to turn on. If nobody goes in the bathroom then after the set time the hall motion sensor turns off the hall and bathroom lights. However if someone enters the bathroom I want the bathroom motion sensor to take control and turn off the bathroom lights after a set time of no motion.
As it is now the hall motion sensor overrides the bathroom sensor and shuts off the lights leaving us in the dark (wife happiness factor -0) until the bathroom motion sensor kicks in. How do I prevent the hallway motion sensor from turning off the lights when the bathroom motion sensor detects motion?
Note: I am familiar with Node-Red and the latest Home Assistant automations dashboard for reference, not so much with yaml but willing to learn.
This automation runs after we go to bed, so if the kids get up at night the hallway lights up at 10% brightness as well as the bathroom. This is necessary because if the hallway motion sensor doesn’t turn on the bathroom light ahead of time it will be dark when they enter the bathroom as it takes a long time to turn on lights that are dimmed below 25% (may be a function of the cheap ecosmart bulbs).