Update Frigate Notifications

This commit is contained in:
2022-10-07 11:06:27 -07:00
parent ac37a3a125
commit e5856e9488

View File

@@ -318,9 +318,13 @@ automation:
trigger: trigger:
- platform: mqtt - platform: mqtt
topic: frigate/events topic: frigate/events
payload: 'new' payload: new
value_template: "{{ value_json.type }}" value_template: "{{ value_json.type }}"
action: action:
service: notify.security service: notify.security
data: data:
message: "{{ trigger.payload_json.after.label|title }} detected on camera {{ trigger.payload_json.after.camera }}" message: "A {{ trigger.payload_json.after.label }} detected on {{ trigger.payload_json.after.camera|title }} camera"
data:
image: "https://hass.kraussnet.com/api/frigate/notifications/{{ trigger.payload_json.after.id }}/snapshot.jpg?foramt=android"
tag: "{{ trigger.payload_json.after.id }}"
when: "{{ trigger.payload_json.after.start_time|int }}"