# homebridge-somfy-protect

> Control your Somfy Protect alarm from Apple HomeKit, with instant updates and triggered alarm notifications.

Latest version **1.4.0** (published 2026-11-28) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install homebridge-somfy-protect
pnpm add homebridge-somfy-protect
yarn add homebridge-somfy-protect
bun add homebridge-somfy-protect
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

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

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2026-11-28 |
| First published | 2020-11-19 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Maintainers | alxscms |
| Keywords | homebridge-plugin, homebridge, homekit, somfy, somfy protect, myfox, alarm, security system |

## Links

- npm: https://www.npmjs.com/package/homebridge-somfy-protect
- Repository: https://github.com/alxscms/homebridge-somfy-protect
- Homepage: https://github.com/alxscms/homebridge-somfy-protect#readme
- Issues: https://github.com/alxscms/homebridge-somfy-protect/issues
- Funding: https://ko-fi.com/alxscms
- npm.io page: https://npm.io/package/homebridge-somfy-protect

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.4.0 (latest) — 2026-11-28
- 1.3.1 — 2026-11-28
- 1.3.0 — 2026-11-28
- 1.2.0 — 2026-11-28
- 1.1.3 — 2026-11-28
- 1.1.2 — 2021-11-26
- 1.1.1 — 2021-11-26
- 1.1.0 — 2021-11-22
- 1.0.4 — 2020-11-23
- 1.0.3 — 2020-11-20
- 1.0.2 — 2020-11-20
- 1.0.1 — 2020-11-19
- 1.0.0 — 2020-11-19

## README

<p align="center">

<img src="https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png" width="150">

</p>

Unofficial [Homebridge](https://github.com/homebridge/homebridge) plugin to integrate the Somfy Protect home security system with HomeKit.

## Usage

Configure the plugin in your Homebridge `config.json` file or via the popular [Config UI X plugin](https://github.com/oznu/homebridge-config-ui-x) which I recommend for easiest usage.

Either install and configure the plugin using Config UI X or install it manually by running the following command:

```
npm install -g homebridge-somfy-protect
```

Then, add the following configuration to the `accessories` array in your Homebridge `config.json`.

```
{
  "accessory": "SomfyProtect",
  "name": "Somfy Protect",
  "username": "my.somfy@account.fr",
  "password": "my.somfy.account.password"
}
```

The credentials required in the configuration are the same ones you use in the official Somfy Protect app on your smartphone.

That's it! The plugin will automatically add your Somfy Protect alarm in your homekit accessories.

If your somfy account has multiple homes set up, you can specify which home the plugin should be using in the config by specifying the `siteId` attribute. You should see the list of available homes in the plugin logs (even if you have turned off logs). Your config should now look like this:

```
{
  "accessory": "SomfyProtect",
  "name": "Somfy Protect",
  "username": "my.somfy@account.fr",
  "password": "my.somfy.account.password",
  "siteId": "yoursiteid"
}
```

### Realtime events

The plugin listens to Somfy's realtime events, the same way the Somfy app does:

- arming and disarming from the Somfy app, a key fob or a keypad show up in HomeKit instantly
- during an intrusion or a panic alarm, HomeKit shows the security system as **triggered** (critical notification in the Home app), until the alarm ends or is disarmed

The plugin also keeps polling Somfy every 10 seconds as a fallback. Realtime events need Node.js 22 or newer: on older versions the plugin only polls. Set `"realtimeEvents": false` to turn them off.

### Panic switch (optional)

Set `"panicSwitch": true` to add a switch that triggers the alarm when turned on. It is meant for HomeKit automations, for example triggering the Somfy siren when a non-Somfy motion sensor detects movement.

```
{
  "accessory": "SomfyProtect",
  "name": "Somfy Protect",
  "username": "my.somfy@account.fr",
  "password": "my.somfy.account.password",
  "panicSwitch": true,
  "panicSwitchName": "Somfy Protect Panic",
  "panicMode": "alarm"
}
```

- `panicSwitchName` (optional): name of the switch in HomeKit, `<name> Panic` by default.
- `panicMode` (optional): `alarm` (default) sounds the siren, `silent` triggers the alarm without the siren.

To avoid false alarms, the switch only triggers the alarm while it is armed (away or night mode), and it turns itself off right away. Turning it off does not stop the alarm: disarm the security system to do that.

**Be careful:** HomeKit does not ask for confirmation before an automation, a scene or a voice command turns on a switch, and a triggered alarm may alert your monitoring service.

## Help & Support
Any feedback is welcome. For bugs, feature requests, open an issue here :)

## Dev

The plugin has no runtime dependency: it only uses Node built-ins (`fetch`).

- `npm test` runs the test suite against a local fake Somfy server (no real Somfy account needed)
- `npm run lint` and `npm run build` lint and compile the TypeScript sources
- `npm run watch` starts a Homebridge server when developing the plugin, using the config in `~/.homebridge`

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