Delay between triggers of automations

Hi!

So I have this automation that uses my speakers to tell me when there is someone in front of the camera.

alias: "Notification : Front door motion"
description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.front_door_motion_detected
    to: "on"
condition: [ ]
action:
  - action: tts.speak
    target:
      entity_id: tts.google_en_com
    data:
      cache: true
      media_player_entity_id: media_player.googlehomemini_office
      message: Front door motion detected
mode: single

It works very well but if some stays a little bit in front of the camera while not moving a lot, the entity goes from “clear” to “detected” multiple times and having my speakers telling me there is someone every 5 seconds is not fun.

Is there a way to make sure that if the automation have been triggered, wait X minutes before triggering again?

thanks

Since your automation runs in single mode, so you can add a delay of your liking at the end of the action sequence.

Also, please format your config. You’ve used the quote functionality. Use the preformatted </> option or two sets of three backtiks.

wow, I thought adding a delay would be use only in the current trigger but new triggers could happens meanwhile.

So simple, it works perfectly. thanks!

I suppose it’s because of the “single mode”.