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. Since 2025.1, the buttons are also visible on mobile devices thanks to a further layout adjustment.
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.
Initially, I had to hide the buttons in the mobile view because the layout didn't offer enough space. Another pull request made it into the 2025-01 release, which means that the buttons can also be displayed on mobile devices.
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 was released, 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 and https://github.com/home-assistant/frontend/pull/23458
Relevant communication / feature request on Github
{{percentage}} % positive