-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
history-graph: wrong auto-refresh (input_boolean) #15498
Comments
I'm not understanding what you say the problem is. What does it mean to be "updated" immediately when you click the button? If the graph "updates" instantly, then the new state will be essentially 0 time or 0 pixels wide, so it would not even be visible on the graph. What do you expect to happen exactly? I observed a boolean changing in both directions and I didn't see anything that seemed wrong to me. Both graphs seem to update at roughly once per minute, which I don't think is unreasonable? |
Agree, this was not a correct statement from my side. How to test:
This is a long period compared to numerical graphs. |
I can't speak to the tradeoffs of performance for increasing the refresh interval to faster than 1 minute. I question if it really makes that much difference, if you have large number of hours to show, if you refresh it 10 seconds after changing, the bar may be 2px wide instead of 1px, not really a significant notable difference. If what you're saying is it's hard to see the current state, maybe it would be nice if there was a little bubble/circle to the right of the chart that just prominently displayed the color of the current state, to make it obvious to see recent changes, but I'm not sure if that would be useful or just distracting. And interestingly enough it looks like line (numeric) charts have a much slower refresh interval than timeline (state), at least when there are no data changes. They seem to be enforcing a 5 minute refresh interval to redraw the X axis that is not enforced for timeline charts. But I do agree that it is easier to notice instant changes on the line chart, due to the large vertical line. Not sure if that's a bug or not. https://github.com/home-assistant/frontend/blob/dev/src/components/chart/state-history-chart-line.ts#L149 Timeline redraws anytime "endTime" changes, which seems frequent, but Line chart does not. |
Thank you for a detailed research. Since I started working with HA, I am registering questions/tasks/problems in some document (kind of registry). Last year I noticed that history-graphs stopped updating. |
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. |
up |
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. |
Do not observe the issue in 2024.6.2. |
Checklist
Describe the issue you are experiencing
Continuation of this problem: #13128
Currently I observe the problem for non-numerical entities only.
Test card:
Toggle the entity:
The graph is updated not immediately, after ~1 minute:
Describe the behavior you expected
The graph is updated immediately.
Steps to reproduce the issue
as above
What version of Home Assistant Core has the issue?
2023.2.5
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Chrome 110.0.5481.97
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
The text was updated successfully, but these errors were encountered: