Skip to content

Commit 3242a43

Browse files
authored
Add AirVisual Node/Pro docs (#12382)
* Add docs for AirVisual Node/Pro * Updates * Add local info * Code review * Remove config options
1 parent a7975ea commit 3242a43

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

source/_integrations/airvisual.markdown

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ ha_domain: airvisual
1111
ha_config_flow: true
1212
---
1313

14-
The `airvisual` sensor platform queries the [AirVisual](https://airvisual.com/) API for air quality data. Data can be collected via latitude/longitude or by city/state/country. The resulting information creates sensors for the Air Quality Index (AQI), the human-friendly air quality level, and the main pollutant of that area. Sensors that conform to either/both the [U.S. and Chinese air quality standards](https://www.clm.com/publication.cfm?ID=366) are created.
14+
The `airvisual` sensor platform queries the [AirVisual](https://airvisual.com/) cloud API for air quality data. Data can be collected via latitude/longitude, by city/state/country, or from an [AirVisual Node/Pro unit](https://www.airvisual.com/air-quality-monitor).
1515

16-
This platform requires an AirVisual API key, which can be obtained [here](https://airvisual.com/api). Note that the platform was designed using the "Community" package; the "Startup" and "Enterprise" package keys should continue to function, but actual results may vary (or not work at all).
16+
## Using the AirVisual Cloud API
17+
18+
AirVisual API keys can be obtained [here](https://airvisual.com/api). Note that the platform was designed using the "Community" package; the "Startup" and "Enterprise" package keys should continue to function, but actual results may vary (or not work at all).
1719

1820
The Community API key is valid for 12 months after which it will expire. You must then go back to the AirVisual website, delete your old key, create a new one following the same steps and update your configuration with the new key.
1921

@@ -23,19 +25,34 @@ The "Community" API key is limited to 10,000 calls per month. In order to leave
2325

2426
</div>
2527

28+
## Using an AirVisual Node/Pro Unit
29+
30+
The integration can communicate to Node/Pro units over the local network. You will need the IP address/hostname of the unit and its Samba password (which can be found on the unit; instructions here: https://support.airvisual.com/en/articles/3029331-download-the-airvisual-node-pro-s-data-using-samba).
31+
2632
## Configuration
2733

28-
To enable the platform and gather data via latitude/longitude, add the following lines to your `configuration.yaml` file:
34+
To enable the integration and gather data via latitude/longitude, add the following lines to your `configuration.yaml` file:
2935

3036
```yaml
3137
airvisual:
3238
api_key: YOUR_AIRVISUAL_API_KEY
3339
```
3440
41+
To enable the integration and gather from a Node/Pro unit, add the following lines to your `configuration.yaml` file:
42+
43+
```yaml
44+
airvisual:
45+
ip_address: YOUR_NODE_PRO_IP_ADDRESS
46+
password: YOUR_NODE_PRO_SAMBA_PASSWORD
47+
```
48+
49+
Note that an API key-based entry can be mixed with one or more Node/Pro-based entries
50+
(examples below).
51+
3552
{% configuration %}
3653
api_key:
3754
description: Your AirVisual API key.
38-
required: true
55+
required: false
3956
type: string
4057
geographies:
4158
description: A list of geographical locations to monitor
@@ -66,14 +83,14 @@ geographies:
6683

6784
## Example Configurations
6885

69-
No explicit configuration (uses the `latitude` and `longitude` defined within `configuration.yaml`):
86+
No explicit configuration (using the cloud API and the `latitude` and `longitude` defined within `configuration.yaml`):
7087

7188
```yaml
7289
airvisual:
7390
api_key: YOUR_AIRVISUAL_API_KEY
7491
```
7592

76-
Configuration using a single custom latitude and longitude:
93+
Configuration using the cloud API and a single custom latitude and longitude:
7794

7895
```yaml
7996
airvisual:
@@ -83,7 +100,7 @@ airvisual:
83100
longitude: 108.12422
84101
```
85102

86-
Configuration using multiple custom latitude and longitude pairs:
103+
Configuration using the cloud API and multiple custom latitude and longitude pairs:
87104

88105
```yaml
89106
airvisual:
@@ -95,7 +112,7 @@ airvisual:
95112
longitude: -117.22743
96113
```
97114

98-
Configuration using a single city, state, and country:
115+
Configuration using the cloud API and a single city, state, and country:
99116

100117
```yaml
101118
airvisual:

0 commit comments

Comments
 (0)