mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 10:17:23 +00:00
Add template example
This commit is contained in:
parent
1fe683b4b5
commit
560444fb0d
@ -33,3 +33,16 @@ Configuration variables:
|
|||||||
- **station** (*Required*): The ID of the measurement point.
|
- **station** (*Required*): The ID of the measurement point.
|
||||||
|
|
||||||
The hydrological measurings are coming from the [Swiss Federal Office for the Environment (FOEN)](http://www.hydrodaten.admin.ch).
|
The hydrological measurings are coming from the [Swiss Federal Office for the Environment (FOEN)](http://www.hydrodaten.admin.ch).
|
||||||
|
|
||||||
|
This sensor contains additional information which an easily accessed by a [template sensor](/components/sensor.template/).
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example configuration.yaml entry
|
||||||
|
sensor:
|
||||||
|
platform: template
|
||||||
|
sensors:
|
||||||
|
discharge:
|
||||||
|
value_template: '{% raw %}{{ states.sensor.aare.attributes.Discharge }}{% endraw %}'
|
||||||
|
friendly_name: 'Discharge'
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user