generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.schema.json
109 lines (109 loc) · 2.88 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"pluginAlias": "GenieAladdinConnect",
"pluginType": "platform",
"singular": true,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"default": "Garage Door",
"minLength": 1,
"required": true
},
"username": {
"title": "User Name/Email Address",
"type": "string",
"required": true
},
"password": {
"title": "Password",
"type": "string",
"required": true
},
"batteryLowLevel": {
"title": "Low battery warning threshold level (in percent)",
"type": "integer",
"default": 15,
"minimum": 0,
"maximum": 100
},
"doorStatusStationaryCacheTtl": {
"title": "Stationary door status cache TTL (in seconds). Used when the door is in a stationary state.",
"type": "integer",
"default": 15,
"minimum": 5,
"maximum": 60
},
"doorStatusTransitioningCacheTtl": {
"title": "Transitioning door status cache TTL (in seconds). Used when the door is in a transitioning state.",
"type": "integer",
"default": 5,
"minimum": 1,
"maximum": 30
},
"doorStatusPollInterval": {
"title": "Door Status Poll Interval (in milliseconds)",
"type": "integer",
"default": 15000,
"minimum": 5000,
"maximum": 60000
},
"logApiResponses": {
"title": "Log Genie API responses in debug mode",
"type": "boolean",
"default": false
},
"showShared": {
"title": "Show doors that have been shared with me",
"type": "boolean",
"default": false
},
"ignoreDevices": {
"title": "Ignore Doors By ID",
"description": "Ignore doors by their device ID obtained from the logs during startup.",
"type": "array",
"default": [],
"required": false,
"items": {
"title": "Device ID",
"type": "string"
}
}
}
},
"layout": [
"name",
"username",
{ "key": "password", "type": "password" },
{
"type": "section",
"title": "Advanced Settings",
"expandable": true,
"expanded": false,
"items": [
"batteryLowLevel",
"doorStatusStationaryCacheTtl",
"doorStatusTransitioningCacheTtl",
"doorStatusPollInterval",
"logApiResponses",
"showShared",
{
"key": "ignoreDevices",
"type": "array",
"name": "Device ID",
"orderable": false,
"buttonText": "Add Device ID",
"items": {
"key": "ignoreDevices[]",
"type": "string",
"pattern": "^[A-F0-9]{12}_[1-9]+$",
"title": "Device ID",
"placeholder": "eg. F0AD4E1BC74D_1"
}
}
]
}
]
}