A simple http switch plugin for homebridge, inspired by homebridge-http and homebridge-http-simple-switch!
(Login as root with sudo su
)
git clone [email protected]:phpfs/homebridge-http-switch.git
cd homebridge-http-switch
npm install -g
"accessories": [
{
"accessory": "HTTPSwitch",
"name": "MySwitch",
"toggle_url": "http://138.372.37.23/2673/change",
"status_url": "http://138.372.37.23/2673/status"
}
],
This Plugin expects from both toggle_url and status_url the following response: 0 for Off and 1 for On