home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
3.8k stars 2.6k forks source link

Updated html or png files in /config/www do not show in frontend (browser or android app) #20432

Open CestLaGalere opened 3 months ago

CestLaGalere commented 3 months ago

Checklist

Describe the issue you are experiencing

If I write html or png files to the /homeassistant/config/www directory, then try and view them as an iframe within Home assistant they do not get updated. Using a picture card within lovelace:

type: picture
image: /local/rainfall.png
tap_action:
  action: url
  url_path: http://192.168.1.14:8123/local/rainfall.png

also does not update. If I clear the cache then the png & html files will show the updated ones, otherwise the cached ones are shown. Accessing the files directly from the browser via http://192.168.1.14:8123/local/rainfall.html will also not get updated correctly.

Same issues in homeassistant app on Android

Describe the behavior you expected

When an html or png file is updated in homeassistant/config/www then this should be displayed when requested. I have an Appdaemon service that runs once a day and creates a png through matplotlib every day to show oil tank levels and regression to show when it is predicted to be empty - this graph is not updated.

Steps to reproduce the issue

  1. create an html file in /homeassistant/config/www

  2. add an iframe to view it in lovelace

  3. view the html file by clicking on lhs.

  4. update the html file

  5. go back to lovelace, click on another dashboard then back, F5 to refresh, the updated page is not shown. alternatively

  6. put a png file in /homeassistant/config/www

  7. add a picture item in a lovelace dashboard pointing to this png

  8. update the png

  9. the updated image is not shown in the dashboard

What version of Home Assistant Core has the issue?

2024.4.0

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Chrome Version 123.0.6312.106 (Official Build) (64-bit)

Which operating system are you using to run this browser?

Windows 11 / Android

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

github-actions[bot] commented 2 days ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.