WTH We don't have selectable date ranges in chart range selectors for history, logbook, and energy

In history, logbook, and the energy dashboard, I frequently want to see the graph over e.g the last 7 days or the last 30 days. Not e.g. a period in December (which is just one day currently).

It seems to me that the current “last xx” periods should be renamed to “previous xx” and it would be nice to have “last 24 hours”, “last 7 days”, “last 30 days”.

Thanks!

I wold also like to have “last 4 weeks” which is good rolling window that is close to month but has always the same amount of all weekdays.

2 Likes

I would like an option, Last 1 hour or 12 hours as well

5 Likes

The use of last and previous month is ambiguous.

It is like when you count and some start with 0 and some start with 1.
Both are correct if you know the context.
Not sure how to solve it, but I like the 30 days rolling window option.

1 Like

It would be also nice to have “light day” (from sunrise to sunset) which is based on current location.
That would be nice for displaying solar power production.

We have a nice period picker for the energy tab, why not have the same thing for the history tab?

I would like to be able to select custom timeframes and/or a set of static timeframes like Month, day, week, etc

2 Likes

using the HACS History-explorer-card, and I’m lloving it
Can scroll chart left/right to see history
can change scope

3 Likes

I would love for time periods to be more dynamic like in Grafana.

  1. Ability to browse the current period with next and previos buttons (moving the current selected period forwards or backwards).
  2. More pre-selected options like last hour, las 30 min
  3. ability to select a range inside the graph and then zoom into it.
4 Likes

I often find myself wanting to review recent history for sensors, typically to see the trend over the recent past days but the current options have me needing to select days on the calendar view.

An additional option to “Select the last 7 days” would be very helpful. Could potentially prompt for the # of days of interest, but adds another ‘click’ in the process, but might be able to persist the last variable inputted.

The current History date-picker options don’t quite work for these reasons…

“Yesterday” doesn’t show any daily pattern in that it’s just one day.

“Last week” only works if the day you are using it is later in the week.

Thanks!

Yeah, absolutely annoying having these pre-defined periods having fixed start points. “Last week” when looking at historical data is “the last 7 days” not Mon-Sun of the last calendar week! WTH?

I agree, but I really think the history UI needs some more love in general. It should be possible to drag the graph to move in time, zoom with mouse wheel or by pinching etc. A lot of very nice features were implemented in the custom component:

If HA could get 10% of that, it would be nice.

3 Likes

So whenever I’m tinkering with new sensors, troubleshoot automations or just want to see what’s been happening today, I am interested in a very selective timeframe, usually between a few hours and 5 minutes. Selecting this in the current state is an affair of 10+ (!) klicks plus looking at the clock and do some light maths in your head.

It would be absolutely amazing if we could have more fine grained presets that are less than 1 day. Yes, sometimes I even use the 1 year preset, but really the majority of times I use the history view I wanna view stuff that has happened within one day, and it’s usually 1h, 30min, 15 min, 10min, 5min, or 1 min. Selecting those is one of the biggest PITAs for me in home assistant.

Hello,

The history of all our entities is sooo useful to troubleshoot issues or learn more about our home.

It would be even more useful to have a “Last Hour” and maybe even a “Last 12h” entry in the history on top of “Today”:

Or have one persistent custom filter. Then one can set it to the time frame they are interested with and then browse their HA history and check different entities.

Thank you.

Maybe the solution would be to have some definable presets which would appear on all such date selectors?

That’s a proposal I make at the end of my post.

Is there a proper way to mark a post as duplicated? I opened a similar one after this one got opened, I would love to close mine in favor of this one:

Yes please. Currently we need ~8 taps to see the last 1h data.

The dashboard not respecting 24h time configuration makes this worse as well. Because now you need to change it in 3 places: the date, the hour, the AM/PM.
WTH is AM and PM? cries in non-american

Currently you can create customised energy dashboards in YAML, where any energy cards will reflect the date range selected in the energy date picker. It would be really great if this could be extended to cover statistics graph cards on the same dashboard as well because this would then allow you to create dynamic statistics dashboards. E.g. show the average temperatures, house occupancy etc. alongside energy consumption for the last week/month/whatever period

Yes, it always annoys me when it’s 0:30 on what I still perceive as Sunday night, and the history of this week is comprised of a half hour.
To me, moving windows with preselections and a custom option would be great.

Is this WTH including the datetime picker functionality? or only about predefined ranges?

It’s about predefined ranges. We already have a datetime picker, we also have predefined ranges but they aren’t great predefined ranges. We want ranges relative to the current time added in. e.g. last hour, last 3 hours, last 12 hours, last 24 hours, etc.

2 Likes