I thing that I am asking is simple but I cant figure it out.
In my room I have sonoff touch(tasmota firmware) for the light and a motion sensor(Arduino with tasmota).
So I want to remain the state of the light “On” while the sensor detect movement, for additional 2 mins
I enter room -->motion detect —> light ON, stay in the room and every time the sensor detect movement that the rule add 2 mins to countdown. Leave the room --> no motion —> close the light in 2 mins
sorry for my English …
thnx in advance