1.0.1 • Published 6 years ago
Share package homebridge-garage-remote-http
Description This homebridge plugin exposes a web-based garage opener to Apple's HomeKit . Using simple HTTP requests, the plugin allows you to open/close the garage.
Installation Install homebridge Install this plugin: npm install -g homebridge-garage-remote-http Update your config.json Configuration "accessories": [
{
"accessory": "GarageDoorOpener",
"name": "Garage",
"openURL": "http://myurl.com/open",
"closeURL": "http://myurl.com/close",
"openTime": "30",
"closeTime": "30",
"autoLock": "true",
"autoLockDelay": "30",
"switchOff": "true",
"switchOffDelay": "5"
}
]Core Key Description Default accessoryMust be GarageDoorOpener N/A nameName to appear in the Home app N/A openURLURL to trigger the opening of your garage N/A closeURLURL to trigger the closing of your garage N/A
Optional fields Key Description Default openTimeTime (in seconds) to simulate your garage opening 10closeTimeTime (in seconds) to simulate your garage closing 10autoLockWhether your garage should auto-close after being opened falseautoLockDelayTime (in seconds) until your garage will automatically close (if enabled) 20switchOffCloses the garage immediately without animation. For IR remote control use. falseswitchOffDelayTime (in seconds) until your garage will automatically close without animation (if enabled) 2pollingWhether the state should be polled at intervals falsepollIntervalTime (in seconds) between device polls (if polling is enabled) 120statusURLURL to retrieve state on poll (should return 0 or 1) N/A
Additional options Key Description Default timeoutTime (in milliseconds) until the accessory will be marked as Not Responding if it is unreachable 3000http_methodHTTP method used to communicate with the device GETusernameUsername if HTTP authentication is enabled N/A passwordPassword if HTTP authentication is enabled N/A modelAppears under the Model field for the accessory plugin serialAppears under the Serial field for the accessory version manufacturerAppears under the Manufacturer field for the accessory author firmwareAppears under the Firmware field for the accessory version
State key State Description 0Open 1Closed