I am trying to setup frigate.
The blueprint works fine, but to many bells and whistles and i would like to have a separate automation for my different cameras.
I can not get the uri link in the actionable notification to work.Any tips appreciated.
- alias: "Manual - Trigger alarm when person detected camera woonkamer"
trigger:
- platform: mqtt
topic: frigate/events
payload: new
value_template: "{{ value_json.type }}"
condition:
condition: template
value_template: "{{states('alarm_control_panel.home_alarm') != 'disarmed'}}"
action:
- service: notify.MyNotificationGroup
data:
message: 'A {{trigger.payload_json["after"]["label"]}} was detected on the woonkamer camera'
data:
image: >-
https://myurl/api/frigate/notifications/{{trigger.payload_json["after"]["id"]}}/thumbnail.jpg
tag: '{{trigger.payload_json["after"]["id"]}}'
when: '{{trigger.payload_json["after"]["start_time"]|int}}'
entity_id: camera.{{trigger.payload_json["after"]["camera"]}}
actions:
- action: URI
title: Open dashbaord
uri: /lovelace-alarm/overview
- action: URI
title: View Clip
uri: "https://myurl/api/frigate/notifications/{{trigger.payload_json["after"]["id"]}}/clip.mp4
- action: URI
title: View Snapshot
uri: "http://myurl:5000/api/events/snapshot.jpeg"
- action: URI
# title: Stream
# uri: https://myurl/api/camera_proxy_stream/camera.{{trigger.payload_json["after"]["camera"]}}?token={{states.camera.office.attributes.access_token}}
# - action: "silence-{{ camera }}"
# title: Silence New Notifications
# destructive: true
mode: parallel
Tried so many things but can not get actionable links to work. The thumbnail image in the message does work however