To use, create a sensor device for each Purple sensor. Sensor must be a public shared sensor available on https://www.purpleair.com/map. Find your sensor on the map, then get the sensor ID from the URL:
- Code: Select all
https://www.purpleair.com/map?opt=1/mAQI/a10/cC0&select=63643#4.77/32.86/-93.2
Look for the number after the "select=" in the URL. In this case, it's 63643. Which is a random sensor in Texas I picked as an example.
Put that number in the Device Configuration dialog.
Currently, the plugin only uses data from the first detector channel for that sensor. Indoor sensors only have one channel. Outdoor sensors have two, but I'm ignoring the second. Suggestions on how to handle the second channel would be appreciated.
The sensor value is the AQI based on the EPA PM2.5 algorithm. All the other data (well, most of it) for the sensor channel is in the custom states, including temperature, humidity, and barometric pressure.