1.0.3 • Published 2 years ago

homebridge-http-door-ultimate v1.0.3

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

homebridge-http-door-ultimate

npm npm

Warning!

This plugin is still a work in progress and may not be fully functional, use at your own risk.

Description

This plugin is a fork of TheRealSimonMlr's homebridge-http-lock-ultimate.

This homebridge plugin exposes a web-based door device to Apple's HomeKit. Using simple HTTP requests with post, body and header support, the plugin allows you to open/close the device.

Installation

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

Configuration examples

Configuration example for a device controlled via Get Requests in local network. Resets it's state to closed automatically after 60 Seconds

"accessories": [
     {
      "accessory": "HTTPDoorUltimate",
      "name": "Gate",
      "resetDoor": "true",
      "resetDoorTime": "60",
      "http_method": "GET",
      "openURL": "http://192.168.X.XX/open",
      "closeURL": "http://192.168.X.XX/close"
      }
]

Core

KeyDescriptionDefault
accessoryMust be HTTPDoorUltimateN/A
nameName to appear in the Home appN/A
openURLURL to trigger openN/A
closeURLURL to trigger closeN/A

Optional fields

KeyDescriptionDefault
autoClose (optional)Whether your door should close after being opened (closeURL Request gets triggered)false
autoCloseDelay (optional)Time (in seconds) until your door will auto close if enabled60
resetDoor (optional)If your door is closing itself after opened, use this option to reset the state automatically (Will not call closeURL and is ignored when using autoClose)false
resetDoorTime (optional)Time (in seconds) until your door will be set to closed60

Additional options

KeyDescriptionDefault
timeout (optional)Time (in seconds) until the accessory will be marked as Not Responding if it is unreachable5
http_method (optional)HTTP method used to communicate with the deviceGET
openHeaderRequest Header to send in open requestN/A
openBodyJSON Body to send on openN/A
closeHeaderRequest Header to send in close requestN/A
closeBodyJSON Body to send on closeN/A
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.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago