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

homeassistant

12020 readers
67 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!

you are viewing a single comment's thread
view the rest of the comments
[–] ArmoredCavalry@lemmy.world 2 points 1 year ago