History & energy dashboard: last hour, week, 30 days

In December 2024, I submitted a pull request on GitHub to add additional time spans to the Home Assistant history and energy dashboard. I originally implemented last 24 hours, 30 days and 365 days as time spans. As a result, a survey was initiated on Reddit by an employee of Nabu Casa. 

History

The result of this survey led to the implementation of the following additional time periods:

  • Last hour
  • 12 hours
  • 24 hours
  • 7 days
  • Last 30 days

Energy Dashboard

Since I never saw the poll on Reddit myself, and it's now closed, I don't actually know if the poll asked about customization for the history, or also the logbook and energy dashboard. I've left the logbook as it is for now, as I don't think additional time spans make much sense here? And the energy dashboard also has other requirements in my opinion. In addition, the performance data in the energy dashboard currently uses the chart data, which means that currently only whole days or months can be used for its calculation, for details see: https://github.com/home-assistant/frontend/pull/23458. For this reason, I have implemented the time periods for the energy dashboard slightly differently: last 7 days, last 30 days and for me the personal highlight: last 12 months:

The reason I merged the time spans for history and energy into one request is that both need a change for mobile devices to make the list scrollable. The change has been incorporated into the DEV version and is expected to be available in the next release: https://github.com/home-assistant/frontend/pull/23362.

Another change to additionally adjust the time span using simple zoom buttons was rejected, which gives an indication that the charts will undergo further improvements in the near future, see: home-assistant-history-scroll-zoom#zoombuttons.

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