this post was submitted on 20 Oct 2023
40 points (93.5% liked)

homeassistant

11820 readers
115 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 1 year ago
MODERATORS
 

I had already tweaked my Recorder storage from the default of 10 days to 30, but was looking to view statistics for longer (e.g. a year). Maybe this is common knowledge, but I've use HA quite a while, and today I learned that many integrations have sensors that are already setup to store long term statistics for an indefinite amount of time.

Confusingly, these stats aren't shown anywhere in the default UI (as far as I can tell). Whether you go to the Entity properties, or the History page, neither shows these long term stats (just the shorter, Recorder ones). The only out-of-the-box way to view them seems to be with the "statistics graph" card.

To make it easier to view this useful info, stumbled on this awesome custom UI card. It let's you swap out the default "history" graph on Entity properties, with one that will automatically pull from "long term statistics" when you zoom out - https://github.com/alexarch21/history-explorer-card#overriding-the-ha-more-info-history

One thing to note is, setting this is all client-side, so you'll need to select the override option in each browser / mobile-app you use. Works great!

Hope this helps someone!

top 4 comments
sorted by: hot top controversial new old

Wow this is exactly what I’ve been lacking. Thank you!

[–] GerPrimus@feddit.de 2 points 11 months ago

You can also have them displayed very beautifully with the Grafana addon.

[–] DeltaTangoLima@reddrefuge.com 2 points 11 months ago

Ah - TIL too! Although, I've been pushing my stats into Influx for a few years now, and have a few Grafana panels displaying long-term stuff there. But good to know of a native option too.

[–] paf@jlai.lu 1 points 11 months ago

Thanks for the head up