Why is my picture I have take as a snapshot from my camera not updating on my dashboard

To ensure the HA dashboard is updating the local saved picture that you have taken as a snapshot from your camera, is to create it as a camera entity do this via Integration–>Local file, and point to the local picture location, for example it’s stored at; /config/www/xxxxx.jpg.

After that is successful use the created entity in a Picture Entity card that uses such camera entity to display the latest image of that “camera” entity. These should be updated regularly and not cached in your browser like a static picture URL/path pointer.

Yes, adding a unique date or time to the picture URL or filename itself makes the picture unique and therefor this could also work as the dashboard will update if the name is not static but unique.

As an example when you take a snapshot from a camera you could add the following to the jpg save: /local/cam_snapshots/xxxxx.jpg?v={{now().timestamp()|int }}

My preference goes to the first way to avoid caching.

Please comment if you have other solutions which also work, since I strolled around the interwebs for quite some time to locate all the different solution’s offered.

Example action in an automation to take the snapshot:

action: camera.snapshot
metadata: {}
data:
  filename: '/config/www/last_snapshot.jpg{{now().timestamp()|int }}'
target:
  entity_id: camera.doorbelcam

It’s also suggested in another topic to use a markdown card:

Example:

![Image](https://<myHome assistant URL>/local/snapshots/{{states("input_text.camera_driveway")}})

Hope this helps anyone browsing for solutions and if you have other good solutions post them below.

Create “image” entity and show it instead of a fixed local path.

1 Like