# homebridge-withings-air-quality

> Homebridge plugin to expose air quality data from the Withings WS-50 Smart Body Analyzer

Latest version **0.1.4** (published 2021-06-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install homebridge-withings-air-quality
pnpm add homebridge-withings-air-quality
yarn add homebridge-withings-air-quality
bun add homebridge-withings-air-quality
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2021-06-22 |
| First published | 2019-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 1 |
| Unpacked size | 22.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Dhaya |
| Maintainers | dhaya |
| Keywords | homebridge-plugin, withings, smart body analyzer, ws-50, air quality, carbon dioxide, temperature, homekit |

## Links

- npm: https://www.npmjs.com/package/homebridge-withings-air-quality
- Repository: https://github.com/dhayab/homebridge-withings-air-quality
- Issues: https://github.com/dhayab/homebridge-withings-air-quality/issues
- npm.io page: https://npm.io/package/homebridge-withings-air-quality

## Dependencies (1)

- [superagent](https://npm.io/package/superagent.md) 5.1.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2021-06-22
- 0.1.3 — 2020-02-20
- 0.1.2 — 2020-01-24
- 0.1.1 — 2019-10-12
- 0.1.0 — 2019-10-12
- 0.0.3 — 2019-10-12
- 0.0.2 — 2019-10-10
- 0.0.1 — 2019-10-10

## README

> ℹ️ Please note that his plugin is not actively maintained anymore.

# homebridge-withings-air-quality

This plugin retrieves carbon dioxide and temperature levels from a Withings Smart Body Analyzer smart scale and exposes them as HomeKit sensors with [Homebridge](https://github.com/nfarina/homebridge).

## Installation

The plugin can be installed using the command line

```bash
$ npm install -g homebridge-withings-air-quality
```

or by searching **homebridge-withings-air-quality** in the Plugins page of a [Homebridge Config UI](https://github.com/oznu/homebridge-config-ui-x) dashboard.

## Configuration

The Withings Smart Body Analyzer cannot be accessed directly, so the plugin will require [my.withings.com](https://my.withings.com) email address and password in order to fetch the air quality data online.

The plugin also requires the MAC address of the smart scale. It can be found where the batteries are located.

Here is a sample config (you can view [config.sample.json](./config.sample.json) for more details):

```js
{
  "accessories": [
    {
      "accessory": "Withings Air Quality",
      "name": "Bathroom scale",
      "email": "my.withings@email.com",
      "password": "myWithingsPassword",
      "mac": "0a:b2:c3:d4:e5:f6",
      "levels": [
        350,  // Excellent
        1000, // Good
        2500, // Fair
        5000  // Inferior
      ]
    }
  ]
}
```

The `levels` parameter is used to control the information displayed on the air quality sensor. The values are measured in ppm (parts per million). Carbon dioxide level higher than the value for "Inferior" will trigger a warning in HomeKit. For more information, [check out this page](https://support.withings.com/hc/en-us/articles/201489797-Smart-Body-Analyzer-WS-50-Frequently-asked-questions-about-air-quality-measurements).

---
_Source: https://npm.io/package/homebridge-withings-air-quality · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
