My situation:
I have an automation to turn on the nightstand lights when I open my bedroom door. But when I manually just turned them off from the inside, and open the door to leave, the automation will turn them on again. So if the light is on and I want to leave the room, I have to open the door first, and then turn off the light before I close the door. And if the light is off, the light will be turned on even if I don’t want to when I open the door to leave the room.
My mitigation:
I added a light sensor in my bedroom so the automation will not run when it’s bright enough.
I also added a time range node so when I leave around 6 AM for work and it’s still dark I won’t set the automation on and turn on the light with my partner still in sleep.
My problem:
I still can’t find a way to temporarily disable this automation for a short period of time (1m?) based on light state, so when I turn off the light before I open the door to leave the room the automation will not run and set the light on.
Here is my current setup: