mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Allow to set long/lat and make mon conditions optional (#3144)
This commit is contained in:
parent
20c8c18098
commit
e58b8e7037
@ -23,17 +23,15 @@ To add ZAMG to your installation, add the following to your `configuration.yaml`
|
|||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
- platform: zamg
|
- platform: zamg
|
||||||
station_id: 11035
|
|
||||||
monitored_conditions:
|
|
||||||
- temperature
|
|
||||||
- humidity
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
|
|
||||||
- **station_id** (*Optional*): The ID number for a supported ZAMG station.
|
- **station_id** (*Optional*): The ID number for a supported ZAMG station.
|
||||||
- **name** (*Optional*): Additional name for the sensors. Defaults to platform name.
|
- **name** (*Optional*): Additional name for the sensors. Defaults to platform name.
|
||||||
- **monitored_conditions** array (*Required*): Conditions to display in the frontend.
|
- **latitude** (*Optional*): Latitude coordinate to monitor weather of (required if **longitude** is specificed). Defaults to coordinates defined in your `configuration.yaml` file.
|
||||||
|
- **longitude** (*Optional*): Longitude coordinate to monitor weather of (required if **latitude** is specified). Defaults to coordinates defined in your `configuration.yaml` file.
|
||||||
|
- **monitored_conditions** array (*Optional*): Conditions to display in the frontend.
|
||||||
- **pressure**: Pressure at station level
|
- **pressure**: Pressure at station level
|
||||||
- **pressure_sealevel**: Pressure at sea Level
|
- **pressure_sealevel**: Pressure at sea Level
|
||||||
- **humidity**: Humidity
|
- **humidity**: Humidity
|
||||||
@ -46,7 +44,19 @@ Configuration variables:
|
|||||||
- **precipitation**: Precipitation
|
- **precipitation**: Precipitation
|
||||||
- **dewpoint**: Dew point
|
- **dewpoint**: Dew point
|
||||||
|
|
||||||
|
A full configuration example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example configuration.yaml entry
|
||||||
|
sensor:
|
||||||
|
- platform: zamg
|
||||||
|
station_id: 11035
|
||||||
|
name: Wien
|
||||||
|
monitored_conditions:
|
||||||
|
- temperature
|
||||||
|
- humidity
|
||||||
|
```
|
||||||
|
|
||||||
<p class='note'>
|
<p class='note'>
|
||||||
This sensor is an alternative to the [`zamg`](/components/weather.zamg/) weather platform.
|
This sensor is an alternative to the [`zamg`](/components/weather.zamg/) weather platform. The `zamg` weather platform is easier to configure but less customisable.
|
||||||
The weather platform is easier to configure but less customisable.
|
|
||||||
</p>
|
</p>
|
||||||
|
@ -29,8 +29,9 @@ Configuration variables:
|
|||||||
|
|
||||||
- **station_id** (*Optional*): The ID number for a supported ZAMG station.
|
- **station_id** (*Optional*): The ID number for a supported ZAMG station.
|
||||||
- **name** (*Optional*): A name for the weather platform.
|
- **name** (*Optional*): A name for the weather platform.
|
||||||
|
- **latitude** (*Optional*): Latitude coordinate to monitor weather of (required if **longitude** is specificed). Defaults to coordinates defined in your `configuration.yaml` file.
|
||||||
|
- **longitude** (*Optional*): Longitude coordinate to monitor weather of (required if **latitude** is specified). Defaults to coordinates defined in your `configuration.yaml` file.
|
||||||
|
|
||||||
<p class='note'>
|
<p class='note'>
|
||||||
This platform is an alternative to the [`zamg`](/components/sensor.zamg/) sensor.
|
This platform is an alternative to the [`zamg`](/components/sensor.zamg/) sensor. The weather platform is easier to configure but less customisable.
|
||||||
The weather platform is easier to configure but less customisable.
|
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user