frontend
frontend copied to clipboard
Long-term statistics in the entity dialogs - revert to old style?
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
Using long term statistics for entity dialogs looks bad and confusing. Is there a selection/option to revert back to the old way?
Describe the behavior you expected
Just one clear (and sometimes boxy) line, like before.
Steps to reproduce the issue
Open entity.
What version of Home Assistant Core has the issue?
2022.11 b0
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
Probably statistics graph should present on a separate tab.
use a different tab or find another compromise, by combining both... "statistics" with min / mean / max - AND a forth option to display the state / old history... ?
Personally, I still like the new statistics - for most sensors that have the desired state_class for those... In my eyes, a strict "revert" would be a step backwards.
Something that I haven't seen mentioned is that history, by definition, is series of events that actually happened. Not a statistical analysis of said events. While that can certainly be useful in some scenarios, it is not a replacement for actual, unchanged history.
Personally I like the idea of having both available. Either on a separate tab, or as a "raw" data point on the same graph. But losing that raw data is a big oversight.
I think there are normally fewer use cases for the new representation than for the old representation.
In the thread there are some examples where you can see that it doesn't work or doesn't make much sense. Like this: https://community.home-assistant.io/t/2022-11-a-heck-of-a-release/483295/140?u=marh
Unfortunately, I don't know what the best solution would be to make "everyone" happy.
But I would have liked it much better if this had been built into the actual history page. This is where I often look at a long period of time (my recorder is set to 365 days), so it would be nice to have "min/max/mean/raw" but there is only "raw" But this clashes again with the behavior that several entities are displayed in one chart (like if you select 3 temperature entities)
Another issue with this approach. I now have several sensors that have history, but not long term statistics. And so clicking on them yields a completely useless screen
Clicking show more works as expected.
I assume this is because the sensor does not have a state_class, which frankly a lot don't, depending on the integration
. I now have several sensors that have history, but not long term statistics. And so clicking on them yields a completely useless screen
This is strange.
Here my 2 template (if it is important) sensors:
-- both are enabled for Recorder;
-- one is with state_class: measurement
This one does not have LTS - it shows real "old-style" data:
This one does have LTS - it shows stats:
I do not agree to show LTS in more-info. It should be displayed in a different tab (if available). Regarding time span: -- the real data must have span=24 hours (as it is now), -- the statistics = week or 10 days (or better to have an option!!!)
I have next issue with this "new" graph style here: https://github.com/home-assistant/frontend/issues/14688
Looks like it's going to be like this forever. Install History Explorer card and set it up. Besides showing separate graphs, it can also completely replace HA's default graphs with many tweak options. https://github.com/alexarch21/history-explorer-card https://community.home-assistant.io/t/new-interactive-history-explorer-custom-card/369450/378
This is the worst. We now have to go into "Show more" to see usable data for anything, which then promptly takes you to a whole new view and you have to find your way back to wherever you were.
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.
No
Another issue with this approach. I now have several sensors that have history, but not long term statistics. And so clicking on them yields a completely useless screen
Clicking show more works as expected.
I assume this is because the sensor does not have a state_class, which frankly a lot don't, depending on the integration
I also have the same issue, before the update all my entities had statistics in the entity view, and that was very handy to quick check the history of a certain entity. Now I always have to click on "Show More" to see graphs. That's totally odd because the data is there obviously. Why isn't it displayed like in the version before?
I also have the same issue, before the update all my entities had statistics in the entity view, and that was very handy to quick check the history of a certain entity. Now I always have to click on "Show More" to see graphs. That's totally odd because the data is there obviously. Why isn't it displayed like in the version before?
Could you help check what is going on with a specific entity that says "No statistics found"? I believe the code is supposed to fetch both statistics and history, and show the statistics if there are statistics, and show the history if there is not. I'm not sure in your case why it is choosing statistics but not showing data.
Maybe check for that entity, if you have an entry in devtools/statistics, and see if there's some kind of issue reported there.
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.
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. 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 a problem
The History explorer card is EOL, so this has to be solved. It is very annoying to just fire up the more-info dialog to click immediately on Show more to see the data. I don't need the whole LTS thing at all by the way. If someone wants old data but doesn't want to store old data he will not have old data. Bon mot by me :)
I've seen that No statistics found problem too. I set the the state_class of entities to None in customize.yaml to get rid of LTS, went to Development tools/Statistics, deleted the stats of those entities and somehow that came up once or more. But don't remember what happened exactly.