Hi,
I have 2 automation for Lights On and Off based on PIR sensor (DIGOO PIR Sensor) triggered.
The problem is when the light goes off due to timeout without any movement, then (for some reason, i guess due to lux change) the light goes on again and the timer starts over.
I have try to implement with a timer and then through the automation but the result is the same. The light goes on again after a sec.
Is there away to delay the ON automation for (let’s say 3-5 sec) or temp disable the PIR sensor (let’s say 3-5 sec) in order to avoid that?
Any other thoughts would be great too.
TURN OFF AUTOMATION
---
id: '6789057843657567367837'
alias: Turn off Playground light when there is no movement
trigger:
#- platform: event`
# event_type: timer.finished`
# event_data:`
# entity_id: timer.timer_playground_main_lights`
- entity_id: binary_sensor.playground_main1_pir
for: 0:01:00
platform: state
to: 'off'
action:
- entity_id: light.playground
service: light.turn_off
initial_state: 'on'
TURN ON AUTOMATION
---
id: '6783363643657567367837'
alias: Turn on Playground light when there is movement
trigger:
- entity_id: binary_sensor.playground_main1_pir
platform: state
to: 'on'
- entity_id: binary_sensor.playground_motion_detected
platform: state
to: 'on'
action:
#- service: timer.start
# entity_id: timer.timer_playground_main_lights
- entity_id: light.playground
service: light.turn_on
initial_state: 'on'
TIMER
---
timer_playground_main_lights:
duration: '00:10:00'