From f4e21d20d2753ae2d603fe8aec7edbb6db7e90c6 Mon Sep 17 00:00:00 2001 From: whhsw Date: Mon, 16 Jan 2017 19:44:36 +0800 Subject: [PATCH] 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 --- source/_components/sensor.waqi.markdown | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/_components/sensor.waqi.markdown b/source/_components/sensor.waqi.markdown index 73260b00339..21e549bea7b 100644 --- a/source/_components/sensor.waqi.markdown +++ b/source/_components/sensor.waqi.markdown @@ -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