Files
ha-frigate/doorbell_notification.yaml

20 lines
608 B
YAML

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