added config.schema.json

This commit is contained in:
oznu 2018-04-17 23:23:48 +10:00
parent 29c88566b1
commit eadb8c559b
No known key found for this signature in database
GPG Key ID: 6FF2AA33FF323F1B
2 changed files with 60 additions and 1 deletions

59
config.schema.json Normal file
View File

@ -0,0 +1,59 @@
{
"pluginAlias": "UniFi Occupancy Sensor",
"pluginType": "accessory",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"default": "Occupancy Sensor",
"minLength": 1
},
"unifi": {
"title": "UniFi Controller Settings",
"type": "object",
"properties": {
"controller": {
"title": "Controller URL",
"type": "string",
"required": true
},
"username": {
"title": "Username",
"type": "string",
"required": true
},
"password": {
"title": "Password",
"type": "string",
"required": true
},
"site": {
"title": "Site",
"type": "string",
"default": "default",
"required": true
},
"secure": {
"title": "Validate the Controller SSL Certificate?",
"type": "boolean"
}
}
},
"watch": {
"title": "Watched Devices",
"type": "array",
"items": {
"title": "MAC Address",
"type": "string",
"pattern": "^([a-f0-9]{2}:){5}[a-f0-9]{2}$"
}
},
"watchGuests": {
"title": "Watch Guest Networks?",
"type": "boolean"
}
}
}
}

View File

@ -1,6 +1,6 @@
{
"name": "homebridge-unifi-occupancy-sensor",
"version": "0.0.10",
"version": "0.0.11",
"description": "An occupancy sensor for Homebridge and UniFi",
"main": "index.js",
"dependencies": {