Picture Elements don't show new floorplan (new file in www)

How can I change the floorplan of an exisisting picture element?

I have ste up 4 picture elements cards in lovelace. the floorplans are stored as described in directory /www.

I had to change a floorplan image in the /www directory, but the new image is not shown in lovelace on the picture elements card. It seems that the pictures after first config are “loaded” anywehre in HA.

code in picture element:

type: picture-elements
image: 'http://192.168.1.11:8123/local/grundriss_ug.png'

this old picture is shown in the picture element card:
image

and this is the new picture that is saved in /www:

even if I delete the picture file in /www, the picture element card shows always the old floorplan.

I had this problem too. If you create a new floorplan image and change the code accordingly it should work. In your case this would be something like:

type: picture-elements
image: 'http://192.168.1.11:8123/local/grundriss_ug2.png'

Simply updating the original image doesn’t work, don’t know why. I’m up to version 6 for some of my floorplans.

That sounds like a browser caching issue. You need to clear your cache so the latest image is loaded.

In chrome you can press F12 to show developer console and then right-click on the refresh button (to the left of the URL field at top of window). Select “Empty Cache and Hard Reload” from the menu that pops up. This will force the cache to empty and reload everything again. Press F12 again to hide the developer console again.

2 Likes

that’s was exactly “the problem” :blush:
something I should have knew myself… :woozy_face:

I have the same issue with a picture card, where the source picture is updated regularly.
Is there anything to add to the url that could stop the caching of the image?

?time=123 and ?raw=true had no effect