homebridge-mcu-ismartswitch
v1.0.36
Published
Control relay attached to NodeMCU v.1.0 on HomeBridge Platform. NodeMCU is runnig a WebServer to expose RESTful API call. API expose following method.
Downloads
54
Maintainers
Readme
Plugin for NodeMCU
Control relay attached to NodeMCU v.1.0 on HomeBridge Platform. NodeMCU is runnig a WebServer to expose RESTful API call. API expose following method.
- Get (Gets state of Switch)
- Post (Sets state of Switch)
Installation
- Install homebridge using: npm install -g homebridge
- Install this plugin using: npm install -g homebridge-mcu-ismartswitch
- Update your configuration file. See sample-config.json in this repository for a sample.
Configuration
"accessories": [
{
"accessory": "ismartswitch",
"name": "Bedroom Switch",
"getUrl": "http://IP-Address/status",
"postUrl": "http://IP-Address/relay"
}
]