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.
This commit is contained in:
20
ha-automation.yaml
Normal file
20
ha-automation.yaml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user