Screenshots From the README of klausj1/homeassistant-statistics.
About
Import Statistics is an integration that imports and exports long-term statistics using CSV, TSV or JSON files. It adds actions only, with no entities or dashboard cards, and these are called from Developer Tools or from automations. One action imports hourly statistic values from a CSV or TSV file, and another accepts JSON data written into the YAML of the action. Export actions write hourly values to a CSV, TSV or JSON file, and a separate one exports a metadata-only inventory of all long-term statistics, which helps when planning a migration or comparing instances. Import settings cover the delimiter, decimal separator, datetime format and timezone, and the input file needs a unit column that matches units already stored. It works locally with every database Home Assistant supports and is set up in the UI.
Automatic summary of the README and code of klausj1/homeassistant-statistics. Something wrong, or are you the maintainer and want your own text here? Get in touch
Supports
Works locally Talks to your devices on your own network. No vendor cloud in between.
From the Marketplace Installed through the Marketplace, formerly HACS.
Actively maintained Its author released or pushed a change in the last six months.
Setting it up
Install it from the Marketplace and restart Home Assistant, then add it under Settings, Devices and services.
Actions
- Import statistics from fileImports long term statistic values (1h) from tsv/csv fileFields: decimal, delimiter, filename, timezone_identifier, datetime_format
- Import statistics from JSON
- Export Statistics InventoryExports metadata-only inventory of all long-term statistics (no time-series data). Useful for migration planning and comparing statistics between Home Assistant instances.Fields: filename, delimiter, timezone_identifier
- Export Statistics to fileExports long term statistic values (1h) to a tsv/csv or a json fileFields: filename, entities, start_time, end_time, split_by, timezone_identifier, delimiter, decimal, counter_fields, datetime_format
From the README
A Home Assistant custom integration to import and export long-term statistics from CSV, TSV, or JSON files.
Note: This integration provides actions only (no entities or dashboard cards). You call its actions from Developer Tools or automations.
Information
- Installs
- 1.2k sharing analytics
- GitHub stars
- 186
- Connection
- Works locally
- Upkeep
- Updated in the last 6 months
- Version
- v5.3.0,
- Category
- Helpers, Calculate a value
- Kind
- Marketplace integration
- Needs
- Needs the Marketplace (HACS on 2026.10 and older)
- Domain
import_statistics- Issues
- Report an issue














