SANdood / PurpleAirStation

PurpleAir Air Quality Station for SmartThings & Hubitat
13 stars 19 forks source link

PurpleAirStation

PurpleAir Air Quality Station for Hubitat and SmartThings

Provides continuously updated Air Quality Index based on the PM2.5 data supplied by a Purple Air air quality sensor (see www.purpleair.com for more information).

Simple Setup

To use this Air Quality Station in SmartThings, you will need to:

  1. Create a new SmartThings device handler or Hubitat Driverusing the supplied source code
    • This version auto-detects the host platform, so no further editing is required.
  2. Create the actual device:
    • SmartThings: log into the IDE, select your Location, select Devices and then select Create New Device
    • Hubitat: Simply create a new Driver from the main menu
  3. Specify your preference for update frequency
  4. Specify the desired PurpleAir Station ID you want to monitor

To find a specific Station,

  1. Use the PurpleAir Map to locate a station (https://www.purpleair.com/map)
  2. Open this URL in a new Window or Tab: (https://www.purpleair.com/json)
  3. Search for the NAME of the station you found in step A
  4. The Station ID is the first element in the results[:] map - you will enter this ID (1-5 digit number) into the preferences for the Air Quality Station

That's it - save, and you should be up and running!

Change Log

Donations

As always, my contributions to the SmartThings community are entirely free, but should you feel compelled to make a donation, you can do so here: https://paypal.me/BarryABurke

Screen Shot: