mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 00:36:49 +00:00
Updated zamg to use config flow (#21685)
This commit is contained in:
parent
7d312a66b2
commit
e767afd9ef
@ -7,6 +7,7 @@ ha_category:
|
|||||||
ha_release: 0.35
|
ha_release: 0.35
|
||||||
ha_iot_class: Cloud Polling
|
ha_iot_class: Cloud Polling
|
||||||
ha_domain: zamg
|
ha_domain: zamg
|
||||||
|
ha_config_flow: true
|
||||||
ha_platforms:
|
ha_platforms:
|
||||||
- sensor
|
- sensor
|
||||||
- weather
|
- weather
|
||||||
@ -17,111 +18,32 @@ The `zamg` platform uses meteorological details published by the Austrian weathe
|
|||||||
|
|
||||||
Only observations for capital cities are publicly available. You can check the list of stations in [CSV format](https://www.zamg.ac.at/ogd).
|
Only observations for capital cities are publicly available. You can check the list of stations in [CSV format](https://www.zamg.ac.at/ogd).
|
||||||
|
|
||||||
|
{% include integrations/config_flow.md %}
|
||||||
|
|
||||||
There is currently support for the following device types within Home Assistant:
|
There is currently support for the following device types within Home Assistant:
|
||||||
|
|
||||||
- **[Weather](#weather)** - Easier to configure but less customizable and doesn't have support for conditions which is a key feature of the `weather` platforms.
|
- **Weather** - It displays the current temperature, humidity, pressure and wind speed, but it doesn't have support for conditions which is a key feature of the `weather` platforms.
|
||||||
- **[Sensor](#sensor)**
|
- **[Sensor](#sensor)**
|
||||||
|
|
||||||
## Weather
|
|
||||||
|
|
||||||
To add ZAMG weather platform to your installation, add the following to your `configuration.yaml` file:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
# Example configuration.yaml entry
|
|
||||||
weather:
|
|
||||||
- platform: zamg
|
|
||||||
```
|
|
||||||
|
|
||||||
{% configuration %}
|
|
||||||
station_id:
|
|
||||||
description: The ID number for a supported ZAMG station.
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
name:
|
|
||||||
description: A name for the weather platform.
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
latitude:
|
|
||||||
description: "Latitude coordinate to monitor weather of (required if **longitude** is specified)."
|
|
||||||
required: false
|
|
||||||
type: float
|
|
||||||
default: "Defaults to coordinates defined in your `configuration.yaml` file."
|
|
||||||
longitude:
|
|
||||||
description: "Longitude coordinate to monitor weather of (required if **latitude** is specified)."
|
|
||||||
required: false
|
|
||||||
type: float
|
|
||||||
default: "Defaults to coordinates defined in your `configuration.yaml` file."
|
|
||||||
{% endconfiguration %}
|
|
||||||
|
|
||||||
## Sensor
|
## Sensor
|
||||||
|
|
||||||
To add ZAMG sensor platform to your installation, add the following to your `configuration.yaml` file:
|
This integration provides the following sensors:
|
||||||
|
|
||||||
```yaml
|
|Name|Description|
|
||||||
# Example configuration.yaml entry
|
|----|-----------|
|
||||||
sensor:
|
|Temperature|Temperature in °C|
|
||||||
- platform: zamg
|
|Humidity|Humidity in %|
|
||||||
```
|
|Dew Point|Dew point in °C|
|
||||||
|
|Pressure|Station pressure in hPa|
|
||||||
{% configuration %}
|
|Pressure at Sea Level|Sea level pressure in hPa|
|
||||||
station_id:
|
|Wind Speed|Wind speed in km/h|
|
||||||
required: false
|
|Top Wind Speed|Max wind speed in km/h|
|
||||||
description: The ID number for a supported ZAMG station.
|
|Wind Bearing|Wind bearing in °|
|
||||||
type: string
|
|Top Wind Bearing|Wind bearing at max speed in °|
|
||||||
name:
|
|Sun Last Hour|Sunshine in the last hour in %|
|
||||||
required: false
|
|Precipitation|Precipitation in 1/m²|
|
||||||
description: Additional name for the sensors. Defaults to platform name.
|
|Station Name|Station name|
|
||||||
default: zamg
|
|Station Elevation|The station elevation in m|
|
||||||
type: string
|
|Update Date|Update date of last read data|
|
||||||
latitude:
|
|Update Time|Update time of last read data|
|
||||||
required: false
|
|Station id|The station id|
|
||||||
description: "Latitude coordinate to monitor weather of (required if **longitude** is specified)."
|
|
||||||
default: "Defaults to coordinates defined in your `configuration.yaml` file."
|
|
||||||
type: float
|
|
||||||
longitude:
|
|
||||||
required: false
|
|
||||||
description: "Longitude coordinate to monitor weather of (required if **latitude** is specified)."
|
|
||||||
default: "Defaults to coordinates defined in your `configuration.yaml` file."
|
|
||||||
type: float
|
|
||||||
monitored_conditions:
|
|
||||||
required: false
|
|
||||||
description: Conditions to display in the frontend.
|
|
||||||
type: list
|
|
||||||
default: temperature
|
|
||||||
keys:
|
|
||||||
pressure:
|
|
||||||
description: Pressure at station level
|
|
||||||
pressure_sealevel:
|
|
||||||
description: Pressure at sea Level
|
|
||||||
humidity:
|
|
||||||
description: Humidity
|
|
||||||
wind_speed:
|
|
||||||
description: Wind speed
|
|
||||||
wind_bearing:
|
|
||||||
description: Wind bearing
|
|
||||||
wind_max_speed:
|
|
||||||
description: Top wind speed
|
|
||||||
wind_max_bearing:
|
|
||||||
description: Top wind bearing
|
|
||||||
sun_last_hour:
|
|
||||||
description: Sun last hour percentage
|
|
||||||
temperature:
|
|
||||||
description: Temperature
|
|
||||||
precipitation:
|
|
||||||
description: Precipitation
|
|
||||||
dewpoint:
|
|
||||||
description: Dew point
|
|
||||||
{% endconfiguration %}
|
|
||||||
|
|
||||||
A full configuration example:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
# Example configuration.yaml entry
|
|
||||||
sensor:
|
|
||||||
- platform: zamg
|
|
||||||
station_id: 11035
|
|
||||||
name: Wien
|
|
||||||
monitored_conditions:
|
|
||||||
- temperature
|
|
||||||
- humidity
|
|
||||||
```
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user