Skip to article frontmatterSkip to article content
Enhanced integrations

Recorder

Records all the spooky things that happen in your home.

The Home Assistant recorder icon



The recorder integration in Home Assistant is responsible for registering and storing everything that happens in your home. It is the backbone of the history and logbook features in Home Assistant but it also keeps information in a long-term format to power things like the energy dashboard and other graphs you see in Home Assistant.

Screenshot of the recorder import statistics service call in the developer tools.

FigureΒ 1:Spook adds a service that allows importing data into the recorder.

Devices & entitiesΒΆ

Spook does not provide any new devices or entities for this integration.

ServicesΒΆ

Spook adds the following new service to your Home Assistant instance:

Import statisticsΒΆ

Manually import long-term statistics into the recorder database of Home Assistant.

Screenshot of the recorder import statistics service call in the developer tools.
Service properties
ServiceRecorder: Import statistics πŸ‘»
Service namerecorder.import_statistics
Service targetsNo targets
Service responseNo response
Spook's influenceNewly added service
Developer toolsTry this service Open your Home Assistant instance and show your service developer tools with a specific service selected.
Service call data
AttributeTypeRequiredDefault / Example
has_meanbooleanYes
has_sumbooleanYes
namestringNoNone
sourcestringYes
statistic_idstringYes
unit_of_measurementstringNoNone
statsmappingYes
stats attribute mapping
AttributeTypeRequiredDefault / Example
startdatetime stringYes
meanfloatNo
minfloatNo
maxfloatYes
last_resetdatetime stringNoNone
statefloatNo
sumfloatNo

More information about the mapping/meaning of fields in long-term statistics can be found on the Home Assistant data portal.

RepairsΒΆ

Spook has no repair detections for this integration.

Uses casesΒΆ

Some use cases for the enhancements Spook provides for this integration:

  • Manually import data into the recorder, for example, historical data from a previous system or an energy provider that provides a CSV file with your historical energy usage.

Blueprints & tutorialsΒΆ

There are currently no known blueprints or tutorials for the enhancements Spook provides for this integration. If you created one or stumbled upon one, please let us know in our discussion forums.

Features requests, ideas, and supportΒΆ

If you have an idea on how to further enhance this integration, for example, by adding a new service, entity, or repairs detection; feel free to let us know in our discussion forums.

Are you stuck using these new features? Or maybe you’ve run into a bug? Please check the Support page on where to go for help.