diff --git a/CHANGELOG.md b/CHANGELOG.md index e64a290..5cbae4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## 1.0.6 + +- [NEW] Supports config UI X configuration interface. + ## 1.0.5 - [FIX] fixed some logs diff --git a/config.schema.json b/config.schema.json new file mode 100644 index 0000000..41198ea --- /dev/null +++ b/config.schema.json @@ -0,0 +1,56 @@ +{ + "pluginAlias": "GogoGate2", + "pluginType": "platform", + "singular": false, + "headerDisplay": "This plugin is provided by [nicoduj](https://github.com/nicoduj/)", + "footerDisplay": "Support via [paypal](https://www.paypal.me/nicoduj/2.50).", + "schema": { + "type": "object", + "required": ["name","gogogateIP","username","password"], + "properties": { + "name": { + "title": "Name", + "type": "string" + }, + "gogogateIP": { + "title": "IP Address of your gogogate (must be fixed)", + "type": "string", + "format": "ipv4" + }, + "username": { + "title": "Gogogate account login", + "type": "string" + }, + "password": { + "title": "Gogogate account password", + "type": "string" + }, + "refreshTimer": { + "title": "Refresh timer", + "type": "integer", + "default" : 0, + "minimum": 30, + "maximum": 600, + "description" : "Enable refresh of doors state every X seconds, for automation purpose if you need to activate something else based on a state change of a door by another means than homekit. Be aware it might make you gogoggate smokes since the plugin will ask its status very often :)" + }, + "maxWaitTimeForOperation": { + "title": "Maximum wait time during operation", + "type": "integer", + "default": 30, + "minimum": 30, + "maximum": 90, + "description" : "Set the maximum time that we wait for door operation to complete. When elapsed, check the current State again and updates accordingly." + }, + "refreshTimerDuringOperation": { + "title": "Refresh timer during operation", + "type": "integer", + "default": 10, + "minimum": 2, + "maximum": 15, + "description": "Set the refresh timer during operation in progress to detect the end of the operation." + } + } + }, + "form": null, + "display": null + } diff --git a/package.json b/package.json index 971d325..25fabde 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-gogogate2", - "version": "1.0.5", + "version": "1.0.6", "author": "Nicolas Dujardin", "description": "Publish your gogogate 2 to homebridge", "main": "index.js", @@ -23,7 +23,7 @@ "homekit" ], "dependencies": { - "cheerio": "^1.0.0-rc.2", + "cheerio": "^1.0.0-rc.3", "request": "^2.65.0" }, "bugs": { @@ -33,7 +33,7 @@ "devDependencies": { "husky": "^3.0.3", "prettier": "1.18.2", - "pretty-quick": "^1.8.0" + "pretty-quick": "^1.11.1" }, "prettier": { "bracketSpacing": false,