use the influxdb add-on in home assistant to store sensor data to be used for ML predictions #490
scruysberghs
started this conversation in
Ideas
Replies: 1 comment
-
It could be a nice alternative. I do use influxdb and grafana myself for visualization and backup storage of my data in an efficient db designed for time series as you said. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Now home assistant recorder stores data by default in the sqlite db and default purging is set to 10 days. You can use other databases but if you want to keep more data for emhass for the ML predictor for the sensor_power_load_no_var_loads for example you have to increase the setting for all sensor data what will lead to huge databases.
In my opinion (and sorry if this has been discussed before, but i couldn't find it) a time series database would be a better match for this.
If you use the influxdb add-on for home assistant for example all (or a filtered list of) your sensor data is stored there in an efficient way, easy accessible by emhass, with the retention settings set in the influxdb add-on.
https://www.home-assistant.io/integrations/influxdb/
From emhass/python you can do:
To get your data like this
Added benefit is that you can use the Grafana add-on for energy dashboarding....
Toughts?
Beta Was this translation helpful? Give feedback.
All reactions