HomeAssistant does not appear to recognize that an existing image has been replaced or deleted. (In config/www)
I generate a number of graphs in appdaemon (using pandas) as png files, which are stored in homeassistant/config/www.
They are then shown both inside static html pages, accessed within an iframe on the left hand menu
panel_iframe:
web:
title: "reports"
url: http://192.168.1.10:8123/local/menu.html
require_admin: true
icon: mdi:apps
as well as directly within a picture card:
type: picture
image: /local/rainfall.png
tap_action:
action: url
url_path: http://192.168.1.10:8123/local/rainfall.png
even accessing it directly from the browser:
http://192.168.1.10:8123/local/rainfall.html, the html page shows the updated html page with new content but not the embedded image:
<!DOCTYPE html>
<html>
<head>
<title>Rainfall</title>
</head>
<body>
<h2>Rainfall</h2>
<a href="rainfall.png">
<img src="rainfall.png" style="max-height:50%; max-width:50%">
</a><br>
<p>run at 2024-03-27 00:01:02</p><br>
<table>
<tbody>
<tr>
...
Apparently a different problem to # Local files not updating, for which the OP found a workaround that worked OK for them. using a camera entity doesn’t fix the underlying issue.
restarting HA, clearing the cache are not ‘solutions’, the fact a file has changed doesn’t seem to be picked up by Lovelace?
Any suggestions as to what may cause this and how to fix it (or does it need a fix in core?)