1.0.0 • Published 8 years ago
homebridge-blindshub v1.0.0
homebridge-switchhub
User defined switches for http requests. Useful for lights, A/V systems, home automation, whatever
Blinds Hub
Define your blinds with whatever name you want to appear as the input title on Homekit controls. 
Then, the appropriate endpoint with pinUp and pinDown to call.
Complete http endpoints are constructed as host + '?' + pin.
Currently only built to support one http method per service, meaning, all endpoint calls will be either GET (default) or POST etc.
{
    "accessory": "BlindsHub",
    "name": "My BlindsHub",
    "host": "http://192.168.0.10X:8080",   // don't forget to specify a port, if necessary
    "blinds": [
       { "name" : "Living Room"  , "pinUp" : 11, "pinDown" : 12, "motionTime": 50 },
       { "name" : "Bathroom"     , "pinUp" : 13, "pinDown" : 14, "motionTime": 50 },
       { "name" : "Bedroom"      , "pinUp" : 15, "pinDown" : 16, "motionTime": 50 },
       { "name" : "Garden"       , "pinUp" : 17, "pinDown" : 18, "motionTime": 50 },
       { "name" : "Hall"         , "pinUp" : 19, "pinDown" : 20, "motionTime": 50 }
    ]
}Configuration Params
| Parameter | Description | Required | 
|---|---|---|
name | name of the accessory | ✓ | 
host | url for whatever is receiving these requests | ✓ | 
blinds | list of inputs - name and pin | ✓ | 
http_method | GET (default), POST,  PUT, DELETE | |
username | username for request | |
password | password for request | |
send_immediately | option for request | |
manufacturer | will show in Home app description of this Homekit accessory, ex. 'LG' | |
model | will show in Home app description of this Homekit accessory, ex. 'HD 2000' | 
Debug logging
Running homebridge manually will allow you to see the BlindsHub console logs.
Tips
- Run Homebridge on startup and have it restart if crashed,
 - Make sure specify a port in the if necessary. (i.e. 
"base_url" : "http://192.168.0.XXX:2000") - Must prepend 'http://' to your host
 - Verify the correct 
http_methodis begin used. SwitchHub defaults toGET 
Installation
- Install homebridge using: 
npm install -g homebridge - Install homebridge-http using: 
npm install -g homebridge-blindshub - Update your config file
 
1.0.0
8 years ago