I’ve created an automation to alert my smart speakers if motion is detected on my driveway from my video doorbell sensor, however I want to restrict the number of notifications if I’m washing the car for example to one every 3 or 5 minutes. How can I do this in the yaml code below? Thanks for your help
alias: Front door
description: ""
trigger:
- type: motion
platform: device
device_id: 02e8c797aafd29aab94fd6e40ac75e8c
entity_id: 7bf1c76898506648b631b923e7fe1d2d
domain: binary_sensor
condition:
- condition: time
after: "07:00:00"
before: "21:30:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
action:
- service: notify.alexa_media
data:
message: "Motion detected at the front door. "
target:
- media_player.kitchen
data:
type: tts
mode: single