Hello all,
I need your help.
In my kitchen, the LED lamps are controlled by a motion detector. One hour before sunrise, the lights turn on when motion is detected and after 10 seconds without motion, the lights turn off again.
When cooking, the motion detector does not detect that I am still in the room and the lamps turn off again after 10 seconds.
Now I have bought a smart switch.
With this switch I want to expand the light control. If I press the switch, the light should be turned off after 5 minutes without movement.
I have already tested a bit, but do not get the setting.
TO BE TESTED but I would add an input_boolean to store if you push the button to switch on or off the kitchen led switch…
That input_boolen would have the same status then the light if you pushed the smart button… So:
Than you have to adapt the “switch off” automation to the two cases: the switch off due to no motion for x seconds and the second one, switch off after 5 minutes without motion because you pressed the button. I am using a variable to detect in which case we are (X seconds or 5 minutes without movement)… The automation will check that if you pushed the button to switch on the light (input_boolean “on”) and there is 5 minutes without motion (button == “on”), then it will switch off the light and reset the input_boolean. Same if you have no motion for x seconds (button == “off”) but you did no push the button (input_boolean “off”)…