0.0.10 • Published 4 years ago

homebridge-windowshades-command v0.0.10

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

homebridge-windowshades-command

mit license npm npm npm

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

Installation

  1. Install Homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g homebridge-windowshades-command
  3. Update your configuration file. See the sample below.

Configuration

Configuration sample:

"accessories": [
  {
    "accessory": "WindowShadesCommand",
    "name": "Window Shades",
    "open": "./open.sh",
    "close": "./close.sh",
    "state": "./check_state.sh",
    "status_update_delay": 15,
    "poll_state_delay": 20,
    "ignore_errors": false,
    "log_polling": false
  }
]

Explanation:

FieldDescription
accessoryMust always be "GarageCommand" (required)
nameName of the Window Shades (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 shades in opening or closing state (defaults to 15 seconds)
poll_state_delayTime between polling for the window shades state (leave blank 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.

FAQ

Can I have multiple window shades?

Yes! but this is a feature of homebridge, not the plugin. Add another accessory block with a different name than your other window shades.
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. If there is a feature you want to add, please feel free to code it yourself and submit a pull request so others can benefit.

What is the STOPPED status?

STOPPED is a valid status for a shades to be in, but in the Home App, it is actually reported as OPEN. 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.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago