Update darksky sensor component configuration (#7571)

This commit is contained in:
Klaas Schoute 2018-11-18 09:10:43 +01:00 committed by Fabian Affolter
parent d6d3cb6e7d
commit 2244f3a769

View File

@ -36,94 +36,161 @@ sensor:
- nearest_storm_distance - nearest_storm_distance
``` ```
Configuration variables: {% configuration %}
api_key:
description: Your API key.
required: true
type: string
name:
description: Additional name for the sensors.
required: false
default: Dark Sky
type: string
forecast:
description: List of days in the 7 day forecast you would like to receive data on, starting with tomorrow as day 1. Any `monitored_condition` with a daily forecast by DarkSky will generate a sensor tagged with `_<day>`.
required: false
type: list
language:
description: The desired language of the summary properties. The valid options are further down in a table.
required: false
default: "`en`"
type: string
latitude:
description: Latitude coordinate to monitor weather of (required if **longitude** is specified).
required: false
default: coordinates defined in your `configuration.yaml`
type: float
longitude:
description: Longitude coordinate to monitor weather of (required if **latitude** is specified).
required: false
default: coordinates defined in your `configuration.yaml`
type: float
monitored_conditions:
description: Conditions to display in the frontend.
required: true
type: list
keys:
summary:
description: A human-readable text summary of the current conditions.
precip_type:
description: The type of precipitation occurring.
precip_intensity:
description: The average expected intensity of precipitation occurring.
precip_probability:
description: A value between 0 and 1 which is representing the probability of precipitation.
precip_accumulation:
description: Daily snow accumulation. Returns unknown if no snow accumulation available.
temperature:
description: The current temperature.
apparent_temperature:
description: A numerical value representing the apparent (or "feels like") temperature.
dew_point:
description: The dew point.
wind_speed:
description: The wind speed.
wind_gust:
description: The wind gust.
wind_bearing:
description: Where the wind is coming from in degrees, with true north at 0° and progressing clockwise.
cloud_cover:
description: The percentage of sky occluded by clouds.
humidity:
description: The relative humidity.
pressure:
description: The sea-level air pressure in millibars.
visibility:
description: The average visibility.
ozone:
description: The columnar density of total atmospheric ozone in Dobson.
minutely_summary:
description: A human-readable text summary for the next hour.
hourly_summary:
description: A human-readable text summary for the next 24 hours.
daily_summary:
description: A human-readable text summary for the next 7 days.
temperature_high:
description: Today's daytime expected high temperature.
temperature_low:
description: Today's overnight expected low temperature.
apparent_temperature_high:
description: Today's daytime expected apparent high temperature.
apparent_temperature_low:
description: Today's overnight expected apparent low temperature.
precip_intensity_max:
description: Today's expected maximum intensity of precipitation.
uv_index:
description: The current UV index.
moon_phase:
description: The fractional part of the lunation number during the given day.
units:
description: Specify the unit system. Valid options are `auto`, `us`, `si`, `ca`, `uk` and `uk2`. `auto` will let Dark Sky decide the unit system based on location.
required: false
default: "`si` or `us`, based on the temperature preference in Home Assistant."
type: string
update_interval:
description: "Minimum time interval between updates. Supported formats: `update_interval: 'HH:MM:SS'`, `update_interval: 'HH:MM'` and Time period dictionary (see example below)."
required: false
default: 2 minutes
type: time
{% endconfiguration %}
- **api_key** (*Required*): Your API key. #### {% linkable_title Time period dictionary example %}
- **name** (*Optional*): Additional name for the sensors. Default to platform name.
- **forecast** array (*Optional*): List of days in the 7 day forecast you would like to receive data on, starting with tomorrow as day 1. Any `monitored_condition` with a daily forecast by DarkSky will generate a sensor tagged with `_<day>`. ```yaml
- **language** (*Optional*): The desired language of the summary properties. Valid options are update_interval:
- `ar`: Arabic # At least one of these must be specified:
- `az`: Azerbaijani days: 0
- `be`: Belarusian hours: 0
- `bg`: Bulgarian minutes: 3
- `bs`: Bosnian seconds: 30
- `ca`: Catalan milliseconds: 0
- `cs`: Czech ```
- `da`: Danish
- `de`: German #### {% linkable_title Language options %}
- `el`: Greek
- `en`: English (which is the default) All language options are described in this table that you can use for the dark sky sensor.
- `es`: Spanish
- `et`: Estonian |Language|Variable Code|
- `fi`: Finnish |---|---|
- `fr`: French |Arabic|`ar`|
- `hr`: Croatian |Azerbaijani|`az`|
- `hu`: Hungarian |Belarusian|`be`|
- `id`: Indonesian |Bulgarian|`bg`|
- `is`: Icelandic |Bosnian|`bs`|
- `it`: Italian |Catalan|`ca`|
- `ja`: Japanese |Czech|`cs`|
- `ka`: Georgian |Danish|`da`|
- `kw`: Cornish |German|`de`|
- `nb`: Norwegian Bokmål |Greek|`el`|
- `nl`: Dutch |English|`en`|
- `pl`: Polish |Spanish|`es`|
- `pt`: Portuguese |Estonian|`et`|
- `ro`: Romanian |Finnish|`fi`|
- `ru`: Russian |French|`fr`|
- `sk`: Slovak |Croatian|`hr`|
- `sl`: Slovenian |Hungarian|`hu`|
- `sr`: Serbian |Indonesian|`id`|
- `sv`: Swedish |Icelandic|`is`|
- `tet`: Tetum |Italian|`it`|
- `tr`: Turkish |Japanese|`ja`|
- `uk`: Ukrainian |Georgian|`ka`|
- `x-pig-latin`: Igpay Atinlay |Cornish|`kw`|
- `zh`: simplified Chinese |Norwegian Bokmål|`nb`|
- `zh-tw`: traditional Chinese |Dutch|`nl`|
- **latitude** (*Optional*): Latitude coordinate to monitor weather of (required if **longitude** is specified), defaults to coordinates defined in your `configuration.yaml` |Polish|`pl`|
- **longitude** (*Optional*): Longitude coordinate to monitor weather of (required if **latitude** is specified), defaults to coordinates defined in your `configuration.yaml` |Portuguese|`pt`|
- **monitored_conditions** array (*Required*): Conditions to display in the frontend. |Romanian|`ro`|
- **summary**: A human-readable text summary of the current conditions. |Russian|`ru`|
- **precip_type**: The type of precipitation occurring. |Slovak|`sk`|
- **precip_intensity**: The average expected intensity of precipitation occurring. |Slovenian|`sl`|
- **precip_probability**: A value between 0 and 1 which is representing the probability of precipitation. |Serbian|`sr`|
- **precip_accumulation**: Daily snow accumulation. Returns unknown if no snow accumulation available. |Swedish|`sv`|
- **temperature**: The current temperature. |Tetum|`tet`|
- **apparent_temperature**: A numerical value representing the apparent (or "feels like") temperature. |Turkish|`tr`|
- **dew_point**: The dew point. |Ukrainian|`uk`|
- **wind_speed**: The wind speed. |Igpay Atinlay|`x-pig-latin`|
- **wind_gust**: The wind gust. |simplified Chinese|`zh`|
- **wind_bearing**: Where the wind is coming from in degrees, with true north at 0° and progressing clockwise. |traditional Chinese|`zh-tw`|
- **cloud_cover**: The percentage of sky occluded by clouds.
- **humidity**: The relative humidity.
- **pressure**: The sea-level air pressure in millibars.
- **visibility**: The average visibility.
- **ozone**: The columnar density of total atmospheric ozone in Dobson.
- **minutely_summary**: A human-readable text summary for the next hour.
- **hourly_summary**: A human-readable text summary for the next 24 hours.
- **daily_summary**: A human-readable text summary for the next 7 days.
- **temperature_high**: Today's daytime expected high temperature.
- **temperature_low**: Today's overnight expected low temperature.
- **apparent_temperature_high**: Today's daytime expected apparent high temperature.
- **apparent_temperature_low**: Today's overnight expected apparent low temperature.
- **precip_intensity_max**: Today's expected maximum intensity of precipitation.
- **uv_index**: The current UV index.
- **moon_phase**: The fractional part of the lunation number during the given day.
- **units** (*Optional*): Specify the unit system. Default to `si` or `us` based on the temperature preference in Home Assistant. Other options are `auto`, `us`, `si`, `ca`, `uk` and `uk2`.
`auto` will let Dark Sky decide the unit system based on location.
- **update_interval** (*Optional*): Minimum time interval between updates. Default is 2 minutes. Supported formats:
- `update_interval: 'HH:MM:SS'`
- `update_interval: 'HH:MM'`
- Time period dictionary, e.g.:
<pre>update_interval:
# At least one of these must be specified:
days: 0
hours: 0
minutes: 3
seconds: 30
milliseconds: 0
</pre>
<p class='note warning'> <p class='note warning'>
While the platform is called "darksky" the sensors will show up in Home Assistant as "dark_sky" (eg: sensor.dark_sky_summary). While the platform is called "darksky" the sensors will show up in Home Assistant as "dark_sky" (eg: sensor.dark_sky_summary).