From 1c0dd62b61c0c33dcf04ddba454376b50f079afe Mon Sep 17 00:00:00 2001 From: tonym Date: Wed, 1 Oct 2025 23:21:36 -0500 Subject: [PATCH] Add ha-automation.yaml feat(ha): add notification debouncing for doorbell person detection - Set mode: single to prevent concurrent automation runs - Add 60-second delay cooldown between notifications - Update camera name to lowercase 'front' to match Frigate config - Use Frigate event snapshot API for accurate thumbnails Prevents notification spam while maintaining fast person detection. One notification per minute maximum per person approach. --- ha-automation.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ha-automation.yaml diff --git a/ha-automation.yaml b/ha-automation.yaml new file mode 100644 index 0000000..57a63bb --- /dev/null +++ b/ha-automation.yaml @@ -0,0 +1,20 @@ +alias: Notify - Doorbell Person Detected +description: "" +mode: single +triggers: + - topic: frigate/events + value_template: > + {{ value_json['type'] == 'new' and value_json['after']['label'] == + 'person' and value_json['after']['camera'] == 'front' }} + trigger: mqtt +conditions: [] +actions: + - data: + message: 🚪 Someone is at the door + data: + image: >- + http://192.168.0.5:5341/api/events/{{trigger.payload_json['after']['id']}}/snapshot.jpg + url: homeassistant://navigate/dashboard-camera/0 + action: notify.household_phones + - delay: + seconds: 30 \ No newline at end of file