homeassistant-statistics icon indicating copy to clipboard operation
homeassistant-statistics copied to clipboard

Is there any way to enter data for the 'statistics_short_term` table?

Open puterboy opened this issue 7 months ago • 1 comments

Checklist

  • [X] I have filled out the template to the best of my ability.
  • [X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • [X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

I would like to import short term statistics (i.e., once every 5 minutes) as well as the hourly statistics that your integration currently covers.

Describe the solution you'd like

Similar code with ability to upload a file with short term statistics data to be entered into the statistics_short_term table. (Ideally, also a REST API so json encoded short term statistics could be added via an API rather than uploading a file)

Describe alternatives you've considered

Manually adding stuff to the SQLite database or purging the recorder.

Additional context

puterboy avatar Jul 17 '24 16:07 puterboy