Multiple IOS notifications through app

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`

Please have a read of this and edit your post.

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.

More on automation modes here:

Wow thanks for taking the time to reply, I’ll def fix the bad drop of code when I’m back on PC, my bad!

I’ll have a read through that, makes a lot of sense :slight_smile:

Thanks again.

Sorry to bug you again, when added the delay ( I am most certainlty doing it wrong) I am getting "Property Delay is not allowed.

- 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
  - delay: 5
    data:
      message: 'Front Step Motion Detected '
      title: Front Step
  mode: single

EDIT. Managed to fix my mistake :slight_smile:

  action:
  - service: notify.mobile_app_codys_iphone
    data:
      message: 'Front Step Motion Detected '
      title: Front Step
  - delay: 5