frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Long-term statistics in the entity dialogs - revert to old style?

Open TimoJJ opened this issue 2 years ago • 9 comments

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

TimoJJ avatar Oct 27 '22 17:10 TimoJJ

Probably statistics graph should present on a separate tab.

ildar170975 avatar Oct 27 '22 20:10 ildar170975

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.

ChristophCaina avatar Nov 03 '22 16:11 ChristophCaina

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.

tankdeer avatar Nov 03 '22 20:11 tankdeer

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)

martinhoess avatar Nov 04 '22 12:11 martinhoess

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

image

Clicking show more works as expected. image

I assume this is because the sensor does not have a state_class, which frankly a lot don't, depending on the integration

tankdeer avatar Nov 04 '22 17:11 tankdeer

. 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!!!)

ildar170975 avatar Nov 04 '22 21:11 ildar170975

I have next issue with this "new" graph style here: https://github.com/home-assistant/frontend/issues/14688

bigboban avatar Dec 10 '22 11:12 bigboban

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

TimoJJ avatar Jan 08 '23 16:01 TimoJJ

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.

melyux avatar Feb 06 '23 08:02 melyux

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.

github-actions[bot] avatar Jun 28 '23 02:06 github-actions[bot]

No

melyux avatar Jun 28 '23 03:06 melyux

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

image

Clicking show more works as expected. image

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?

saschaludwig avatar Sep 28 '23 13:09 saschaludwig

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.

karwosts avatar Sep 29 '23 02:09 karwosts

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.

github-actions[bot] avatar Mar 13 '24 01:03 github-actions[bot]

Up

ildar170975 avatar Mar 13 '24 05:03 ildar170975

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.

github-actions[bot] avatar Jun 11 '24 07:06 github-actions[bot]

still a problem

saschaludwig avatar Jun 11 '24 11:06 saschaludwig

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.

terba avatar Aug 07 '24 18:08 terba