forked from jeppesens/homebridge-glue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
67 lines (67 loc) · 2.07 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"pluginAlias": "Glue",
"pluginType": "accessory",
"headerDisplay": "You must have a Glue lock with a hub and username password or api-key.",
"footerDisplay": "For info see [Github](https://github.com/jeppesens/homebridge-glue).",
"$id": "https://example.com/example.json",
"$schema": "https://json-schema.org/draft-07/schema",
"default": {
"name": "Glue"
},
"description": "Config for homebridge-glue",
"examples": [
{
"name": "Glue",
"api-key": "a very long string"
}
],
"oneOf": [
{
"required": ["name", "api-key"]
},
{
"required": ["name", "username", "password"]
}
],
"title": "homebridge-glue config",
"type": "object",
"properties": {
"name": {
"$id": "#/properties/name",
"default": "Glue",
"description": "Required name of the accessory",
"examples": ["Glue"],
"title": "Name",
"type": "string"
},
"lock-id": {
"$id": "#/properties/lock-id",
"description": "Lock ID of the lock you wish to use this plugin with",
"examples": ["e1737204-132c-4c96-a8f7-0986ac88b736"],
"title": "Lock ID",
"type": "string"
},
"username": {
"$id": "#/properties/username",
"description": "Your username for Glue home",
"examples": ["[email protected]"],
"title": "Username",
"type": "string"
},
"password": {
"$id": "#/properties/password",
"description": "Password for Glue",
"examples": ["A-great-pa$$word"],
"title": "Password",
"type": "string"
},
"api-key": {
"$id": "#/properties/api-key",
"description": "The api key you got from the Glue API",
"examples": ["a very long string"],
"title": "API key",
"type": "string"
}
},
"additionalProperties": false
}