I've been trying to get this working for a while now, I'm sure its just a syntax thing but I cant figure it out, here is my current automation:
`
alias: Frigate notification
description: ""
triggers:
- topic: frigate/events
trigger: mqtt
conditions: []
actions: - action: notify.homeassistant
metadata: {}
data:
target: "xxx"
message: >-
{{trigger.payload_json["after"]["camera"]}} -
{{trigger.payload_json["after"]["label"]}} detected
data:
photo:
- url: >-
http://192.168.1.3:5000/api/frigate/notifications/{{trigger.payload_json["after"]["id"]}}/thumbnail.jpg
caption: >-
A {{trigger.payload_json["after"]["label"]}} was detected on the
{{trigger.payload_json["after"]["camera"]}} camera. - delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
mode: single
`
Within the 2nd data: block I've tried photo, images, urls and have tried some with single quotes around them and some without, but just cant figure this out. The message gets sent but the image never does.
Any help please?