You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,14 @@ We will need to define these parameters to retrieve data from Home Assistant. Th
24
24
- 'sensor.power_load_no_var_loads'
25
25
-`method_ts_round`: Set the method for timestamp rounding, options are: first, last and nearest.
26
26
-`continual_publish`: set to True to save entities to .json after an optimization run. Then automatically republish the saved entities *(with updated current state value)* every `optimization_time_step` minutes. *entity data saved to data_path/entities.*
27
+
-`use_influxdb`: Enable InfluxDB as a data source instead of the Home Assistant API. This allows for longer historical data retention and better performance for machine learning models.
28
+
-`influxdb_host`: The IP address or hostname of your InfluxDB instance. Defaults to `localhost`.
29
+
-`influxdb_port`: The port number for your InfluxDB instance. Defaults to 8086.
30
+
-`influxdb_username`: Username for authenticating with InfluxDB. Leave empty if no authentication is required.
31
+
-`influxdb_password`: Password for authenticating with InfluxDB. Leave empty if no authentication is required.
32
+
-`influxdb_database`: The name of the InfluxDB database containing your Home Assistant data. Defaults to `homeassistant`.
33
+
-`influxdb_measurement`: The measurement name where your sensor data is stored. Defaults to `W` for the Home Assistant integration.
34
+
-`influxdb_retention_policy`: The retention policy to use for InfluxDB queries. Defaults to `autogen`.
27
35
28
36
A second part of this section is given by some privacy-sensitive parameters that should be included in a `secrets_emhass.yaml` file alongside the `config_emhass.yaml` file.
- Configuration page on EMHASS web server (E.g. http://localhost:5000/configuration)
81
89
90
+
## InfluxDB as a data source
91
+
A new feature allows using **InfluxDB** as an alternative data source to the Home Assistant recorder database. This is beneficial for users who want to treat longer data retention periods for training machine learning models or to reduce the query load on their main Home Assistant instance.
92
+
93
+
When `use_influxdb: true` is set, EMHASS will fetch sensor data directly from your InfluxDB instance using the provided connection parameters. The `influxdb_username` and `influxdb_password` are treated as secrets.
94
+
95
+
82
96
## Passing in secret parameters
83
97
Secret parameters are passed differently, depending on which method you choose. Alternative options are also present for passing secrets, if you are running EMHASS separately from Home Assistant. _(I.e. not via EMHASS-Add-on)_
0 commit comments