homebridge-garage-control
v1.2.0
Published
Homebridge plugin for a simple web-based garage
Maintainers
Readme
homebridge-garage-control
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.
Fork from homebridge-garage-remote-http-V2
The request Package has been replaced with axios.
Installation
- Install homebridge
- Install this plugin:
npm install -g homebridge-garage-control - Update your
config.json
Configuration
"platforms": [
{
"platform": "homebridge-garage-control",
"name": "Garage",
"openURL": "http://myurl.com/open",
"closeURL": "http://myurl.com/close",
"statusURL": "http://myurl.com/status",
"openTime": 30,
"closeTime": 30,
"autoLock": true,
"autoLockDelay": 30,
"switchOff": true,
"switchOffDelay": 10,
"openStatusValues": "0,2,open,offen",
"closedStatusValues": "1,3,closed,geschlossen"
}
]Core
| Key | Description | Default |
| --- | --- | --- |
| platform | Must be homebridge-garage-control | N/A |
| name | Name to appear in the Home app | N/A |
| openURL | URL to trigger the opening of your garage | N/A |
| closeURL | URL to trigger the closing of your garage | N/A |
Optional fields
| Key | Description | Default |
| --- | --- | --- |
| openTime | Time (in seconds) to simulate your garage opening | 10 |
| closeTime | Time (in seconds) to simulate your garage closing | 10 |
| autoLock | Whether your garage should auto-close after being opened | false |
| autoLockDelay | Time (in seconds) until your garage will automatically close (if enabled) | 20 |
| switchOff | Closes the garage immediately without animation. For IR remote control use. | false |
| switchOffDelay | Time (in seconds) until your garage will automatically close without animation (if enabled) | 2 |
| polling | Whether the state should be polled at intervals | false |
| pollInterval | Time (in seconds) between device polls (if polling is enabled) | 120 |
| statusURL | URL to retrieve state on poll (for example 0, 1, open, offen, closed, geschlossen) | N/A |
| openStatusValues | Comma-separated values that indicate the garage is open (e.g. 0,2,open,offen) | 0,2,open,offen |
| closedStatusValues | Comma-separated values that indicate the garage is closed (e.g. 1,3,closed,geschlossen) | 1,3,closed,geschlossen |
Additional options
| Key | Description | Default |
| --- | --- | --- |
| timeout | Time (in milliseconds) until the accessory will be marked as Not Responding if it is unreachable | 3000 |
| http_method | HTTP method used to communicate with the device | GET |
| username | Username if HTTP authentication is enabled | N/A |
| password | Password if HTTP authentication is enabled | N/A |
| model | Appears under the Model field for the accessory | plugin |
| serial | Appears under the Serial field for the accessory | version |
| manufacturer | Appears under the Manufacturer field for the accessory | author |
| firmware | Appears under the Firmware field for the accessory | version |
State key
| State | Description |
| --- | --- |
| 0 | Open |
| 1 | Closed |
| 2 | Opening |
| 3 | Closing |
| 4 | UNKNOW |
