Add Duration on State Graph Hover (Quick and Easy Enhancement Request!)

Just a small, simple, QOL feature request: Add the duration of the two time differences to the tooltip when hovering over the state graph. Here’s a mockup I did by editing the HTML via the Inspector:

image

I’d imagine this would be super easy to do! (And heck, I’d do it myself if I was a Python dev and not a C# dev… :wink: )

And if you bump into the end of the graph on either side… then I would say either 1) show the duration anyway (so if I was “Home” all day, it would just say “Home, For 24 hrs”, or 2) don’t show it (which means this feature only “works” if you hover over a state with a Start/End time that is within the graph’s reporting period). I could go either way on that.

We had this when i started with HA 4 years ago.
:+1: