this post was submitted on 20 Oct 2023
68 points (94.7% liked)

homeassistant

11826 readers
34 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 7 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 11 months ago (1 children)

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

[–] ArmoredCavalry 2 points 11 months ago

Great! Yeah it seems like very useful information, hopefully HA will make it more accessible / obvious to access in the future!

[–] FiduciaryOne 3 points 11 months ago (1 children)
[–] ArmoredCavalry 2 points 11 months ago

Very welcome!

[–] [email protected] 3 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.

[–] [email protected] 2 points 11 months ago

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

[–] [email protected] 1 points 11 months ago

Thanks for the head up