WTH is picking a time range in History so clunky? (Add relative/absolute ranges like the AWS console)

First, thank you to everyone who works on Home Assistant. I use it every day and love it. This is a small thing, but it would make History much nicer to use.

Most of the time I’m after something like “the last 5 minutes” or “the last 6 months”. Neither is a preset, so I end up clicking through the calendar and adjusting the time boxes by hand.

Suggestion: something like the AWS console’s date range picker, which has two modes:

  • Relative: quick buttons (5m, 1h, 1d, 1w, 6M…) plus a custom “last [number] [unit]”. The range stays rolling, so “last 5 minutes” always means up to now, even after a refresh or in a saved link.
  • Absolute: the current calendar, plus start and end date/times you can type in.
+-----------------------------------------------------------+
|  [ Relative ]    Absolute                                 |
+-----------------------------------------------------------+
|                                                           |
|  Quick ranges                                             |
|  [5m] [15m] [30m] [1h] [3h] [12h] [1d] [1w] [1M] [6M]     |
|                                                           |
|  Custom                                                   |
|  Last [ 45     ] [ minutes  v ]                           |
|                                                           |
|  Showing the last 45 minutes, updating live               |
|                                                           |
|                                    [ Cancel ]  [ Apply ]  |
+-----------------------------------------------------------+

+-----------------------------------------------------------+
|    Relative    [ Absolute ]                               |
+-----------------------------------------------------------+
|                                                           |
|  <       November 2026       >                            |
|  Mo  Tu  We  Th  Fr  Sa  Su                               |
|                           1                               |
|   2[  3   4]  5   6   7   8                               |
|   9  10  11  12  13  14  15                               |
|  ...                                                      |
|                                                           |
|  Start  [ 2026-11-03 ]  [ 00:00 ]                         |
|  End    [ 2026-11-04 ]  [ 20:00 ]                         |
|                                                           |
|  Time zone  (o) Local  ( ) UTC                            |
|                                                           |
|                                    [ Cancel ]  [ Apply ]  |
+-----------------------------------------------------------+

Or, more simply: let us customise the preset list, for example:

quick_ranges:
  - 5 minutes
  - 6 hours
  - 6 months

Thanks for reading, and thanks again for all the work that goes into HA! :heart:

Would love to see zoom to last event as well. Would be useful for bottle warmers on a smart plug, etc

Grafana does the time picking quite well! Some good reference there

Heck…just let us type in dates or ranges…!