Ha Statistics

Query Home Assistant's recorder long-term statistics with hass-cli: list which statistic ids exist, read their metadata (unit, source, has_sum/has_mean), and pull aggregated values (sum/mean/min/max) over a time period and bucket. Use for 'how much energy/water/gas over time', 'trend of this sensor', 'monthly totals', or as the data source for consumption/audit analyses. Distinct from instantaneous state history.

beclab cd472f6 2.4 KB Updated

File contents

beclab/hass-cli/tree/main/skills/ha-statistics commit cd472f6898

Frequently asked questions

npx skillmds@latest add beclab/ha-statistics