Add a camera image to persistent notification?

When my Ring doorbell detects motion, I have an automation that creates a persistent notification showing the date/time of the motion event. The automation also takes a snapshot from my front door camera and sends it to me via an iOS notification.

I would like to add the camera snapshot to the persistent notification. Is that possible? How?

I had a similar question to this a while ago, but it was more to do with how to get HTML into t he persistent notification in general. I never posted it though as I found another way to accomplish what I wanted.
John

Maybe someone is still searching for this. Here is a supported markdown
https://commonmark.org/help/

Thanks @EdgarK. Markdown was all new to me but I managed to wade through it and get images into the persistent notifications.

service: notify.persistent_notification
data:
  message: <b>Garage Motion ![Garage Motion](/local/clips/garage.jpg)

The next part of the equation is being able to use dynamic filenames so that subsequent repeated snapshots don’t overwrite the older notification images. I’d like to be able to see a history of persistent notifications with images that are correct for when the notification happened.

It would be great if we could use a DddHHMMSS as a replacement variable for the filename. Do any of you think this would be possible, or am I barking up the wrong tree?

Thanks for any suggestions :slightly_smiling_face:

Update: snapshot timestamp can be done as follows:

service: camera.snapshot
data:
  filename: /config/www/clips/{{ now().strftime("Garage %Y-%b-%d %H.%M.%S") }}.jpg
target:
  entity_id: camera.blueiris_garage

This saves a snapshot of the garage cam with the timestamp. “Garage 2023-Feb-20 10.21.03.jpg”

Next I’d like to be able to use the new filename in a persistent notification.

@tenly any update as to displaying those snaps as persistent notifications ?

This should help:
https://community.home-assistant.io/t/timestamp-into-string-variable/175432/3?u=blackway

1 Like

That looks like it would do exactly what I want.
Thanks very much for the lead.