Add new parameter to sensor.aqi (#1739)

* Add new parameter to sensor.aqi

A city might have more stations than is needed. Adding an optional station parameter to restrict results.

* Update sensor.waqi.markdown
This commit is contained in:
whhsw 2017-01-16 19:44:36 +08:00 committed by Fabian Affolter
parent 54ea7df94d
commit f4e21d20d2

View File

@ -22,13 +22,17 @@ To enable this sensor, add the following lines to your `configuration.yaml` file
sensor:
- platform: waqi
locations:
- beijin
- beijing
stations:
- Beijing US Embassy
```
Configuration variables:
- **locations** (*Required*): a list of location names to look for air quality data. In case a specific location has multiple registered stations all of them will be added to Home Assistant
- **stations** (*Optional*): a list of station names to look for air quality data. Station should be within locations specified above.
The value reported is an overall AQ index for the location. The values of the index can be interpreted as following:
AQI | Status | Description