0.2.0 • Published 10 years ago

homebridge-cmdswitch v0.2.0

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

homebridge-cmdswitch (Deprecated) npm version

CMD Plugin for HomeBridge (API 1.0)

Newer verion using API 2.0: homebridge-cmdswitch2

It is strongly advised that you switch to the newer version. No new development will be done on this version.

Installation

  1. Install homebridge using npm install -g homebridge.
  2. Install this plugin using npm install -g homebridge-cmdswitch.
  3. Update your configuration file. See configuration sample below.

Configuration

Edit your config.json accordingly. Configuration sample:

"accessories": [{
   "accessory": "cmdSwitch",
   "name" : "HTPC",
   "on_cmd": "wol XX:XX:XX:XX:XX:XX",
   "off_cmd": "net rpc shutdown -I XXX.XXX.XXX.XXX -U user%password",
   "state_cmd": "ping -c 2 -W 1 XXX.XXX.XXX.XXX | grep -i '2 received'",
}, {
   "accessory": "cmdSwitch",
   "name" : "Playstation 4",
   "on_cmd": "ps4-waker",
   "off_cmd": "ps4-waker standby",
   "state_cmd": "ps4-waker search | grep -i '200Ok'",
   "manufacturer": "Sony Corporation",
   "model": "CUH-1001A",
   "serial": "XXXXXXXXXXX"
}]
FieldsDescriptionRequired
accessoryMust always be cmdSwitch.Yes
nameThe name of your device.Yes
on_cmdThe command to turn on your device.No
off_cmdThe command to turn off your device.No
state_cmdThe command to detect an ON state of your device.No
manufacturerThe manufacturer of your device.No
modelThe model of your device.No
serialThe serial number of your device.No
0.2.0

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago