We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
To configure homebridge with pyswitcherv2, assuming it is installed in /opt/pyswitcherv2, you will need to:
Install homebridge-cmdswitch2 node module. Add cmdswitch2 platform into homebridge config.json, with corresponding switcherv2 configuration. Restart homebridge.
sudo npm install -g homebridge-cmdswitch2
Configure config.json
config.json
{ "platform": "cmdSwitch2", "name": "CMD Switch 2", "switches": [ { "name": "Switcher v2", "on_cmd": "python /opt/pyswitcherv2/pyswitcherv2/switcher.py -m on", "off_cmd": "python /opt/pyswitcherv2/pyswitcherv2/switcher.py -m off", "state_cmd": "python /opt/pyswitcherv2/pyswitcherv2/switcher.py -m get_state | grep -i 'Device is: on'" } ] }