mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-27 03:07:14 +00:00
New configuration variable style
This commit is contained in:
parent
8d752574c6
commit
1090740531
@ -38,6 +38,11 @@ binary_sensor:
|
|||||||
description: List of your sensors.
|
description: List of your sensors.
|
||||||
required: true
|
required: true
|
||||||
type: map
|
type: map
|
||||||
|
keys:
|
||||||
|
sensor_name:
|
||||||
|
description: The slug of the sensor.
|
||||||
|
required: true
|
||||||
|
type: map
|
||||||
keys:
|
keys:
|
||||||
friendly_name:
|
friendly_name:
|
||||||
description: Name to use in the frontend.
|
description: Name to use in the frontend.
|
||||||
|
@ -62,19 +62,11 @@ sensor:
|
|||||||
keys:
|
keys:
|
||||||
P1:
|
P1:
|
||||||
description: Show the particle sensors (particles 10 microns and below).
|
description: Show the particle sensors (particles 10 microns and below).
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
P2:
|
P2:
|
||||||
description: Show the particle sensors (particles 2.5 microns and below).
|
description: Show the particle sensors (particles 2.5 microns and below).
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
temperature:
|
temperature:
|
||||||
description: Display the temperature from a weather sensor.
|
description: Display the temperature from a weather sensor.
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
humidity:
|
humidity:
|
||||||
description: Display the humidity from a weather sensor.
|
description: Display the humidity from a weather sensor.
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
@ -29,21 +29,49 @@ sensor:
|
|||||||
- weather
|
- weather
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
{% configuration %}
|
||||||
|
apk_key:
|
||||||
- **api_key** (*Required*): Your API key for http://openweathermap.org/.
|
description: Your API key for http://openweathermap.org/.
|
||||||
- **name** (*Optional*): Additional name for the sensors. Default to platform name.
|
required: true
|
||||||
- **forecast** (*Optional*): Enables the forecast. The default is to display the current conditions.
|
type: string
|
||||||
- **language** (*Optional*): The language in which you want text results to be returned. It's a two-characters string, eg. `en`, `es`, `ru`, `it`, etc. Defaults to English.
|
name:
|
||||||
- **monitored_conditions** array (*Required*): Conditions to display in the frontend.
|
description: Additional name for the sensors. Default to platform name.
|
||||||
- **weather**: A human-readable text summary.
|
required: false
|
||||||
- **temperature**: The current temperature.
|
default: OWM
|
||||||
- **wind_speed**: The wind speed.
|
type: string
|
||||||
- **wind_bearing**: The wind bearing.
|
forecast:
|
||||||
- **humidity**: The relative humidity.
|
description: Enables the forecast. The default is to display the current conditions.
|
||||||
- **pressure**: The sea-level air pressure in millibars.
|
required: false
|
||||||
- **clouds**: Description about cloud coverage.
|
default: false
|
||||||
- **rain**: The rain volume.
|
type: string
|
||||||
- **snow**: The snow volume
|
language:
|
||||||
|
description: The language in which you want text results to be returned. It's a two-characters string, eg. `en`, `es`, `ru`, `it`, etc.
|
||||||
|
required: false
|
||||||
|
default: en
|
||||||
|
type: string
|
||||||
|
monitored_conditions:
|
||||||
|
description: Conditions to display in the frontend.
|
||||||
|
required: true
|
||||||
|
type: list
|
||||||
|
keys:
|
||||||
|
weather:
|
||||||
|
description: A human-readable text summary.
|
||||||
|
temperature:
|
||||||
|
description: The current temperature.
|
||||||
|
wind_speed:
|
||||||
|
description: The wind speed.
|
||||||
|
wind_bearing:
|
||||||
|
description: The wind bearing.
|
||||||
|
humidity:
|
||||||
|
description: The relative humidity.
|
||||||
|
pressure:
|
||||||
|
description: The sea-level air pressure in millibars.
|
||||||
|
clouds:
|
||||||
|
description: Description about cloud coverage.
|
||||||
|
rain:
|
||||||
|
description: The rain volume.
|
||||||
|
snow:
|
||||||
|
description: The snow volume.
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
Details about the API are available in the [OpenWeatherMap documentation](http://openweathermap.org/api).
|
Details about the API are available in the [OpenWeatherMap documentation](http://openweathermap.org/api).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user