I have a problem with one of my rules.
lamp is turned on for 5 minutes and pir is absent for 5 minutes
turn off lamp
The 5 min delay is to prevent to lamp to go off, if I turn the lamp on when no movement is detected. But… If I turn it on and go inside the room(movement detected) the lamp goes off after 5 min