npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

homebridge-myairthings

v1.1.2

Published

Homebridge platform for Airthings monitors: one air-quality accessory per device, HomeKit services for what Apple Home shows, and the rest of the readings for Eve

Readme

homebridge-myairthings

Tests npm version npm downloads Node.js Homebridge License

Airthings monitors in Apple Home, with the rest of the readings in Eve. One client, one platform. Every monitor on the account becomes one air-quality accessory. When a radon value is present, the tile says Good, Fair, or Poor from that radon. A missing radon value stays Unknown until a sample includes it.

Features

  • One accessory per monitor. The serial number is the identity, so a rename keeps the room and the automations.
  • The same tile for View Plus and View Radon. Radon sets the air-quality value. CO₂, particles, and VOC are their own rows.
  • Apple Home shows what it understands. Temperature, humidity, carbon dioxide, PM2.5, VOC density, and light, and only when that monitor has the sensor. Battery appears once a sample includes a percentage, and then stays.
  • Eve shows the rest. Radon in Bq/m³ (short and long), air pressure, and VOC in ppb. PM1, mold risk, and sound are on the accessory for apps that list every characteristic. Eve has no characteristic for those three.
  • The sensor list comes from each device. The account's device list includes the readings that monitor can produce, and the accessory is built from that list.
  • It keeps polling when Airthings stops answering. After three polls that cannot reach Airthings, the sensors go inactive and keep the last numbers. The next poll is still the normal interval.
  • PagerDuty (optional, off by default): page when Airthings rejects the client (auth-failed), when Homebridge has not reached Airthings for three polls (cloud-offline), or when one monitor's reading is stale while the account answers (stale.<serial>). Needs Node 22.13 or later. See PagerDuty
  • No analytics and no runtime dependencies. The only network destination is Airthings.

The detailed documentation describes every service and setting. The consumer API is summarised in docs/API.md.

Quick Start

1. Install

Homebridge UI (recommended): Plugins → Search homebridge-myairthings → Install

npm install -g homebridge-myairthings

2. Create an API client

Sign in at the Airthings consumer dashboard and create a client. Copy the client id and the client secret.

3. Configure

Homebridge UI (recommended): open the plugin settings and enter the client id and client secret.

Or in config.json:

{
  "platforms": [
    {
      "platform": "MyAirthings",
      "name": "My Airthings",
      "clientId": "00000000-0000-0000-0000-000000000001",
      "clientSecret": "00000000-0000-0000-0000-000000000002"
    }
  ]
}

AIRTHINGS_CLIENT_ID and AIRTHINGS_CLIENT_SECRET override the values in config.json when they are set. The configuration reference lists every option.

4. Restart Homebridge

Each monitor appears in the Home app after the first poll. A View Plus shows carbon dioxide, PM2.5, and VOC along with radon. A View Radon shows temperature, humidity, and radon. Both tiles follow radon.

What the tile means

Airthings publishes three bands for radon: under 100 Bq/m³ is good, 100 up to 150 is fair, 150 and above is poor. That is the word on the tile. Humidity is its own reading.

A monitor with no radon sensor, such as a Wave Mini, uses the worst of the pollutants it does have.

Not Working?

  1. no client credentials set; My Airthings is not started. Add the client id and client secret in the plugin settings, or set AIRTHINGS_CLIENT_ID and AIRTHINGS_CLIENT_SECRET, and restart Homebridge.
  2. platform disabled; cached accessories kept. The configuration could not be used. The lines above that one say why. Cached monitors stay in their rooms and show No Response until the config is fixed.
  3. Airthings rejected the client credentials. The client id or secret was refused. Create a new client in the Airthings dashboard if the secret was rotated, then restart.
  4. Airthings is unreachable. The plugin could not reach Airthings. It keeps polling at the interval. After three of those polls the sensors go inactive and keep the last numbers.
  5. Airthings rate limit reached. The hourly budget was spent. The plugin waits and continues on its own.

The full troubleshooting list covers stale readings, a monitor that left the account, and paging.

Security

The client id and client secret are stored in the Homebridge configuration file, like every Homebridge credential. Anyone who can read that file can read the monitors on the account. The plugin sends the secret only to Airthings, and never writes it to the log. SECURITY.md has the detail.

Requirements

  • Homebridge 2.x
  • Node.js 22.13 or later on 22, or Node.js 24 or 26
  • An Airthings account with a consumer API client
  • A working internet connection

More Info

Trademarks

homebridge-myairthings is an independent project. It is not affiliated with or endorsed by Airthings or Eve Systems. Airthings is a trademark of Airthings AS. Eve is a trademark of Eve Systems GmbH.

License

Copyright 2026 tbaur

Licensed under the Apache License, Version 2.0. See LICENSE file for details.