-
Notifications
You must be signed in to change notification settings - Fork 246
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 shows Incorrect values (caching) #193
Comments
I need to use aggregate:max as the value comes from energy_daily sensor so I want to get max value from particular day. Anyway I have switched to avg and the issue is still there (and of course values everywhere are not what I was expecting) |
Yes, I understand you want to use the aggregate function max in the graph, what I meant to ask was if you'd actually set it. |
Sorry misread. Yes it is set to max. Actually I have noticed that most of the bars on hover show incorrect value - will try to find out what is going on. |
I have some question about this issue:
|
|
Could possibly be these lines: Lines 797 to 799 in 2156633
With the recent changes to how calculate the end date we should probably base the start date on the end date, instead of now. const end = this.getEndDate();
const start = end;
start.setHours(start.getHours() - config.hours_to_show); |
I found the same issue and the same workaround. Visualizing a time in state aggregated by day causes the bar graph to show random data. Changing the value of |
Please try the latest beta release v0.9.0-beta, should hopefully resolve these issues. |
Yeah sorry I got updates for both issues and replied to the wrong one. Yes the misalignment over time issue. I'll comment in the other issue. I have just reinstated my weekly energy use bar graph and will test this one too. |
can confirm bug. deleting indexedDB in devtools temporary fixes issue |
Something is not right. When I hover last bar the value shown is not correct. I was thinking that maybe cached values messed up when I was switching between branches so I deleted DB. But it didn't help (it reduces the difference slightly but it progresses over time)
The text was updated successfully, but these errors were encountered: