New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

homebridge-purpleair

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-purpleair

A Homebridge plugin to connect PurpleAir sensors.

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

Homebridge PurpleAir Plugin

verified-by-homebridge github npm

A Homebridge plugin to connect PurpleAir 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 sensors

This plugin only supports local sensors, if you want to use PurpleAir's paid API use Jacek Suliga's excellent Homebridge PurpleAir Sensor plugin.

Installation

Search for homebridge-purpleair in Homebridge UI, or install it via CLI:

$ sudo npm install -g --unsafe-perm homebridge-purpleair

Configuration

You may configure this plugin using Homebridge UI, or by editing your config.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" }
            ]
        }
    ]
}
OptionTypeDefaultDescription
conversionstringUS_EPAThe data correction used to determine the air quality index (AQI).
aqiInsteadOfDensitybooleanfalse(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.
sensorsarray []An array containing the PurpleAir sensors.
sensors[].ipstringThe IP address of the sensor on the local network.
sensors[].namestring(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 (updated version from October 22 2021) as applied on the AirNow Fire and Smoke Map.

Keywords

homebridge-plugin

FAQs

Package last updated on 13 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts