-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathconfig.schema.json
More file actions
239 lines (235 loc) · 8.31 KB
/
Copy pathconfig.schema.json
File metadata and controls
239 lines (235 loc) · 8.31 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
{
"pluginAlias": "LutronCasetaLeap",
"pluginType": "platform",
"customUi": true,
"singular": true,
"customUiPath": "./dist/homebridge-ui",
"schema": {
"type": "object",
"required": ["name"],
"properties": {
"name": {
"type": "string",
"title": "Name",
"default": "Lutron"
},
"options": {
"type": "object",
"properties": {
"filterPico": {
"type": "boolean",
"title": "Exclude Pico remotes that are associated with devices directly or in the Lutron app"
},
"clickSpeed": {
"type": "string",
"title": "Double- and long-press speed",
"oneOf": [
{ "title": "Fast", "enum": ["fast"] },
{ "title": "Medium (default)", "enum": ["medium"] },
{ "title": "Slow", "enum": ["slow"] }
]
},
"excludedDeviceTypes": {
"type": "array",
"title": "Exclude specific device types (HAP + Matter)",
"description": "Selected device types will not be registered by this plugin in either HAP or Matter mode.",
"items": {
"type": "string",
"enum": [
"WallDimmer",
"WallSwitch",
"SerenaTiltOnlyWoodBlind",
"RPSOccupancySensor",
"Pico2Button",
"Pico2ButtonRaiseLower",
"Pico3Button",
"Pico3ButtonRaiseLower",
"Pico4Button",
"Pico4Button2Group",
"Pico4ButtonScene",
"Pico4ButtonZone",
"PaddleSwitchPico",
"FourGroupRemote"
]
},
"uniqueItems": true,
"default": []
},
"logLevel": {
"type": "string",
"title": "Log Verbosity",
"description": "Controls which plugin log levels are emitted. 'Normal' is the default and what most users want — info is reserved for one-time lifecycle events, per-event noise is at debug. 'Quiet' suppresses info; 'Errors only' suppresses info AND warn. Homebridge's global debug toggle is not affected by this setting.",
"default": "normal",
"oneOf": [
{ "title": "Normal (default)", "enum": ["normal"] },
{ "title": "Quiet (suppress info)", "enum": ["quiet"] },
{ "title": "Errors only (suppress info + warn)", "enum": ["errors-only"] }
]
},
"buttonPressLogging": {
"type": "string",
"title": "Button Press Logging",
"description": "How verbose to be about button-press events specifically. 'Info' is the default so presses are visible in normal logs. Use 'Debug' to show presses only with global Homebridge debug enabled. Use 'Silent' to drop them entirely.",
"default": "info",
"oneOf": [
{ "title": "Info — visible in normal logs (default)", "enum": ["info"] },
{ "title": "Debug — visible only with global debug", "enum": ["debug"] },
{ "title": "Silent — never logged", "enum": ["silent"] }
]
},
"matterAllowNonCompliantSinglePress": {
"type": "boolean",
"title": "Show Pico remotes as single-press only in Matter (breaks the Matter spec)",
"description": "Advanced. Hides double and long press from the Home app, giving a simpler tile. This deliberately breaks the Matter specification, and some controllers may then refuse to register your Pico remotes at all. Leave off unless you specifically want the simpler tile. You must re-pair the bridge for a change here to take effect.",
"default": false
}
}
},
"enableMatter": {
"type": "boolean",
"title": "Enable Matter (requires Homebridge v2.0+)",
"description": "When enabled, the plugin will use the Homebridge Matter API to register accessories if it is available.",
"default": true
},
"secrets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"bridgeid": { "type": "string" },
"ca": { "type": "string" },
"key": { "type": "string" },
"cert": { "type": "string" }
},
"required": ["ca", "cert", "key"]
}
}
}
},
"layout": [
{
"key": "secrets",
"type": "array",
"listItems": 1,
"items": [{
"type": "div",
"displayFlex": true,
"items": [
{
"key": "secrets[].bridgeid",
"flex": "1 1 50px",
"notitle": false,
"title": "Bridge ID Number (hex of serial number)",
"placeholder": "Bridge ID",
"type": "string"
},
{
"key": "secrets[].ca",
"flex": "200px",
"title": "CA certificate (caseta-bridge.crt)",
"placeholder": "-----BEGIN CERTIFICATE-----...",
"type": "textarea"
},
{
"key": "secrets[].key",
"flex": "200px",
"title": "Private key (caseta.key)",
"placeholder": "-----BEGIN PRIVATE KEY-----...",
"type": "textarea"
},
{
"key": "secrets[].cert",
"flex": "200px",
"title": "Signed certificate (caseta.crt)",
"placeholder": "-----BEGIN CERTIFICATE-----...",
"type": "textarea"
}
]
}
]
},
{
"type": "fieldset",
"title": "Global Options",
"items": [
{
"key": "options",
"type": "div",
"displayFlex": true,
"items": [
{
"key": "options.filterPico",
"notitle": false,
"type": "boolean",
"flex": "1 1 150px"
},
{
"key": "options.clickSpeed",
"notitle": false,
"type": "string",
"flex": "1 1 150px"
}
]
},
{
"type": "div",
"displayFlex": true,
"items": [
{
"key": "enableMatter",
"notitle": false,
"type": "boolean",
"flex": "1 1 300px"
}
]
},
{
"key": "options.excludedDeviceTypes",
"type": "checkboxes",
"title": "Exclude specific device types (HAP + Matter)",
"description": "Select one or more device types to exclude from registration.",
"titleMap": [
{ "name": "WallDimmer", "value": "WallDimmer" },
{ "name": "WallSwitch", "value": "WallSwitch" },
{ "name": "SerenaTiltOnlyWoodBlind", "value": "SerenaTiltOnlyWoodBlind" },
{ "name": "RPSOccupancySensor", "value": "RPSOccupancySensor" },
{ "name": "Pico2Button", "value": "Pico2Button" },
{ "name": "Pico2ButtonRaiseLower", "value": "Pico2ButtonRaiseLower" },
{ "name": "Pico3Button", "value": "Pico3Button" },
{ "name": "Pico3ButtonRaiseLower", "value": "Pico3ButtonRaiseLower" },
{ "name": "Pico4Button", "value": "Pico4Button" },
{ "name": "Pico4Button2Group", "value": "Pico4Button2Group" },
{ "name": "Pico4ButtonScene", "value": "Pico4ButtonScene" },
{ "name": "Pico4ButtonZone", "value": "Pico4ButtonZone" },
{ "name": "PaddleSwitchPico", "value": "PaddleSwitchPico" },
{ "name": "FourGroupRemote", "value": "FourGroupRemote" }
]
},
{
"type": "div",
"displayFlex": true,
"items": [
{
"key": "options.logLevel",
"notitle": false,
"type": "string",
"flex": "1 1 200px"
},
{
"key": "options.buttonPressLogging",
"notitle": false,
"type": "string",
"flex": "1 1 200px"
},
{
"key": "options.matterAllowNonCompliantSinglePress",
"notitle": false,
"type": "boolean",
"flex": "1 1 300px"
}
]
}
]
}
]
}