Turn on light when door opens and light has been off >= 1 minute

Hi,

I have a light that's set to turn on whenever the contact sensor on the door opens. That works fine when entering the room as there is only one way in or out. The problem is that my family tends to turn off the light before they open the door to exit the room, which then turns on the light again. Is there any way to set the light to turn on when the door opens, but only if the light has been off for more than 1 minute?

could try a global boolean, and have a rule that states when the light is turned off, set the GB to true, and set it to false after 1 minute. then in your contact sensor rule, start it off with if the GB is true, do nothing, else turn on the light

1 Like

Does the switch report physical events? If so, perhaps a hub variable can be used as a restriction to the rule with a wait for event contact closed to reset the variable.

1 Like

The global variable is what I ended up going with.