Hi! first off I have learned so much from this community so thanks to all who contribute.
I have set up a automation to trigger a call service through the HA app when my camera detects motion.
It does this, but sends in multiples of 3 to 4 of the same notification which gets quite annoying. Do you know what could be causing this??
- id: '1635952552394'
alias: Front Step Camera Motion
description: 'Notify when motion detected at front step '
trigger:
- platform: device
domain: reolink_dev
device_id: d7a5227da50d20e6a776612f838ccfc3
entity_id: sensor.front_step_last_event
type: new_vod
condition: []
action:
- service: notify.mobile_app_codys_iphone
data:
message: 'Front Step Motion Detected '
title: Front Step
mode: single`
If your camera is sending more than one event you will get more than one notification.
To avoid this you can add this to the last line of your actions:
- delay: 5
As you are running in single mode the single instance of your automation will only be able to be re-triggered every 5 seconds. Adjust this time as necessary.
This will generate a warning in your system log that the automation is already running if it is re-triggered during this delay time. To avoid this you can set:
max_exceeded: silent
I generally tend not to do this as I like to see in my log when multiple triggers are occurring but being ignored, it’s up to you.