-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: configuration via homebridge UI
- Loading branch information
Showing
4 changed files
with
59 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"pluginAlias": "ElectromagneticLock", | ||
"pluginType": "accessory", | ||
"singular": false, | ||
"headerDisplay": "Homebridge plugin to control electromagnetic lock via Raspberry Pi GPIO pins connected to relay.", | ||
"schema": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"title": "Name", | ||
"type": "string", | ||
"required": true, | ||
"description": "accessory name, e.g. Lock" | ||
}, | ||
"lockPin": { | ||
"title": "Lock GPIO pin", | ||
"type": "integer", | ||
"required": true, | ||
"description": "pin for unlocking lock (use gpio numbering, not physical)" | ||
}, | ||
"doorPin": { | ||
"title": "Door contact sensor GPIO pin", | ||
"type": "integer", | ||
"description": "door contact sensor, ignored when lockWithMemory is set to false" | ||
}, | ||
"activeLow": { | ||
"title": "Relay activated by low state?", | ||
"type": "boolean", | ||
"default": true, | ||
"description": "true: relay activated by low state (0), false: relay activated by high state (1), affects lockPin, default: true" | ||
}, | ||
"reedSwitchActiveLow": { | ||
"title": "Contact sensor relay activated by low state?", | ||
"type": "boolean", | ||
"default": true, | ||
"description": "true: reed switch activated by low state (0), false: reed switch activated by high state (1), affects doorPin, default: true" | ||
}, | ||
"unlockingDuration": { | ||
"title": "Unlocking duration (seconds)", | ||
"type": "integer", | ||
"default": 2, | ||
"description": "how long lockPin should be active (seconds), default: 2" | ||
}, | ||
"lockWithMemory": { | ||
"title": "Lock with memory?", | ||
"type": "boolean", | ||
"default": true, | ||
"description": "true: electromagnetic lock that stays unlocked until full door cycle, false: stays unlocked only for unlockingDuration seconds, default: true" | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "homebridge-gpio-electromagnetic-lock", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Homebridge plugin to control electromagnetic lock via Raspberry Pi GPIO pins", | ||
"license": "MIT", | ||
"keywords": [ | ||
|
@@ -15,7 +15,7 @@ | |
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/rsporny/homebridge-gpio-electromagnetic-lock" | ||
"url": "https://github.com/pandaunit/homebridge-gpio-electromagnetic-lock" | ||
}, | ||
"dependencies": { | ||
"rpio": "^2.2.0", | ||
|
@@ -27,7 +27,7 @@ | |
}, | ||
"maintainers": [ | ||
{ | ||
"name": "rsporny", | ||
"name": "pandaunit", | ||
"email": "[email protected]" | ||
} | ||
] | ||
|