mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
14 lines
557 B
YAML
14 lines
557 B
YAML
alias: Notify of Frigate Events
|
|
id: automation_notify_of_frigate_events
|
|
initial_state: 'off'
|
|
trigger:
|
|
platform: mqtt
|
|
topic: frigate/events
|
|
action:
|
|
- service: notify.mobile_app_pixel_7
|
|
data:
|
|
message: 'A {{trigger.payload_json["after"]["label"]}} was detected.'
|
|
data:
|
|
image: 'https://automation.clintweaver.com/api/frigate/notifications/{{trigger.payload_json["after"]["id"]}}/thumbnail.jpg?format=android'
|
|
tag: '{{trigger.payload_json["after"]["id"]}}'
|
|
when: '{{trigger.payload_json["after"]["start_time"]|int}}' |