You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@teodorch85, please open a separate issue for this (if there isn't already one), so that we can keep track of this issue. I too can replicate this on a (core 2024.2.2/front 20240207.1) instance. The reported values don't change, once enough days have been selected so that "months" are shown in the bar charts. Adding a day in this scenario does not change the values when it should. Note that the low-carbon circle does change.
Seems that the backend just does not handle statistics requests where the start time is not aligned with the period in the way that is expected.
If you say you want monthly statistics, than it always returns the full month's summary, regardless to if you set the starttime of the request for the 1st, or the 30th, or anywhere in between.
I guess our options for dealing with this would be:
Backend change to behavior (unlikely?)
Always request full hourly resolution and summarize in the frontend (seems inefficient, but this is probably what period-selector-plus does)
Somehow change the picker to reflect that this is an invalid selection when using monthly resolution.
Curious if we would ever want to support user chosen resolution as well, instead of hardcoding monthly resolution at >35 days, the answer to this might be tied up with the answer to that.
Checklist
Describe the issue you are experiencing
In energy dashboard using custom range the values are not correct.
Only the low carbon is changing when changing range.
@TillFleisch reproduced the problem
Originally posted by @TillFleisch in #14337 (comment)
Describe the behavior you expected
Using the addon below the values are correct
https://github.com/flixlix/energy-period-selector-plus
Steps to reproduce the issue
...
What version of Home Assistant Core has the issue?
2024.2.2
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
No response
Which operating system are you using to run this browser?
No response
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: