From 9cd416de0a619bcb6e720aa85069573fa2bd43c3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 8 Oct 2016 21:54:40 +0200 Subject: [PATCH] Add name which is an optional variable --- source/_components/sensor.darksky.markdown | 57 ++++++++++--------- .../sensor.openweathermap.markdown | 1 + source/_components/sensor.yweather.markdown | 2 +- 3 files changed, 31 insertions(+), 29 deletions(-) diff --git a/source/_components/sensor.darksky.markdown b/source/_components/sensor.darksky.markdown index bfd2d19811b..e347c56df71 100644 --- a/source/_components/sensor.darksky.markdown +++ b/source/_components/sensor.darksky.markdown @@ -26,39 +26,40 @@ To add Dark Sky to your installation, add the following to your `configuration.y ```yaml # Example configuration.yaml entry sensor: - platform: darksky - api_key: YOUR_APP_KEY - monitored_conditions: - - summary - - icon - - nearest_storm_distance - - nearest_storm_bearing - - precip_type - - precip_intensity - - precip_probability - - temperature - - apparent_temperature - - dew_point - - wind_speed - - wind_bearing - - cloud_cover - - humidity - - pressure - - visibility - - ozone - - minutely_summary - - hourly_summary - - daily_summary - - temperature_max - - temperature_min - - apparent_temperature_max - - apparent_temperature_min - - precip_intensity_max + - platform: darksky + api_key: YOUR_APP_KEY + monitored_conditions: + - summary + - icon + - nearest_storm_distance + - nearest_storm_bearing + - precip_type + - precip_intensity + - precip_probability + - temperature + - apparent_temperature + - dew_point + - wind_speed + - wind_bearing + - cloud_cover + - humidity + - pressure + - visibility + - ozone + - minutely_summary + - hourly_summary + - daily_summary + - temperature_max + - temperature_min + - apparent_temperature_max + - apparent_temperature_min + - precip_intensity_max ``` Configuration variables: - **api_key** (*Required*): Your API key. +- **name** (*Optional*): Additional name for the sensors. Default to platform name. - **monitored_conditions** array (*Required*): Conditions to display in the frontend. - **summary**: A human-readable text summary of the current conditions. - **precip_type**: The type of precipitation occurring. diff --git a/source/_components/sensor.openweathermap.markdown b/source/_components/sensor.openweathermap.markdown index 32bf1871d84..fca55b2237c 100644 --- a/source/_components/sensor.openweathermap.markdown +++ b/source/_components/sensor.openweathermap.markdown @@ -38,6 +38,7 @@ sensor: Configuration variables: - **api_key** (*Required*): Your API key for http://openweathermap.org/. +- **name** (*Optional*): Additional name for the sensors. Default to platform name. - **forecast** (*Optional*): Enables the forecast. The default is to display the current conditions. - **monitored_conditions** array (*Required*): Conditions to display in the frontend. - **weather**: A human-readable text summary. diff --git a/source/_components/sensor.yweather.markdown b/source/_components/sensor.yweather.markdown index c78ac5d06f3..aaf6fd83bc8 100644 --- a/source/_components/sensor.yweather.markdown +++ b/source/_components/sensor.yweather.markdown @@ -43,7 +43,7 @@ Configuration variables: - **woeid** (*Optional*): See above. - **forecast** (*Optional*): Day of forecast. The default is the current day to display conditions. -- **name** (*Optional*): The name of the sensor. To easily recognize each sensor when adding more than one Yahoo weather sensor, it is recommended to use the name option. +- **name** (*Optional*): The name of the sensor. To easily recognize each sensor when adding more than one Yahoo weather sensor, it is recommended to use the name option. Defaults to `Yweather`. - **monitored_conditions** array (*Required*): Conditions to display in the frontend. - **weather**: A human-readable text summary with picture from yahoo. - **weather_current**: A human-readable text summary with picture from yahoo from current conditon.