I have a script that puts a camera capture in the lovelace www folder and overwrites it every 10 minutes. I have noticed that all webbrowsers seem to cache the image rather than re-load it every time. Is there a way to make sure the image is always reloaded and not cached?
What type of card are you using to display the image?
I’m using a Picture card.
hold_action:
action: none
image: /local/img/water_reading.png
tap_action:
action: none
type: picture
Is there a reason why you are not using a camera card to view the live camera image?
Because I don’t want to set up a camera connection every time the tab is opened, I’m happy with a ‘snapshot’. It’s for my water meter so having a capture every 10 minutes that is being updated when I go to the tab is good enough.
Set up a generic still image camera to point at your saved image then.
I think this will work:
camera:
- platform: generic
still_image_url: /local/img/water_reading.png
name: Water Meter
If that does not work you may have to use:
still_image_url: http://127.0.0.1:8123/local/img/water_reading.png
Then show the camera in a picture entities card.
entity: camera.water_meter
name: Water Meter
show_state: false
type: picture-entity
thnx, that also helped me solving my problem
i also had a snapshow, when post arrived
now created a camera generic for that, and showing a camera in a picture entity card , instead of picture card