Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tillkruss/homebridge-purpleair
A Homebridge plugin to connect PurpleAir sensors.
https://github.com/tillkruss/homebridge-purpleair
homebridge-plugin purpleair
Last synced: 16 days ago
JSON representation
A Homebridge plugin to connect PurpleAir sensors.
- Host: GitHub
- URL: https://github.com/tillkruss/homebridge-purpleair
- Owner: tillkruss
- License: apache-2.0
- Created: 2023-08-21T03:34:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-01T21:59:03.000Z (3 months ago)
- Last Synced: 2024-10-10T00:43:03.971Z (about 1 month ago)
- Topics: homebridge-plugin, purpleair
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/homebridge-purpleair
- Size: 114 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Homebridge PurpleAir Plugin
[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
[![github](https://img.shields.io/github/actions/workflow/status/tillkruss/homebridge-purpleair/build.yml)](https://github.com/tillkruss/homebridge-purpleair/actions)
[![npm](https://img.shields.io/npm/v/homebridge-purpleair)](https://www.npmjs.com/package/homebridge-purpleair)A Homebridge plugin to connect [PurpleAir](https://purpleair.com/) sensors.
- Exposes humidity, temperature and VOC readings
- Supports updated _US EPA PM2.5 AQI_ conversion
- Increased accuracy with _Dual Laser_ readings
- Can report AQI instead of PM2.5 Density
- Detects sensor firmware and model
- Works with multiple and private sensorsThis plugin **only supports local sensors**, if you want to use PurpleAir's paid API use Jacek Suliga's excellent [Homebridge PurpleAir Sensor](https://github.com/jmkk/homebridge-purpleair-sensor) plugin.
## Installation
Search for `homebridge-purpleair` in Homebridge UI, or install it via CLI:
```shell
$ sudo npm install -g --unsafe-perm homebridge-purpleair
```## Configuration
You may configure this plugin using Homebridge UI, or by editing your `config.json`:
```json
{
"bridge": {},
"accessories": [],
"platforms": [
{
"platform": "PurpleAir",
"conversion": "US_EPA",
"aqiInsteadOfDensity": true,
"sensors": [
{ "ip": "192.168.0.42" },
{ "ip": "192.168.0.47", "name": "PurpleAir Garage" }
]
}
]
}
```| Option | Type | Default | Description |
| --------------------- | --------- | -------- | ----------- |
| `conversion` | `string` | `US_EPA` | The data correction used to determine the air quality index (AQI). |
| `aqiInsteadOfDensity` | `boolean` | `false` | _(Optional)_ HomeKit doesn't expose the air quality index (AQI). If enabled, the plugin will report the AQI in the "PM2.5 Density (µg/m³)" field. |
| `sensors` | `array ` | `[]` | An array containing the PurpleAir sensors. |
| `sensors[].ip` | `string` | | The IP address of the sensor on the local network. |
| `sensors[].name` | `string` | | _(Optional)_ The name of the sensor. Useful to distinguish multiple sensors. |## Conversions
### US EPA
Courtesy of the United States Environmental Protection Agency Office of Research and Development, correction equation from their [US wide study](https://cfpub.epa.gov/si/si_public_record_report.cfm?dirEntryId=353088&Lab=CEMM) (updated version from October 22 2021) as applied on the AirNow Fire and Smoke Map.