-
Notifications
You must be signed in to change notification settings - Fork 69
/
config.schema.json
371 lines (371 loc) · 12.4 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
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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
{
"pluginAlias": "Alexa",
"pluginType": "platform",
"singular": true,
"headerDisplay": "<h1><p align='center'>Allow your Amazon Alexa to control your homebridge devices</H1></p><h1><p align='center'><img src='https://raw.githubusercontent.com/NorthernMan54/homebridge-alexa/main/docs/README_Image.001.jpeg' width='80%' style='vertical-align:middle'></p></h1> <br><b>To setup the service:</b><br><br>1 - First <b>create</b> an account on <a href='https://www.homebridge.ca/'>https://www.homebridge.ca/</a>. <br>2 - Then <b>enter</b> the username and password for your account <b>below</b>. <br>3 - <b>Save</b> the settings and <b>restart</b> homebridge. <br>4 - In the Amazon Alexa Application on your smart phone, <b>search</b> for the Homebridge Skill and enable it. When you enable the skill, it will take you to the <b>https://www.homebridge.ca/</b> website to <b>enable</b> and link the skill to the plugin. <br>5 - You can now ask Alexa to <b>`discover devices`</b> and it should discover your homebridge devices.<br><br>Detailed setup instructions are available <a href='https://github.com/NorthernMan54/homebridge-alexa/blob/master/Installation.md#setup-instructions'>here</a>.<br>",
"footerDisplay": "Homebridge Alexa Skill: https://www.amazon.com/Northern-Man-54-Homebridge/dp/B07B9QMTFQ",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "<b>Name</b>",
"type": "string",
"required": true,
"default": "Alexa",
"description": "Plugin name as displayed in the Homebridge log"
},
"username": {
"title": "<b>Username</b>",
"type": "string",
"required": true,
"description": "Username for https://www.homebridge.ca/"
},
"password": {
"title": "<b>Password</b>",
"type": "string",
"required": true,
"description": "Password for https://www.homebridge.ca/"
},
"pin": {
"title": "<b>Homebridge Pin</b>",
"type": "string",
"placeholder": "031-45-154",
"description": "This needs to match the Homebridge pin set in your config.json file"
},
"routines": {
"title": "<b>Routines</b>",
"type": "boolean",
"placeholder": false,
"description": "Enables passing of Motion and Contact sensor events to Alexa. For use in the Alexa app to create Routines triggered by these sensors."
},
"blind": {
"title": "<b>Blind</b>",
"type": "boolean",
"placeholder": false,
"description": "Enables natural wording for opening and closing blinds, and window coverings. Not supported in all countries. Defaults to false"
},
"door": {
"title": "<b>Door</b>",
"type": "boolean",
"placeholder": false,
"description": "Enables natural wording for opening and closing garage doors. Not supported in all countries. Please note that opening a garage door requires setting a voice pin within the Alexa app. Defaults to false"
},
"debug": {
"title": "<b>Debug</b>",
"type": "boolean",
"placeholder": false,
"description": "Enable debug level logging to assist in problem investigation."
},
"beta": {
"title": "<b>beta</b>",
"type": "boolean",
"placeholder": false,
"description": "Enable beta test environment. Only available by invitation."
},
"deviceCleanup": {
"title": "<b>Cleanup of Not Responding Devices</b>",
"type": "boolean",
"default": true,
"description": "Enables cleanup of devices that are not responding. This will remove devices from Alexa that are not responding. Defaults to true."
},
"refresh": {
"title": "<b>Accessory Cache Refresh Interval</b>",
"type": "integer",
"default": 900,
"description": "Frequency of refreshes of the homebridge accessory cache, in seconds. Defaults to 900 Seconds ( 15 minutes ). This is the interval before new devices/homebridge instances are discovered. This should never require changing, unless you are frequently changing your homebridge configuration without restarting the plugin.",
"minimum": 120,
"maximum": 86400
},
"keepalive": {
"title": "<b>Cloud Server Connection Keepalive</b>",
"type": "integer",
"default": "5",
"description": "Frequency of keepalive messages to cloud server, in minutes. Defaults to 5 minutes. Do not change from default unless requested as part of problem investigation.",
"minimum": 1,
"maximum": 59,
"condition": {
"functionBody": "return model.CloudTransport !== 'wss';"
}
},
"mergeServiceName": {
"title": "<b>Alternate device naming approach</b>",
"type": "boolean",
"description": "This is an alternate device naming approach, which combines the internal HomeKit names for a device. It may resolve duplicate device name issues. Do not enable on an existing implementation, as you will lose control of your existing devices.",
"placeholder": false
},
"thermostatTurnOn": {
"title": "<b>Thermostat Turn On Behaviour</b>",
"description": "Set Thermostat `Turn On` Behaviour to either Heat, Cool or Auto when Alexa is asked to turn on a Thermostat. Defaults to doing nothing and saying `That command does not work on device ...`.",
"type": "integer",
"oneOf": [
{
"title": "Heat",
"enum": [
1
]
},
{
"title": "Cool",
"enum": [
2
]
},
{
"title": "Auto",
"enum": [
3
]
}
]
},
"CloudTransport": {
"title": "<b>Cloud Server Connection Transport</b>",
"description": "Transport options for cloud server connection. MQTTS - this is the recommended setting. MQTT - this is the original/legacy option. WSS - this is the an alternative transport option.",
"type": "string",
"default": "mqtts",
"required": true,
"oneOf": [
{
"title": "MQTTS",
"enum": [
"mqtts"
]
},
{
"title": "WSS",
"enum": [
"wss"
]
},
{
"title": "MQTT",
"enum": [
"mqtt"
]
}
]
},
"filter": {
"title": "<b>Homebridge Instance Filter</b>",
"type": "string",
"placeholder": "eg. 192.168.1.122:51826",
"description": "Limits accessories shared with Alexa to particular homebridge instances. Uses ip address and port of homebridge instance, eg. '192.168.1.122:51826' or '192.168.1.11:51551, 192.168.1.11:46047'.",
"pattern": "^(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}:\\d{1,5})(,\\s*\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}:\\d{1,5})*$"
},
"deviceListHandling": {
"title": "<b>Device List</b>",
"type": "string",
"description": "Allows filtering of devices by name. You can either allow or ignore a list of device names.",
"default": "none",
"required": true,
"oneOf": [
{
"title": "None",
"enum": [
"none"
]
},
{
"title": "Allow devices",
"enum": [
"allow"
]
},
{
"title": "Ignore devices",
"enum": [
"deny"
]
}
]
},
"deviceList": {
"title": "Devices to be allowed or denied",
"type": "array",
"items": {
"type": "string"
},
"condition": {
"functionBody": "if (model.deviceListHandling === 'allow' || model.deviceListHandling === 'deny') { return true } else { return false };"
}
},
"combine": {
"type": "array",
"items": {
"title": "Combine",
"type": "object",
"properties": {
"into": {
"title": "Into",
"type": "string"
},
"from": {
"title": "From",
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"speakers": {
"title": "Speakers",
"type": "array",
"items": {
"title": "Speaker",
"type": "object",
"properties": {
"manufacturer": {
"title": "Manufacturer",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
}
}
}
},
"enhancedSkip": {
"title": "<b>For 'appletv-enhanced', enable skip</b>",
"type": "boolean",
"placeholder": false,
"description": "This option will change the behaviour of the next or skip command of the 'appletv-enhanced' plugin, from skip to select. This will enable the wording 'Alexa tv skip' to press the select button on the Apple TV remote. This is useful for skipping adds on YouTube."
}
}
},
"layout": [
{
"type": "fieldset",
"title": "Required Settings",
"items": [
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
"username",
{
"key": "password",
"type": "password"
}
]
}
]
},
{
"type": "fieldset",
"title": "Optional Settings",
"expandable": true,
"expanded": false,
"items": [
"pin",
"routines",
"deviceCleanup",
"debug",
"thermostatTurnOn",
"enhancedSkip",
"deviceListHandling",
{
"key": "deviceList",
"type": "array",
"items": {
"title": "DeviceName",
"description": "Name of the device you want to allow or ignore",
"type": "string"
},
"condition": {
"functionBody": "return model.deviceListHandling !== 'none';"
}
}
]
},
{
"type": "fieldset",
"title": "Advanced Settings",
"expandable": true,
"expanded": false,
"items": [
"CloudTransport",
"keepalive",
"refresh",
"filter",
"mergeServiceName",
"blind",
"door"
]
},
{
"type": "fieldset",
"title": "Speakers",
"description": "Devices to configure as speakers as HomeKit currently does not have a Speaker service.",
"expandable": true,
"expanded": false,
"items": [
{
"notitle": true,
"key": "speakers",
"type": "array",
"items": [
{
"type": "div",
"displayFlex": true,
"flex-direction": "row",
"items": [
{
"key": "speakers[].manufacturer",
"flex": "1 1 50px",
"notitle": true,
"placeholder": "Manufacturer"
},
{
"key": "speakers[].name",
"flex": "4 4 200px",
"notitle": true,
"placeholder": "Name"
}
]
}
]
}
]
},
{
"type": "fieldset",
"title": "Combine Accessories",
"description": "Combine disparate accessories into one common device.",
"expandable": true,
"expanded": false,
"items": [
{
"notitle": true,
"key": "combine",
"type": "array",
"items": [
{
"type": "div",
"items": [
{
"key": "combine[].into",
"title": "Into",
"placeholder": "Target Accessory Name"
},
{
"key": "combine[].from",
"notitle": true,
"items": [
{
"title": "From",
"key": "combine[].from[]",
"placeholder": "Source Accessory Name"
}
]
}
]
}
]
}
]
}
]
}