1.1.5 • Published 4 years ago

homebridge-http-lock-plus v1.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

homebridge-http-lock-plus

npm npm

Description

This homebridge plugin exposes a web-based locking device to Apple's HomeKit. Using simple HTTP requests, the plugin allows you to lock/unlock the device.

Installation

  1. Install homebridge
  2. Install this plugin: npm install -g homebridge-http-lock-plus
  3. Update your config.json file

Configuration

"accessories": [
     {
       "accessory": "HTTPLock",
       "name": "Lock",
       "openURL": "http://myurl.com/open",
       "closeURL": "http://myurl.com/close"
     }
]

Core

KeyDescriptionDefault
accessoryMust be HTTPLockN/A
nameName to appear in the Home appN/A
openURLURL to trigger unlockN/A
closeURLURL to trigger lockN/A

Optional fields

KeyDescriptionDefault
autoLock (optional)Whether your lock should re-lock after being openedfalse
autoLockDelay (optional)Time (in seconds) until your lock will auto lock if enabled10

Additional options

KeyDescriptionDefault
timeout (optional)Time (in milliseconds) until the accessory will be marked as Not Responding if it is unreachable3000
http_method (optional)HTTP method used to communicate with the deviceGET
username (optional)Username if HTTP authentication is enabledN/A
password (optional)Password if HTTP authentication is enabledN/A
model (optional)Appears under the Model field for the accessoryplugin
serial (optional)Appears under the Serial field for the accessoryversion
manufacturer (optional)Appears under the Manufacturer field for the accessoryauthor
firmware (optional)Appears under the Firmware field for the accessoryversion
1.1.5

4 years ago

1.1.4

4 years ago