generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.schema.json
48 lines (48 loc) · 1.39 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"pluginAlias": "GlueHomebridge",
"pluginType": "platform",
"singular": true,
"schema": {
"type": "object",
"properties": {
"auth": {
"title": "Authentication Mode",
"type": "string",
"default": "api-key",
"oneOf": [
{ "title": "API-Key", "enum": ["api-key"] },
{ "title": "Basic Auth", "enum": ["basic"] }
],
"description": "The authentication method GlueHome plugin will use to access your Glue profile and Glue devices. API-Key auth is recommended.",
"required": true
},
"apiKey": {
"title": "apiKey",
"type": "string",
"required": false,
"description": "The API-KEY issued using your Glue account.",
"condition": {
"functionBody": "return model.auth === 'api-key';"
}
},
"username": {
"title": "username",
"type": "string",
"required": false,
"description": "You Glue account phone number in international format (e.g. +46734567890)",
"condition": {
"functionBody": "return model.auth === 'basic';"
}
},
"password": {
"title": "password",
"type": "string",
"required": false,
"description": "Your Glue account password",
"condition": {
"functionBody": "return model.auth === 'basic';"
}
}
}
}
}