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 Updated 1 repo stars

File contents

beclab/hass-cli commit cd472f6898

Frequently asked questions

npx get-skill add beclab/ha-statistics