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: source/_components/sensor.swiss_hydrological_data.markdown
+23-25Lines changed: 23 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,11 @@ ha_iot_class: "Cloud Polling"
13
13
ha_release: 0.22
14
14
---
15
15
16
-
<pclass='note warning'>
17
-
This sensor doesn't work at the moment due to changed by the [Swiss Federal Office for the Environment (Bundesamt für Umwelt - Abt. Hydrologie)](http://www.hydrodaten.admin.ch) to access the data.
18
-
</p>
19
-
20
16
The `swiss_hydrological_data` sensor will show you details (temperature, level, and discharge) of rivers and lakes in Switzerland.
21
17
22
18
## {% linkable_title Setup %}
23
19
24
-
The [station overview](http://www.hydrodaten.admin.ch/en/danger-levels-table.html) contains a list of all available measuring points and will help to determine the ID of station which is needed for the configuration.
20
+
The [station overview](https://www.hydrodaten.admin.ch/en/stations-and-data.html) contains a list of all available measuring points and will help to determine the ID of station which is needed for the configuration.
25
21
26
22
## {% linkable_title Configuration %}
27
23
@@ -32,36 +28,38 @@ To enable this sensor, add the following lines to your `configuration.yaml` file
32
28
sensor:
33
29
- platform: swiss_hydrological_data
34
30
station: STATION_ID
31
+
monitored_conditions:
32
+
- temperature
33
+
- level
34
+
- discharge
35
35
```
36
36
37
37
{% configuration %}
38
38
station:
39
39
description: The ID of the measurement point.
40
40
required: true
41
41
type: string
42
-
name:
43
-
description: Name to use in the frontend.
42
+
monitored_conditions:
43
+
description: The list of measurements you want to use. Available is `temperature`, `level` or `discharge`.
44
44
required: false
45
-
type: string
46
-
default:
45
+
type: list
46
+
default: temperature
47
47
{% endconfiguration %}
48
48
49
-
The hydrological measurings are coming from the [Swiss Federal Office for the Environment (Bundesamt für Umwelt - Abt. Hydrologie)](http://www.hydrodaten.admin.ch) and are updated almost in real-time.
50
-
51
-
## {% linkable_title Example %}
52
-
53
-
This sensor contains additional information which an easily accessed by a [template sensor](/components/sensor.template/).
49
+
Sensors are exposing additional values through their attributes for all available conditions:
- `delta-24h`: The delta measurement for the last 24 hours.
52
+
- `max-1h`: The maximum measurement for the last hour.
53
+
- `max-24h`: The maximum measurement for the last 24 hours.
54
+
- `mean-1h`: The mean measurement for the last hour.
55
+
- `mean-24h`: The mean measurement for the last 24 hours.
56
+
- `min-1h`: The minimum measurement for the last hour.
57
+
- `min-24h`: The minimum measurement for the last 24 hours.
58
+
- `previous-24h`: The previous measurement for the last 24 hours.
59
+
- `station_update`: There is a time span between the sensor update in Home Assistant and the updates from the stations. Include those information if you are building automations based on the discharge of a water body.
66
60
61
+
<p class='note info'>
62
+
The sensors don't show the latest measurement, but those from the last hour due to the source of data. Some stations also don't provide data for certain measurements.
63
+
</p>
67
64
65
+
The hydrological measurements are coming from the [Swiss Federal Office for the Environment (Bundesamt für Umwelt - Abt. Hydrologie)](http://www.hydrodaten.admin.ch) and are updated every 10 minutes.
0 commit comments