This is a Homebridge accessory plugin for monitoring air quality in Apple HomeKit. It creates virtual HomeKitair quality sensors based on real PurpleAir sensors. Once setup, you can also configure home automationbased on air quality changes.
This project was inspired by SANdood's homebridge-purpleair,but with a few changes:
The easiest way to install is through homebridge-config-ui-x UI.Search for homebridge-purpleair-sensor
and just click install. Once done, configure it using the UI, and restart homebridge.
If you want to install manually via the command line, run the following:
sudo npm install -g --unsafe-perm homebridge-purpleair-sensor
sudo service homebridge restart # replace this with the command you need to restart homebridge
You can configure this plugin using homebridge-config-ui-x UI.
If you want to configure manually by editing config.json file, add one entry per sensor you want to add to HomeKitto the accessories
section. As an example:
"accessories": [
{
"accessory": "PurpleAirSensor",
"sensor": "12345",
"name": "PurpleAir Indoor Sensor",
"conversion": "None",
"averages": "realtime"
},
{
"accessory": "PurpleAirSensor",
"sensor": "54321",
"name": "PurpleAir Outdoor Sensor",
"conversion": "None",
"averages": "10m"
}
],
You can set the following fields:
accessory
(required): must be PurpleAirSensor
sensor
(required): the sensor number. Find the sensor number by going to PurpleAir's map -> click on a sensor -> Look at the URL. It's the number right after 'select='.name
(required): name of the sensor.key
(optional): API key for private sensors.conversion
(optional): Conversions help accomodate different types of pollution with different particle densities. Supports the following values:
None
(default)AQandU
LRAPA
EPA
WOODSMOKE
averages
(optional, default realtime): sensor reading averages, only used with None
and AQandU
conversions. Supports the following values:
realtime
10m
: 10 Minute Average30m
: 30 Minute Average60m
: One Hour AverageaqiInsteadOfDensity
(optional, default false): if true, use the PM2.5 density field to report AQI instead.updateIntervalSecs
(optional, default 300): number of seconds the plugin will wait before updating the sensor value again.verboseLogging
(optional, default false): if true, log all information at info level so you can see through homebridge logs what the plugin is doing without running homebridge in debug mode.A few useful commands:
sudo npm run watch
# publish new version
npm login
sudo npm publish
Homebridge-purpleair Homebridge plugin that is showing information about air quality from PurpleAir API. Project is based on homebridge-weather, homebridge-arinow and the original homebridge-purpleair
Homebridge 是一个轻量级 NodeJS 服务器,它模拟 iOS HomeKit API,提供从 HomeKit 到“智能家居”设备制造商提供的各种第三方 API 的基本桥接。通过 Homebridge 的桥接,可以让 Siri 控制完全不支持 HomeKit 的设备。 此外 Homebridge 支持插件。
Homebridge Sensors for Plex This plugin for Homebridge adds sensor(s) to HomeKit that are triggered by Plex playbacks. You can use these sensors to trigger HomeKit scenes when Plex starts and stops pl
homebridge-ecobee3-sensors Homebridge plugin for exposing wireless temperature and occupancy sensors of your Ecobee 3 Thermostat as HomeKit accesories. The thermostat itself is a HomeKit accessory, bu
homebridge-flower-sensor Integrate Parrot Flower Power, the Parrot Pot or the never released Parrot H2O into HomeKit using homebridge. This plugin does not depend upon the now discontinued Parrot Clou
homebridge-vsx homebridge-vsx is a plugin made for homebridge,which allows switching on and off your Pioneer AV receiver. All AV receivers (VSX and SC),which work with the iControl AV5 App are support