Skip to content
Homebridge TestFlight
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 HomebridgeNo
Homebridge versions^1.8.0 || ^2.0.0
Homebridge 2.0Yes
Node.js^22.13.0 || ^24.0.0
Settings in Homebridge UIYes
MatterNo
Platform nameScript2Platform
LicenseMIT

Community signals

Downloads a week145
Downloads a month145
GitHub stars0
Open issues0
Closed issues0
Last code push2026-10-19
Latest version1.3.0 (2026-10-19)
First published2026-10-18
Releases4

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