frontend
frontend copied to clipboard
history-graph: wrong auto-refresh
Checklist
- [X] I have updated to the latest available Home Assistant version.
- [X] I have cleared the cache of my browser.
- [X] I have tried a different browser to see if it is related to my browser.
Describe the issue you are experiencing
The issue is similar to the closed issue https://github.com/home-assistant/frontend/issues/12859. ~In 2022.7 the initial issue seems to be solved - but only for sensors with UoM. The current issue is for sensors w/o UoM.~ Update: the very same behaviour is with sensors with UoM.
To demonstrate the issue, I am using some input_boolean helper.
Let's assume that the helper's value is ON.
Set the helper's value to OFF.
The graph is refreshed, the OFF value is displayed on the graph (thin red line).

Wait for a few minutes - and the graph is NOT refreshed anymore.
Set the helper's value to ON.
The graph is updated, but the ON value is not displayed on the graph.

Wait for a few minutes - and the graph is NOT refreshed.
Press F5 to reload the page - the graph is refreshed:

Describe the behavior you expected
A graph is updated after a reasonable delay after state's change.
Steps to reproduce the issue
- Create an
input_booleanhelper. - Create a card with this
input_booleanhelper:
type: vertical-stack
cards:
- type: entities
entities:
- entity: input_boolean.flag
secondary_info: last-changed
- type: history-graph
entities:
- input_boolean.flag
hours_to_show: 1
refresh_interval: 0
- type: logbook
entities:
- input_boolean.flag
hours_to_show: 1
- Change a value of the
input_booleanhelper. - See if the graph is updated. ...
What version of Home Assistant Core has the issue?
2022.7.0
What was the last working version of Home Assistant Core?
2022.5
In which browser are you experiencing the issue with?
Chrome 103.0.5060.114
Which operating system are you using to run this browser?
Win10x64
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
I believe it's on a 10 second refresh but I'll check later. It's not as instant as the logbook
10 second refresh
It is not refreshed within minutes.
Probably the 1st screenshot (thin red line) occurs after ~10 seconds after setting the helper to OFF.
Same issue here. Using a switch state.
Before refreshing browser:

After refreshing browser:

Browser: Chrome 103.0.5060.66 running on Win10 21H2 HA: 2022.07.0 Frontend: 20220706.0
Any updates on this? I recently made a coffee roaster and have a Lovelace view with relevant data in a graph, but it never updates unless I manually refresh the page. Happy to provide any additional info if it's helpful.
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.
Still having this issue of the graph not updating without doing a forced refresh of the entire webpage. I am using the most recent version of HA.
How about sensor graphs not being updated in history - would that fall into this case, or should I open a separate issue for that (there have been at least two in the past, all closed, but history graphs for sensors still do not auto update at all)
@darmach That's the exact issue I've been having, but at least when I first ran across it this seemed the most appropriate of existing issues. Let me know if you open a new issue and I'll follow it as well.
The issue still persists at least for input_boolean:
https://github.com/home-assistant/frontend/issues/15498