mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 08:46:51 +00:00
Minimizing of the configuration sample (#1042)
This commit is contained in:
parent
c72ec348e4
commit
dc07843704
@ -26,7 +26,6 @@ To add the BOM weather observation to your installation, add the following to yo
|
|||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
- platform: bom
|
- platform: bom
|
||||||
name: "optional name"
|
|
||||||
zone_id: IDS60801
|
zone_id: IDS60801
|
||||||
wmo_id: 94675
|
wmo_id: 94675
|
||||||
monitored_conditions:
|
monitored_conditions:
|
||||||
|
@ -26,7 +26,7 @@ To add Forecast.io to your installation, add the following to your `configuratio
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
platform: forecast
|
- platform: forecast
|
||||||
api_key: YOUR_APP_KEY
|
api_key: YOUR_APP_KEY
|
||||||
monitored_conditions:
|
monitored_conditions:
|
||||||
- summary
|
- summary
|
||||||
|
@ -23,7 +23,7 @@ To set it up, add the following information to your `configuration.yaml` file:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
sensor:
|
sensor:
|
||||||
platform: nest
|
- platform: nest
|
||||||
monitored_conditions:
|
monitored_conditions:
|
||||||
- 'weather_temperature'
|
- 'weather_temperature'
|
||||||
- 'weather_humidity'
|
- 'weather_humidity'
|
||||||
|
@ -14,8 +14,6 @@ ha_category: Weather
|
|||||||
|
|
||||||
The `netatmo` sensor platform is consuming the information provided by a [Netatmo](https://www.netatmo.com) device.
|
The `netatmo` sensor platform is consuming the information provided by a [Netatmo](https://www.netatmo.com) device.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
To enable the Netatmo sensor, you first have to set up [netatmo](/components/netatmo/), and add the following lines to your `configuration.yaml`:
|
To enable the Netatmo sensor, you first have to set up [netatmo](/components/netatmo/), and add the following lines to your `configuration.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@ -26,37 +24,15 @@ sensor:
|
|||||||
modules:
|
modules:
|
||||||
module_name1:
|
module_name1:
|
||||||
- temperature
|
- temperature
|
||||||
- humidity
|
|
||||||
- noise
|
|
||||||
- pressure
|
|
||||||
- co2
|
|
||||||
- rain
|
|
||||||
- sum_rain_1
|
|
||||||
- sum_rain_24
|
|
||||||
- wifi_status
|
|
||||||
module_name2:
|
module_name2:
|
||||||
- temperature
|
- temperature
|
||||||
- battery_vp
|
- battery_vp
|
||||||
- min_temp
|
|
||||||
- max_temp
|
|
||||||
rainmeter_name3:
|
|
||||||
- rain
|
|
||||||
- sum_rain_1
|
|
||||||
- sum_rain_24
|
|
||||||
- battery_vp
|
|
||||||
- rf_status
|
|
||||||
windmodule_name4:
|
|
||||||
- WindAngle
|
|
||||||
- WindStrength
|
|
||||||
- GustAngle
|
|
||||||
- GustStrength
|
|
||||||
- rf_status
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
|
|
||||||
- **station** (*Optional*): The name of the weather station. Needed if several stations are associated with the account.
|
- **station** (*Optional*): The name of the weather station. Needed if several stations are associated with the account.
|
||||||
- **modules** (*Required*): Modules to use. Multiple entries allowed.
|
- **modules** (*Required*): Modules to use. Multiple entries allowed. Please checkthe next section about how to retrieve the module names.
|
||||||
- **module_name** array (*Required*): Name of the module.
|
- **module_name** array (*Required*): Name of the module.
|
||||||
- **temperature**: Current temperature.
|
- **temperature**: Current temperature.
|
||||||
- **co2**: CO2 concentration in ppm.
|
- **co2**: CO2 concentration in ppm.
|
||||||
|
@ -22,9 +22,8 @@ To add OpenWeatherMap to your installation, add the following to your `configura
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
platform: openweathermap
|
- platform: openweathermap
|
||||||
api_key: YOUR_API_KEY
|
api_key: YOUR_API_KEY
|
||||||
forecast: 0 or 1
|
|
||||||
monitored_conditions:
|
monitored_conditions:
|
||||||
- weather
|
- weather
|
||||||
- temperature
|
- temperature
|
||||||
|
@ -23,7 +23,6 @@ To enable this sensor, add the following lines to your `configuration.yaml` file
|
|||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
platform: swiss_hydrological_data
|
platform: swiss_hydrological_data
|
||||||
name: Aare
|
|
||||||
station: STATION_ID
|
station: STATION_ID
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -25,9 +25,8 @@ To add Wunderground to your installation, add the following to your `configurati
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
platform: wunderground
|
- platform: wunderground
|
||||||
api_key: your_api_key
|
api_key: your_api_key
|
||||||
pws_id: enter_pws_id
|
|
||||||
monitored_conditions:
|
monitored_conditions:
|
||||||
- weather
|
- weather
|
||||||
- temp_f
|
- temp_f
|
||||||
@ -60,8 +59,8 @@ sensor:
|
|||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
- **api_key** (Required): See above
|
- **api_key** (Required): See above.
|
||||||
- **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.
|
||||||
- **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.
|
||||||
- **weather**: A human-readable text summary with picture from Wunderground.
|
- **weather**: A human-readable text summary with picture from Wunderground.
|
||||||
- **temp_f**: Current temperature in Fahrenheit
|
- **temp_f**: Current temperature in Fahrenheit
|
||||||
|
@ -19,34 +19,9 @@ weather forecast is delivered by the Norwegian Meteorological Institute and the
|
|||||||
To add YR to your installation, add the following to your `configuration.yaml` file:
|
To add YR to your installation, add the following to your `configuration.yaml` file:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Will show a symbol for the current weather as default:
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
platform: yr
|
- platform: yr
|
||||||
|
|
||||||
# Will show temperatue and wind direction:
|
|
||||||
sensor:
|
|
||||||
platform: yr
|
|
||||||
monitored_conditions:
|
|
||||||
- temperature
|
|
||||||
- windDirection
|
|
||||||
|
|
||||||
# Will show all available sensors:
|
|
||||||
sensor:
|
|
||||||
platform: yr
|
|
||||||
monitored_conditions:
|
|
||||||
- temperature
|
|
||||||
- symbol
|
|
||||||
- precipitation
|
|
||||||
- windSpeed
|
|
||||||
- pressure
|
|
||||||
- windDirection
|
|
||||||
- humidity
|
|
||||||
- fog
|
|
||||||
- cloudiness
|
|
||||||
- lowClouds
|
|
||||||
- mediumClouds
|
|
||||||
- highClouds
|
|
||||||
- dewpointTemperature
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
@ -66,3 +41,24 @@ Configuration variables:
|
|||||||
- **mediumClouds**: Medium cloud level.
|
- **mediumClouds**: Medium cloud level.
|
||||||
- **highClouds**: High cloud level.
|
- **highClouds**: High cloud level.
|
||||||
|
|
||||||
|
A full configuration example can be found below:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example configuration.yaml entry
|
||||||
|
sensor:
|
||||||
|
- platform: yr
|
||||||
|
monitored_conditions:
|
||||||
|
- temperature
|
||||||
|
- symbol
|
||||||
|
- precipitation
|
||||||
|
- windSpeed
|
||||||
|
- pressure
|
||||||
|
- windDirection
|
||||||
|
- humidity
|
||||||
|
- fog
|
||||||
|
- cloudiness
|
||||||
|
- lowClouds
|
||||||
|
- mediumClouds
|
||||||
|
- highClouds
|
||||||
|
- dewpointTemperature
|
||||||
|
```
|
||||||
|
@ -26,9 +26,7 @@ To add Yahoo Weather to your installation, add the following to your `configurat
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
platform: yweather
|
- platform: yweather
|
||||||
woeid: YOUR_WOEID
|
|
||||||
forecast: 0 until 5
|
|
||||||
monitored_conditions:
|
monitored_conditions:
|
||||||
- weather
|
- weather
|
||||||
- weather_current
|
- weather_current
|
||||||
@ -39,17 +37,6 @@ sensor:
|
|||||||
- visibility
|
- visibility
|
||||||
- humidity
|
- humidity
|
||||||
- temperature
|
- temperature
|
||||||
|
|
||||||
# Example configuration.yaml entry with forecast
|
|
||||||
sensor:
|
|
||||||
platform: yweather
|
|
||||||
woeid: YOUR_WOEID
|
|
||||||
forecast: 3
|
|
||||||
name: OPTIONAL_NAME
|
|
||||||
monitored_conditions:
|
|
||||||
- weather
|
|
||||||
- temp_min
|
|
||||||
- temp_max
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
|
@ -17,12 +17,7 @@ The sun component will use your current location to track if the sun is above or
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
homeassistant:
|
|
||||||
latitude: 32.87336
|
|
||||||
longitude: -117.22743
|
|
||||||
|
|
||||||
sun:
|
sun:
|
||||||
elevation: 102
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user