I can’t for the life of me figure out why this isn’t working, it works fine when either of the conditions is removed (so there’s only the 1 condition)
With them both added the light just stays on
(I’ve removed entity id’s but they are there in real life )
If I understood your automation correctly it appears that at the moment the bathroom door is closed (after it has been vacated) it turns off the bathroom light but only if the light is already on and, most importantly, no occupancy has been detected for at least the past 10 seconds.
I don’t know how you think the second condition works but here’s how:
The condition doesn’t wait for there to be no occupancy for 10 seconds, it expects it at the moment the door is closed. In other words, starting at least 10 seconds before the door is closed.
The person would have to exit the bathroom without the occupancy detecting any motion for at least 10 seconds prior to closing the door. I don’t see how that can work (unless the occupancy sensor is located in a way that it very quickly loses sight of the person leaving the bathroom).
Thanks for this, made me think about it more basically, I think I’d gone over it so much I was confusing myself and making it more complex than it needed to be haha
I’ve re-done it now so that the trigger is the no motion detected and the conditions are - light on & door sensor in closed position.