Skip to content

chris-calo/homebridge-script

 
 

Repository files navigation

homebridge-script

Run custom script on the HomeBridge platform.

Installation

  1. Install homebridge using: sudo npm install -g homebridge
  2. Install module: sudo npm install -g file-exists
  3. Install this plugin using: sudo npm install -g homebridge-script
  4. Update your configuration file. See sample-config.json in this repository for a sample.
  5. Copy scripts (*.sh) files to own directory.

For autostart homebridge with OSX copy com.homebridge.startup.plist to /Library/LaunchDaemons

Configuration

Configuration sample:

"accessories": [
	{
              "accessory": "Script",
              "name": "Alarm of bike",
              "on": "~/on.sh",
              "off": "~/off.sh",
              "state": "~/state.sh",
              "fileState": "/Users/olegmalovichko/script.flag",
              "on_value" : "true",
              "exact_match": true
              }
	}
]

homekit homebridge

About

Run custom script on HomeKit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.7%
  • Shell 4.3%