Suppress further triggers

This must be an FAQ, but my searching hasn’t found it, so…

…how do I say “don’t trigger this for another 10 minutes”
(eg. if there’s movement in the back yard, I don’t want notifications every 30 seconds!)

Create a script and call it from the automation that is triggered by the motion detector and sends you notifications. In that script do a sequence that turns off the notification automation, delay 10 minutes, then turn on the notification automation.

EDIT: Here’s pseudo code
add this to the automation:

action:
- service: script.turn_on
  entity_id: script.disable_notifications

create a new script:

disable_notifications:
  alias: Disable Notifications
  sequence:
    - service: automation.turn_off
      entity_id: automation.backyard_motion
    - delay: '00:10:00'
    - service: automation.turn_on
      entity_id: automation.backyard_motion
1 Like

Great.
For the purposes of simplicity, I’ve just put it all in the automation script - I presume that’s the same?

  • alias: ‘DriveMovement’
    trigger:

    Prefix the first line of each trigger configuration

    with a ‘-’ to enter multiple

    • platform: state
      entity_id: binary_sensor.fibaro_system_fgbs001_universal_binary_sensor_sensor_3_0
      to: ‘on’
    • platform: state
      entity_id: binary_sensor.fibaro_system_fgbs001_universal_binary_sensor_sensor
      to: ‘on’
      condition:

    Prefix the first line of each condition configuration

    with a ‘-’’ to enter multiple

    action:
    • service: hello_service.sendcam23
    • service: automation.turn_off
      entity_id: automation.DriveMovement
    • delay: 00:05:00
    • service: automation.turn_on
      entity_id: automation.DriveMovement

Actually I don’t think that would work because your automation action is turning that automation off so I think it might stop the rest of the automation and never turn back on. That’s why I suggested running a script so the automation action would complete, then the script would turn the automation off then back on. You can try it with everything in the automation, but I wouldn’t be surprised if the automation never turns back on after the 5 minute delay.

Looks like you selected the quote option (") instead of the code block option (</>) when posting your code.

Thanks for the tip on the quotes.
And that might explain why it’s gone rather quiet today!
…although I’m sure it was OK last night, turning itself off and and back on.
Weill check when I get home.

Actually, it’s fine. It was quiet because nothing was going on. I think at the moment, I’ll keep it in the automation as it’s all rather simple.