mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 10:26:52 +00:00
Minimize configuration sample
This commit is contained in:
parent
5a666aecea
commit
a89804ff8e
@ -30,52 +30,15 @@ sensor:
|
|||||||
monitored_conditions:
|
monitored_conditions:
|
||||||
- alerts
|
- alerts
|
||||||
- dewpoint_c
|
- dewpoint_c
|
||||||
- dewpoint_f
|
|
||||||
- dewpoint_string
|
|
||||||
- feelslike_c
|
|
||||||
- feelslike_f
|
|
||||||
- feelslike_string
|
|
||||||
- heat_index_c
|
|
||||||
- heat_index_f
|
|
||||||
- heat_index_string
|
|
||||||
- elevation
|
|
||||||
- location
|
|
||||||
- observation_time
|
|
||||||
- precip_1hr_in
|
|
||||||
- precip_1hr_metric
|
|
||||||
- precip_1hr_string
|
|
||||||
- precip_today_in
|
|
||||||
- precip_today_metric
|
|
||||||
- precip_today_string
|
|
||||||
- pressure_in
|
|
||||||
- pressure_mb
|
|
||||||
- pressure_trend
|
|
||||||
- relative_humidity
|
|
||||||
- station_id
|
|
||||||
- solarradiation
|
|
||||||
- temperature_string
|
|
||||||
- temp_c
|
|
||||||
- temp_f
|
|
||||||
- UV
|
|
||||||
- visibility_km
|
|
||||||
- visibility_mi
|
|
||||||
- weather
|
|
||||||
- wind_degrees
|
|
||||||
- wind_dir
|
|
||||||
- wind_gust_kph
|
|
||||||
- wind_gust_mph
|
|
||||||
- wind_kph
|
|
||||||
- wind_mph
|
|
||||||
- wind_string
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
- **api_key** (Required): See above.
|
|
||||||
|
- **api_key** (Required): The API key for Weather Underground. See above for details.
|
||||||
- **pws_id** (Optional): You can enter a Personal Weather Station ID. The current list of Wunderground PWS stations is available [here](https://www.wunderground.com/weatherstation/ListStations.asp). If you do not enter a PWS ID, the current location information (latitude and longitude) from your `configuration.yaml` will be used to display weather conditions.
|
- **pws_id** (Optional): You can enter a Personal Weather Station ID. The current list of Wunderground PWS stations is available [here](https://www.wunderground.com/weatherstation/ListStations.asp). If you do not enter a PWS ID, the current location information (latitude and longitude) from your `configuration.yaml` will be used to display weather conditions.
|
||||||
- **lang** (Optional): Specify the language that the API returns. The current list of all Wunderground language codes is available [here](https://www.wunderground.com/weather/api/d/docs?d=language-support). If not specified, it defaults to English (EN).
|
- **lang** (Optional): Specify the language that the API returns. The current list of all Wunderground language codes is available [here](https://www.wunderground.com/weather/api/d/docs?d=language-support). If not specified, it defaults to English (EN).
|
||||||
- **latitude** (*Optional*): Latitude coordinate to monitor weather of (required if **longitude** is specificed), defaults to coordinates defined in your `configuration.yaml`
|
- **latitude** (*Optional*): Latitude coordinate to monitor weather of (required if **longitude** is specificed). Defaults to coordinates defined in your `configuration.yaml`.
|
||||||
- **longitude** (*Optional*): Longitude coordinate to monitor weather of (required if **latitude** is specified), defaults to coordinates defined in your `configuration.yaml`
|
- **longitude** (*Optional*): Longitude coordinate to monitor weather of (required if **latitude** is specified). Defaults to coordinates defined in your `configuration.yaml`.
|
||||||
- **monitored_conditions** array (*Required*): Conditions to display in the frontend. The following conditions can be monitored.
|
- **monitored_conditions** array (*Required*): Conditions to display in the frontend. The following conditions can be monitored.
|
||||||
- **alerts**: Current severe weather advisories
|
- **alerts**: Current severe weather advisories
|
||||||
- **dewpoint_c**: Temperature in Celsius below which water droplets begin to condense and dew can form
|
- **dewpoint_c**: Temperature in Celsius below which water droplets begin to condense and dew can form
|
||||||
@ -138,35 +101,26 @@ Configuration variables:
|
|||||||
|
|
||||||
All the conditions listed above will be updated every 5 minutes.
|
All the conditions listed above will be updated every 5 minutes.
|
||||||
|
|
||||||
### Forecasts
|
### {% linkable_title Forecasts %}
|
||||||
|
|
||||||
_12 hour forecasts_
|
_12 hour forecasts_
|
||||||
|
|
||||||
Monitored conditions marked above with <a name="12h">[12h]</a> are 12 hour
|
Monitored conditions marked above with <a name="12h">[12h]</a> are 12 hour forecasts. To get a forecast for different period/daytime replace the `_1d_` part of the sensor name. e.g. `weather_2n` will give you forecast for tomorrow night. Valid values for day are `1` to `4` and valid values for daytime are `d` or `n`.
|
||||||
forecasts. To get a forecast for different period/daytime replace the
|
|
||||||
`_1d_` part of the sensor name. e.g. `weather_2n` will give you forecast for
|
|
||||||
tomorrow night. Valid values for day are `1` to `4` and
|
|
||||||
valid values for daytime are `d` or `n`.
|
|
||||||
|
|
||||||
_Daily forecasts_
|
_Daily forecasts_
|
||||||
|
|
||||||
Conditions above marked with <a name="1d">[1d]</a> are daily forecasts.
|
Conditions above marked with <a name="1d">[1d]</a> are daily forecasts. To get forecast for different day, replace the number
|
||||||
To get forecast for different day, replace the number
|
in `_1d_` part of the sensor name. Valid values are from `1` to `4`.
|
||||||
in `_1d_` part of the sensor name. Valid values are from
|
|
||||||
`1` to `4`.
|
|
||||||
|
|
||||||
_Hourly forecasts_
|
_Hourly forecasts_
|
||||||
|
|
||||||
Conditions marked with <a name="1h">[1h]</a> are hourly forecasts.
|
Conditions marked with <a name="1h">[1h]</a> are hourly forecasts. To get forecast for different hour, replace the number
|
||||||
To get forecast for different hour, replace the number
|
in the `_1h_` part of the sensor name with `1` to `36`. E.g. `weather_24h` will give you weather in 24 hours.
|
||||||
in the `_1h_` part of the sensor name with `1` to `36`.
|
|
||||||
E.g. `weather_24h` will give you weather in 24 hours.
|
|
||||||
|
|
||||||
Additional examples:
|
### {% linkable_title Additional examples %}
|
||||||
====================
|
|
||||||
|
#### Daily forecast
|
||||||
|
|
||||||
Daily forecast
|
|
||||||
--------------
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
sensor:
|
sensor:
|
||||||
@ -183,23 +137,23 @@ sensor:
|
|||||||
- weather_4n_metric
|
- weather_4n_metric
|
||||||
|
|
||||||
group:
|
group:
|
||||||
dialy_forecast:
|
dialy_forecast:
|
||||||
name: Daily Forecast
|
name: Daily Forecast
|
||||||
entities:
|
entities:
|
||||||
- sensor.pws_weather_1d_metric
|
- sensor.pws_weather_1d_metric
|
||||||
- sensor.pws_weather_1n_metric
|
- sensor.pws_weather_1n_metric
|
||||||
- sensor.pws_weather_2d_metric
|
- sensor.pws_weather_2d_metric
|
||||||
- sensor.pws_weather_2n_metric
|
- sensor.pws_weather_2n_metric
|
||||||
- sensor.pws_weather_3d_metric
|
- sensor.pws_weather_3d_metric
|
||||||
- sensor.pws_weather_3n_metric
|
- sensor.pws_weather_3n_metric
|
||||||
- sensor.pws_weather_4d_metric
|
- sensor.pws_weather_4d_metric
|
||||||
- sensor.pws_weather_4n_metric
|
- sensor.pws_weather_4n_metric
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Weather overview
|
#### Weather overview
|
||||||
----------------
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
sensor:
|
sensor:
|
||||||
@ -218,20 +172,20 @@ sensor:
|
|||||||
- alerts
|
- alerts
|
||||||
|
|
||||||
group:
|
group:
|
||||||
weather_overview:
|
weather_overview:
|
||||||
name: Weather overview
|
name: Weather overview
|
||||||
entities:
|
entities:
|
||||||
- sensor.pws_weather_1d_metric
|
- sensor.pws_weather_1d_metric
|
||||||
- sensor.pws_temp_high_record_c
|
- sensor.pws_temp_high_record_c
|
||||||
- sensor.pws_temp_high_1d_c
|
- sensor.pws_temp_high_1d_c
|
||||||
- sensor.pws_temp_c
|
- sensor.pws_temp_c
|
||||||
- sensor.pws_temp_low_1d_c
|
- sensor.pws_temp_low_1d_c
|
||||||
- sensor.pws_temp_low_record_c
|
- sensor.pws_temp_low_record_c
|
||||||
- sensor.pws_precip_1d
|
- sensor.pws_precip_1d
|
||||||
- sensor.pws_precip_1d_mm
|
- sensor.pws_precip_1d_mm
|
||||||
- sensor.pws_wind_kph
|
- sensor.pws_wind_kph
|
||||||
- sensor.pws_wind_1d_kph
|
- sensor.pws_wind_1d_kph
|
||||||
- sensor.pws_alerts
|
- sensor.pws_alerts
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
Loading…
x
Reference in New Issue
Block a user