0.8.4 • Published 3 years ago

homebridge-garagedoor-command v0.8.4

Weekly downloads
26
License
MIT
Repository
github
Last release
3 years ago

homebridge-garagedoor-command

mit license npm npm donate

Homebridge plugin to control a garage door using command line functions
It supports commands to check state, open, and close the garage door

Configuration

This easiest way to use this plugin is to use homebridge-config-ui-x.
To configure manually, add to the accessories section of Homebridge's config.json after installing the plugin as shown below:

"accessories": [
  {
    "accessory": "GarageCommand",
    "name": "Garage Door",
    "open": "./open.sh",
    "close": "./close.sh",
    "state": "./check_state.sh",
    "status_update_delay": 15,
    "poll_state_delay": 20,
    "ignore_errors": false,
    "log_polling": false
  }
]
FieldDescription
accessoryMust always be "GarageCommand" (required)
nameName of the Garage Door (required)
openopen command. Examples: ./open.sh or node open.js (required)
closeclose command. Examples: ./close.sh or node close.js (required)
statestate command. Examples: ./check_state.js or node state.js (required)
status_update_delayTime to have door in opening or closing state (defaults to 15 seconds)
poll_state_delayTime between polling for the garage door's state (leave blank or set to 0 to disable state polling)
ignore_errorsCauses the plugin to replace 'STOPPED' status with 'CLOSED' (defaults to false)
log_pollingWill log every single status check to the homebridge log (default to false)
  • The open, close, and state commands must return the following verbs: OPEN, CLOSED, OPENING, CLOSING, STOPPED.

Branding

The following config options can also be added manually or configured in homebridge-config-ui-x:

FieldDescription
manufacturerManufacturer to display instead of default 'Apexad'
modelModel to display instead of default 'Garage Commmand'
serialNumSerial Number to display instead of default '001'

FAQ

Can I have multiple garage doors?

Yes! but this is a feature of homebridge, not the plugin.
Add another accessory block with a different name than your other garage door.
If using homebridge-config-ui-x you can do this in the plugin settings.

Can you add 'x' feature?

Yes, I probably could. Will I? Probably not. It does not hurt to ask though but I will also gladly look at any PRs too.

What is the STOPPED status?

STOPPED is a valid status for a door to be in, but in the Home App, it is reported as OPEN (with a slightly different icon). If an error occures in getting the status, STOPPED should be returned, and it will be logged, but the plugin has the ignore_errors config option so that a false OPEN event won't be triggered. Be careful with ignore_errors as it can be somewhat dangerous to report an error as CLOSED.

0.8.4

3 years ago

0.8.1

3 years ago

0.8.3

3 years ago

0.8.2

3 years ago

0.8.0-beta.0

3 years ago

0.8.0

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.5.1

3 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

7 years ago