-
Notifications
You must be signed in to change notification settings - Fork 240
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
Graph may not be updated #944
Comments
I'll try to look into it this weekend, thnx for the report! |
When searching the repo for |
I noticed the problem recently - may be same time when history-graph became "streaming"; not sure if it could be related... |
I just want to add that I believe I am observing the same issue. Graphs only seem to be accurate on refresh, and have really unexpected behavior when displaying them for a long time. (in addition to not updating regularly, I am having issues where two entities on the same graph/axis will not line up properly, or will disappear)
|
From your animation, it looks to me like our graph does not update the most recent point, but only shows the second-most recent data point. 🤔 |
Seems so ( |
While thinking about #1075 , I realized, we have two places where we react to HA state changes:
So, I wonder if maybe |
@akloeckner |
No, I don't have that many "binary" sensors plotted with mini-graph-card. Plus, I don't keep the graphs open for long times, usually. 🤷 Also, I have no clear idea how this could be fixed. Not even, if my hypothesis above is correct: I have no clue how the order of execution could be changed without changing the architecture of the code. 😕 |
HA 2023.3.5
latest
mini-graph-card
Win10+Chrome
Consider this code:
where
cache: false
seems to be not affecting at all,points_per_hour: 240
is defined to ensure that changes made frequently by a user (here interval is 15 sec) are displayed properly.Clear browser cache.
The initial state:
Now change value and see how the
mini-graph-card
is updated.After 1 minute the graph is not updated:
Change again:
Immediately after changing the graph is redrawn - but we see only "0 -> 1" change instead of "0 -> 1 -> 0".
Go to Editor - the graph is displayed properly:
Go back, refresh (F5) - the graph is displayed properly:
Setting
points_per_hour: 3600
, playing withcache: false
do not help.And now the weirdest part:
The text was updated successfully, but these errors were encountered: