
Unofficial 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 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> Panicby default.panicMode(optional):alarm(default) sounds the siren,silenttriggers 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 testruns the test suite against a local fake Somfy server (no real Somfy account needed)npm run lintandnpm run buildlint and compile the TypeScript sourcesnpm run watchstarts a Homebridge server when developing the plugin, using the config in~/.homebridge