Hi,
So I have sensons for motion detection, now i have to create an automation for turning it on and off with al loth of checks, because some ligths have 2 sensors for keeping them on, so it would be much easier to just turn a light on for a time:
action:
service: light.turn_on
entity_id: group.living_room_lights
for:
for:
hours: 1
minutes: 15
seconds: 0
And the next action just resets the timer, and after the time has passed, it will turn off. Ow, and a normal turn on action will just completely stop the timer.
What do you think about this?