Utilities
Script2
@mattguk/homebridge-script2 · v1.3.0
LocalHomebridge 2.0
Adds HomeKit switches that run your own shell scripts or commands, with file or command based state.
What it says it supports
Devices it names
- Shell, Python, JavaScript scripts
- curl commands
- custom C/C++ executables
- Raspberry Pi relays
- SSH remote commands
Shows up in Apple Home as from its README
How it connects
Local
No external device; runs commands on the Homebridge host
Compatibility
| Verified by Homebridge | No |
|---|---|
| Homebridge versions | ^1.8.0 || ^2.0.0 |
| Homebridge 2.0 | Yes |
| Node.js | ^22.13.0 || ^24.0.0 |
| Settings in Homebridge UI | Yes |
| Matter | No |
| Platform name | Script2Platform |
| License | MIT |
Community signals
| Downloads a week | 145 |
|---|---|
| Downloads a month | 145 |
| GitHub stars | 0 |
| Open issues | 0 |
| Closed issues | 0 |
| Last code push | 2026-10-19 |
| Latest version | 1.3.0 (2026-10-19) |
| First published | 2026-10-18 |
| Releases | 4 |
In ReReHome
Whatever this plugin publishes reaches Apple Home as a normal HomeKit accessory behind your Homebridge bridge, so ReReHome shows and controls it like any other.
Bridges get their own settings page listing the accessories behind them.
Caveats from the README
- Scripts run as the Homebridge service user
- Fork of homebridge-script2; cannot be installed alongside it
HomeKit services in its code
Found by scanning the published npm package. A plugin can register a service only for some devices.
- Switch