Supports triggering ssh commands on the HomeBridge platform.
npm install -g homebridge
npm install -g homebridge-ssh
sample-config.json
in this repository for a sample.Configuration sample:
"accessories": [
{
"accessory": "SSH",
"name": "iTunes Music",
"on": "osascript -e 'tell application \"iTunes\" to play'",
"off": "osascript -e 'tell application \"iTunes\" to stop'",
"state": "osascript -e 'tell application \"iTunes\" to get player state'",
"on_value" : "playing",
"exact_match": true,
"ssh": {
"user": "me",
"host": "mymac",
"port": 22,
"password": "password (or use key)",
"key": "path to private key file"
}
}
]