https://github.com/shoaibrashid/ismartswitch
A plugin written for HomeBridge
https://github.com/shoaibrashid/ismartswitch
homebridge-plugin iot nodemcu
Last synced: 9 months ago
JSON representation
A plugin written for HomeBridge
- Host: GitHub
- URL: https://github.com/shoaibrashid/ismartswitch
- Owner: shoaibrashid
- Created: 2017-10-01T00:48:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-07T21:28:39.000Z (over 8 years ago)
- Last Synced: 2025-02-24T20:04:05.378Z (over 1 year ago)
- Topics: homebridge-plugin, iot, nodemcu
- Language: JavaScript
- Size: 1.15 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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.
1. Get (Gets state of Switch)
2. Post (Sets state of Switch)
## Installation
1. Install homebridge using: npm install -g homebridge
2. Install this plugin using: npm install -g homebridge-mcu-ismartswitch
3. 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"
}
]
```