@Jamie_Pryer wrote:
Hey all,
Ive setup the below, which works well to turn the lights on.
However im confused about the timer.
When there is motion in the room, the timer then starts to count down, however i was expecting that more motion in that room, would keep resetting the timer back to 30 minutes?
however it just keeps counting down? which means when it gets down to 0, all lights go off, even if there has been motion the room?do i need to add in a stop function as well? i dont see a “reset” option?
where am i going wrong?Host system
Hostname hassio System HassOS 3.5 .
configuration: timer: timer_motion_living_room: duration: '00:30:00' automation: ############### living room ############### - id: livingroomlightsonmotion alias: living room lights on motion trigger: - entity_id: binary_sensor.living_room from: 'off' platform: state to: 'on' condition: condition: state entity_id: sun.sun state: below_horizon action: - data_template: entity_id: group.room_living_room_all_lights service_template: switch.turn_on - service: timer.start data: entity_id: timer.timer_motion_living_room - id: livingroomlightsoffafter30minnomotion alias: living room lights off no motion 30min trigger: platform: event event_type: timer.finished event_data: entity_id: timer.timer_motion_living_room action: - data_template: entity_id: group.room_living_room_all_lights service_template: switch.turn_off
Posts: 2
Participants: 2