Skip to content

Commit

Permalink
Merge pull request #36 from cap10morgan/feature/config-schema
Browse files Browse the repository at this point in the history
Add config.schema.json for UI-X settings support
  • Loading branch information
mkormendy committed May 8, 2020
2 parents 4067eea + c52cd91 commit 270c507
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"pluginAlias": "Alarmdotcom",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Alarm.com security system plugin using Node.js API",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"default": "Security System",
"description": "The name that will appear in your homebridge log"
},
"username": {
"title": "Username",
"type": "string",
"description": "Alarm.com username",
"required": true
},
"password": {
"title": "Password",
"type": "string",
"description": "Alarm.com password",
"required": true
},
"logLevel": {
"title": "Log Level",
"type": "integer",
"default": 3,
"required": true,
"oneOf": [
{ "title": "No log entries", "enum": [0] },
{ "title": "Only errors", "enum": [1] },
{ "title": "Only warnings and errors", "enum": [2] },
{ "title": "Notices, warnings, and errors", "enum": [3] },
{ "title": "Verbose", "enum": [4] }
]
},
"ignoredDevices": {
"title": "Ignored Devices",
"type": "array",
"items": {
"type": "string",
"placeholder": "96922426-1"
}
}
}
}
}

0 comments on commit 270c507

Please sign in to comment.