Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01f8ca6

Browse files
Bounifabaff
authored andcommitted
Update Swiss Hydrological Data documentation (home-assistant#6535)
* Update Swiss Hydrological Data documentation * Update * Fix typo and style * Fix my copy-&-paste mistake:
1 parent 618132c commit 01f8ca6

File tree

1 file changed

+23
-25
lines changed

1 file changed

+23
-25
lines changed

source/_components/sensor.swiss_hydrological_data.markdown

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,11 @@ ha_iot_class: "Cloud Polling"
1313
ha_release: 0.22
1414
---
1515

16-
<p class='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-
2016
The `swiss_hydrological_data` sensor will show you details (temperature, level, and discharge) of rivers and lakes in Switzerland.
2117

2218
## {% linkable_title Setup %}
2319

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.
2521

2622
## {% linkable_title Configuration %}
2723

@@ -32,36 +28,38 @@ To enable this sensor, add the following lines to your `configuration.yaml` file
3228
sensor:
3329
- platform: swiss_hydrological_data
3430
station: STATION_ID
31+
monitored_conditions:
32+
- temperature
33+
- level
34+
- discharge
3535
```
3636
3737
{% configuration %}
3838
station:
3939
description: The ID of the measurement point.
4040
required: true
4141
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`.
4444
required: false
45-
type: string
46-
default:
45+
type: list
46+
default: temperature
4747
{% endconfiguration %}
4848

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:
5450

55-
{% raw %}
56-
```yaml
57-
# Example configuration.yaml entry
58-
sensor:
59-
platform: template
60-
sensors:
61-
discharge:
62-
value_template: '{{ states.sensor.aare.attributes.Discharge }}'
63-
friendly_name: 'Discharge'
64-
```
65-
{% endraw %}
51+
- `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.
6660

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>
6764

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

Comments
 (0)