home-assistant.io/source/_components/sensor.swiss_hydrological_data.markdown
Alok Saboo 1aca7b08cf Misc fixes: e.g. -> e.g., and proper case for Home Assistant (#4942)
* e.g. to e.g., and proper case for Home Assistant

* Instructions how to -> Instructions on how to
2018-03-17 20:20:37 +01:00

1.8 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_iot_class, ha_release
layout title description date sidebar comments sharing footer logo ha_category ha_iot_class ha_release
page Swiss Hydrological Data Instructions on how to integrate hydrological data of Swiss waters within Home Assistant. 2016-06-17 17:00 true false true true swiss-hydrological-data.png Weather Cloud Polling 0.22

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.

The swiss_hydrological_data sensor will show you details (temperature, level, and discharge) of rivers and lakes in Switzerland.

The station overview contains a list of all available measuring points and will help to determine the ID of station which is needed for the configuration.

To enable this sensor, add the following lines to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  platform: swiss_hydrological_data
  station: STATION_ID

Configuration variables:

  • name (Optional): Name to use in the frontend.
  • station (Required): The ID of the measurement point.

The hydrological measurings are coming from the Swiss Federal Office for the Environment (Bundesamt für Umwelt - Abt. Hydrologie) and are updated almost in real-time.

This sensor contains additional information which an easily accessed by a template sensor.

# Example configuration.yaml entry
sensor:
  platform: template
  sensors:
    discharge:
      value_template: '{% raw %}{{ states.sensor.aare.attributes.Discharge }}{% endraw %}'
      friendly_name: 'Discharge'