Hi I have got an automation that uses my Amcrest Door Bell motion detection binary sensor to turn on an outside light after sunset. The light Stays on for x mins, when the light goes off, the camera see this as motion and triggers the light back on.
How do I add a delay so that the binary sensor is not seen until x mins has past.
description: Turn On Side Lights If Motion Detected
trigger:
- entity_id: binary_sensor.doorbell_camera_motion_detected
from: 'off'
platform: state
to: 'on'
condition:
- condition: or
conditions:
- after: sunset
after_offset: -00:30:00
condition: sun
- before: sunrise
before_offset: -00:30:00
condition: sun
action:
- data: {}
entity_id: switch.side_lights
service: switch.turn_on
alias: Turn Off Side Lights when motion ends
description: ''
trigger:
- entity_id: binary_sensor.doorbell_camera_motion_detected
for:
minutes: 1
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data: {}
entity_id: switch.side_lights
service: switch.turn_off
Kind regards Dave