Update Frigate Notifications
This commit is contained in:
@@ -318,9 +318,13 @@ automation:
|
||||
trigger:
|
||||
- platform: mqtt
|
||||
topic: frigate/events
|
||||
payload: 'new'
|
||||
payload: new
|
||||
value_template: "{{ value_json.type }}"
|
||||
action:
|
||||
service: notify.security
|
||||
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 }}"
|
||||
|
||||
Reference in New Issue
Block a user