Hi,
I am using the HIKVision binary sensors to detect that someone’s at the front door or walking up the driveway. This does things like send notifications to Alexa, Apple iPhone and Watch and Switches on the hallway lights for 10 minutes.
However I want to stop multiple notifications if you are going in and out loading the car (for example), to do this I want to inhibit further notifications within a set time period (e.g. 5 minutes).
One of my Automations is posted below, but I can’t work out what I need in the script to mute the action for 5 minutes after each activation. Help would be appreciated as I’m not a great software guy - my specialism is hardware!
-
alias: Front Door Motion Hall Lights On
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.front_door_motion_2
to: ‘on’
action:
service: light.turn_on
entity_id: light.hall_downlights -
alias: Hall lights off 10 minutes after last movement
trigger:
platform: state
entity_id: binary_sensor.front_door_motion_2
to: ‘off’
for:
minutes: 10
action:
service: light.turn_off
entity_id: light.hall_downlights