Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 698 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 698 Bytes

homebridge-applescript

Supports triggering AppleScript commands on the HomeBridge platform.

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g homebridge-applescript
  3. Update your configuration file. See sample-config.json in this repository for a sample.

Configuration

Configuration sample:

"accessories": [
	{
		"accessory": "Applescript",
		"name": "Security Camera",
		"on": "tell application ''Evocam'' to open ''Security.evocamsettings''",
		"off": "quit application ''Evocam''"
	}
]

Note that two successive single-quotes ('') will be automatically converted to double-quotes.