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
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,22 +28,27 @@ We will need to define these parameters to retrieve data from Home Assistant. Th
28
28
-`use_influxdb`: Enable InfluxDB (version 1.x) as a data source instead of the Home Assistant API. This allows for longer historical data retention and better performance for machine learning models. InfluxDB v2 is not currently supported.
29
29
-`influxdb_host`: The IP address or hostname of your InfluxDB instance. Defaults to `localhost`.
30
30
-`influxdb_port`: The port number for your InfluxDB instance. Defaults to 8086.
31
-
-`influxdb_username`: Username for authenticating with InfluxDB. Leave empty if no authentication is required.
32
-
-`influxdb_password`: Password for authenticating with InfluxDB. Leave empty if no authentication is required.
33
31
-`influxdb_database`: The name of the InfluxDB database containing your Home Assistant data. Defaults to `homeassistant`.
34
32
-`influxdb_measurement`: The measurement name where your sensor data is stored. Defaults to `W` for the Home Assistant integration.
35
33
-`influxdb_retention_policy`: The retention policy to use for InfluxDB queries. Defaults to `autogen`.
36
34
37
-
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.
35
+
A second part of this section is given by some privacy-sensitive parameters that should be included as:
36
+
- The list of secret parameters filled in the form on the Add-on **Configuration** pane if using the Add-on installation method.
37
+
- A `secrets_emhass.yaml` file alongside the `config_emhass.yaml` file if using the Docker standalone or legacy installation method.
38
38
39
-
The parameters in the `secrets_emhass.yaml` file are:
39
+
The **secrets** parameters are:
40
40
41
41
-`hass_url`: The URL to your Home Assistant instance. For example: https://myhass.duckdns.org/
42
42
-`long_lived_token`: A Long-Lived Access Token from the Lovelace profile page.
43
43
-`time_zone`: The time zone of your system. For example: Europe/Paris.
44
44
-`lat`: The latitude. For example: 45.0.
45
45
-`lon`: The longitude. For example: 6.0
46
46
-`alt`: The altitude in meters. For example: 100.0
47
+
-`solcast_api_key`: The Solcast API key (weather_forecast_method=solcast)
48
+
-`solcast_rooftop_id`: The Solcast rooftop ID (weather_forecast_method=solcast)
49
+
-`solar_forecast_kwp`: The PV peak installed power in kW used for the 'solar.forecast' API call (weather_forecast_method=solar.forecast)
50
+
-`influxdb_username`: Username for authenticating with InfluxDB. Leave empty if no authentication is required.
51
+
-`influxdb_password`: Password for authenticating with InfluxDB. Leave empty if no authentication is required.
Copy file name to clipboardExpand all lines: docs/passing_data.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,13 +138,14 @@ Then on the EMHASS configuration you need to set:
138
138
"influxdb_port": 8086,
139
139
"influxdb_measurement": "state",
140
140
"influxdb_retention_policy": "autogen",
141
-
"influxdb_password": "influxdb_password",
142
-
"influxdb_username": "influxdb_user",
143
141
"influxdb_use_ssl": false,
144
142
"influxdb_verify_ssl": false,
145
143
}
146
144
```
147
145
146
+
Finally, if using the Add-on, you need to fill both "influxdb_password" and "influxdb_username" in the Add-on **Configuration** pane.
147
+
If using the Docker standalone or legacy installation method, then you need to set these in the `secrets_emhass.yaml` file.
148
+
148
149
149
150
## Passing in secret parameters
150
151
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