Home Assistant; Charts: Scroll- Zoom; Development status
Something is happening: the long-neglected history in Home Assistant is getting numerous improvements. With the 2025-01 release, the charts are getting a rudimentary zoom function, among other things. Rudimentary, because currently only one chart can be zoomed when there are several charts. And it is not yet possible to scroll to an older area.
Chart zoom function
The first pull request for the zoom function will be included in release 2025.1. This represents an important step towards modernizing the history. The next logical step should be to implement the function for selecting an older time period. Equally important is the synchronization of the zoom status across all charts when multiple charts are displayed in the history or energy dashboard. The ability to set a time range for any Lovelance chart would also be a significant improvement.
Using the date range selection?
Alternatively, the time range could be customized based on the date picker, similar to the forward and back buttons:
With the help of the buttons, the time range can be enlarged without further ado and if several charts are displayed, they all have the same start and end time. I have included a corresponding pull request for this.
Alternative cards
- Plotly Graph
- Advantage: flexible incl. the possibility to visualize historical data
- Disadvantages:
- Advanced config in YAML
- No date selection available
- cannot be called directly from any entity without creating your own dashboard
Relevant communication / feature request on Github
- https://community.home-assistant.io/t/wth-cant-we-zoom-in-on-the-history-graph/222391
- https://community.home-assistant.io/t/wth-cant-i-zoom-in-or-out-on-history-graphs/467734
- https://community.home-assistant.io/t/wth-can-t-i-zoom-in-or-out-on-history-graphs/802568
- Date selection for Plotly Graph? https://github.com/dbuezas/lovelace-plotly-graph-card/discussions/513
Pull requests
- inital zoom function https://github.com/home-assistant/frontend/pull/23183
- Reset buttons: https://github.com/home-assistant/frontend/pull/23469
- via the date picker: https://github.com/home-assistant/frontend/pull/23358
{{percentage}} % positive