Snapshot in Dashboard and Notification

Hi all,

I just can’t seem to get HA to display a snapshot image, either on the dashboard or as a notification. The snapshot automation works fine, and creates the image in a HA/config/tmp folder.

service: camera.snapshot
metadata: {}
target:
  entity_id: camera.ds_xxxxxxxx
data:
  filename: /config/tmp/{{ "BackDoor" }}.jpg

image

I can see the image and open no problem.

In config.yaml I have the following code:

homeassistant:
  media_dirs:
    media: "/config/tmp"
  allowlist_external_dirs:
    - "/config/tmp"

But when adding as a photo on a dashboard:

type: picture
image: local/config/tmp/BackDoor.jpg

The photo just doesn’t show!

image

I just can’t seem to fix it, same goes for using the photo as data in an android notification.

Many thanks in advance.