New: Home Assistant history: previous and next buttons

 

Previous and Next buttons in Home Assistant: My pull request in Github was accepted and has been secretly and quietly migrated to the Home Assistant release 2024.12.The buttons are currently not visible on mobile devices. The reason for this is that there is not enough space and the layout still needs to be adapted.

The Home Assistant history lacked Back and Next buttons until the 2024.12 release. Time periods could only be selected via the calendar or using specific time periods: "Today", "Yesterday", "This week", "Last week", "This month", "Last month", "This year", "Last year"

The option to select a Back or Next time period was only available on the Energy Dashboard. In my opinion, the Back and Forward buttons are only a first step: A scroll and zoom function could further increase user-friendliness: Home Assistant history: missing scroll/zoom function

Part of Home Assistant since the 2024-12 release

My GitHub pull request is now available in Home Assistant: https://github.com/home-assistant/frontend/pull/22802

Unfortunately, I had to hide the buttons in the mobile view because the current layout does not offer enough space. I have implemented a suggestion for a change to the layout in another pull request, which is currently still under discussion:

I have just requested another proposal for this, which will probably be part of the 2025-01 release

and what next?

I am also trying to create buttons for a zoom function, which works very well in my local Home Assistant version:

Here is the pull request for this: https://github.com/home-assistant/frontend/pull/23358

In parallel, a zoom function for charts is currently being worked on, see: https://github.com/home-assistant/frontend/pull/22947 and https://github.com/home-assistant/frontend/pull/23183. As far as I can see in the source code, the chartjs-plugin-zoom is used for this. A preview is available on the charjs.org page: https://www.chartjs.org/chartjs-plugin-zoom/latest/guide/usage.html. For status see: Home Assistant history: missing scroll-zoom function.

Thanks to the forward and back buttons, "Yesterday", "Last week", "Last month", "Last year" could be removed. As a prerequisite for this, a small code adjustment is required so that the buttons can switch cleanly between the months. For more convenience, I would leave "Yesterday" in the list first:

The change is already in the dev version and is expected to be part of the 2025-01 release.

I have also created a request for additional time spans: last 24 hours, last 30 days and last 365 days:

, see: https://github.com/home-assistant/frontend/pull/23362

Relevant communication / feature request on Github

positive Bewertung({{pro_count}})
Rate Post:
{{percentage}} % positive
negative Bewertung({{con_count}})

THANK YOU for your review!

Questions / Comments


By continuing to browse the site, you agree to our use of cookies. More Details