I have a TTS announcement on doorbell motion. It’s working but the issue is, if people are hanging out in front of the door, it’s constantly triggering the announcement. How do I configure so this trigger can only happen once every 5 minutes, for example.
trigger:
- type: motion
platform: device
entity_id: binary_sensor.motion_g4_doorbell
domain: binary_sensor
condition:
- condition: time
after: '09:00:00'
before: '23:00:00'
action:
- service: media_player.volume_set
target:
entity_id: media_player.google_hubs
data:
volume_level: 0.65
- service: tts.google_say
data:
entity_id: media_player.google_hubs
message: Motion at Front Door
mode: single