I'm starting to look at examples of simple automations and came across the YouTube video titled "A smarter way to automate bathroom lights" and liked the idea of using a contact sensor + motion sensor to instantaneously turn lights ON/OFF.
My question is around "Wait for event: Basement bathroom motion inactive". If I implemented this rule in the powder room and take the scenario where I walk in there to quickly wash my hands, leave, and CLOSE the door behind me, wouldn't this rule leave the lights on since by the time it gets to the IF...ELSE-IF statement (motion inactive), the door would be closed? I'm sure I'm just understanding this rule incorrectly, but it seems to me that this only works if the person never closes the door behind them as they leave.