generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.schema.json
76 lines (75 loc) · 2.27 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
68
69
70
71
72
73
74
75
76
{
"pluginAlias": "ttlock",
"pluginType": "platform",
"singular": true,
"headerDisplay": "## TTLock Platform for Homebridge\n\n**Important:** For setup instructions, please see the project [GitHub Page](https://github.com/bwitting/homebridge-ttlock).",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"default": "TTLock"
},
"clientid": {
"title": "Client ID",
"type": "string",
"required": true,
"description": "The Client ID for your TTLock developer account."
},
"clientsecret": {
"title": "Client Secret",
"type": "string",
"required": true,
"description": "The Client Secret for your TTLock developer account."
},
"username": {
"title": "Username",
"type": "string",
"required": true,
"description": "The username for the TTLock User associated with your developer account - with the prefix returned by the TTLock API"
},
"password": {
"title": "Password (md5 hashed)",
"type": "string",
"required": true,
"description": "The password for the TTLock User associated with your developer account - md5 hashed."
},
"batteryLowLevel": {
"title": "Low battery warning threshold level (in percent)",
"type": "integer",
"required": true,
"default": 15,
"minimum": 0,
"maximum": 100,
"description": "The battery level percentage at which a low battery warning will be displayed in the HomeKit status."
},
"maximumApiRetry": {
"title": "Maximum amount of retries",
"type": "integer",
"required": true,
"default": 5,
"placeholder": 5,
"description": "The amount of attempts to call the TTLock API. Useful if you do not want to repeat failed lock/unlock attempts after a long timeout delay."
}
}
},
"form": [
"name",
"username",
"password",
"clientid",
"clientsecret",
{
"type": "fieldset",
"expandable": true,
"title": "Advanced Settings",
"description": "",
"items": [
"batteryLowLevel",
"maximumApiRetry"
]
}
]
}