homebridge-gree-ac 2.2.2-beta.5 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -4
- package/LICENSE +175 -175
- package/README.md +511 -500
- package/config.schema.json +520 -509
- package/dist/commands.d.ts +35 -160
- package/dist/commands.js +160 -162
- package/dist/commands.js.map +1 -1
- package/dist/crypto.d.ts +10 -11
- package/dist/crypto.js +28 -33
- package/dist/crypto.js.map +1 -1
- package/dist/index.d.ts +6 -7
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/platform.d.ts +47 -43
- package/dist/platform.js +585 -549
- package/dist/platform.js.map +1 -1
- package/dist/platformAccessory.d.ts +108 -102
- package/dist/platformAccessory.js +1763 -1726
- package/dist/platformAccessory.js.map +1 -1
- package/dist/settings.d.ts +72 -113
- package/dist/settings.js +97 -103
- package/dist/settings.js.map +1 -1
- package/dist/tsAccessory.d.ts +32 -34
- package/dist/tsAccessory.js +69 -71
- package/dist/tsAccessory.js.map +1 -1
- package/dist/version.d.ts +1 -2
- package/dist/version.js +2 -5
- package/dist/version.js.map +1 -1
- package/greedevice.jpg +0 -0
- package/greedevinfo.jpg +0 -0
- package/greemac.jpg +0 -0
- package/ha_fan.jpg +0 -0
- package/ha_settings.jpg +0 -0
- package/package.json +56 -52
- package/uiconfig.jpg +0 -0
- package/uiconfigcustdef.jpg +0 -0
- package/uiconfigmin.jpg +0 -0
- package/dist/commands.d.ts.map +0 -1
- package/dist/crypto.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/platform.d.ts.map +0 -1
- package/dist/platformAccessory.d.ts.map +0 -1
- package/dist/settings.d.ts.map +0 -1
- package/dist/tsAccessory.d.ts.map +0 -1
- package/dist/version.d.ts.map +0 -1
package/config.schema.json
CHANGED
|
@@ -1,509 +1,520 @@
|
|
|
1
|
-
{
|
|
2
|
-
"pluginAlias": "GREEAirConditioner",
|
|
3
|
-
"pluginType": "platform",
|
|
4
|
-
"singular": true,
|
|
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
|
-
"type": "string",
|
|
36
|
-
"required":
|
|
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
|
-
"placeholder":
|
|
71
|
-
},
|
|
72
|
-
"
|
|
73
|
-
"type": "integer",
|
|
74
|
-
"required": false,
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
"default":
|
|
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
|
-
"type": "
|
|
277
|
-
"required": false,
|
|
278
|
-
"
|
|
279
|
-
},
|
|
280
|
-
"
|
|
281
|
-
"type": "
|
|
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
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
"
|
|
375
|
-
"
|
|
376
|
-
"
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
"
|
|
384
|
-
"
|
|
385
|
-
"
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
"
|
|
393
|
-
"
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
"
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
"
|
|
410
|
-
"
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
"
|
|
418
|
-
"
|
|
419
|
-
"
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
"
|
|
427
|
-
"
|
|
428
|
-
"
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
"
|
|
436
|
-
"
|
|
437
|
-
"
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
"
|
|
445
|
-
"
|
|
446
|
-
"
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
"
|
|
454
|
-
"
|
|
455
|
-
"
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
"
|
|
463
|
-
"
|
|
464
|
-
"
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
"
|
|
472
|
-
"
|
|
473
|
-
"
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
"
|
|
481
|
-
"
|
|
482
|
-
"
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
"
|
|
490
|
-
"
|
|
491
|
-
"
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
"
|
|
499
|
-
"
|
|
500
|
-
"
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
1
|
+
{
|
|
2
|
+
"pluginAlias": "GREEAirConditioner",
|
|
3
|
+
"pluginType": "platform",
|
|
4
|
+
"singular": true,
|
|
5
|
+
"strictValidation": false,
|
|
6
|
+
"schema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"name": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"required": true,
|
|
12
|
+
"default": "GREE Air Conditioner"
|
|
13
|
+
},
|
|
14
|
+
"port": {
|
|
15
|
+
"type": "integer",
|
|
16
|
+
"required": false,
|
|
17
|
+
"minimum": 1025
|
|
18
|
+
},
|
|
19
|
+
"scanInterval": {
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"required": false,
|
|
22
|
+
"default": 60,
|
|
23
|
+
"minimum": 5
|
|
24
|
+
},
|
|
25
|
+
"disableAutoDetection": {
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"default": false
|
|
28
|
+
},
|
|
29
|
+
"devices": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"mac": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"required": true,
|
|
37
|
+
"pattern": "^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$"
|
|
38
|
+
},
|
|
39
|
+
"name": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"required": false
|
|
42
|
+
},
|
|
43
|
+
"model": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"required": false
|
|
46
|
+
},
|
|
47
|
+
"speedSteps": {
|
|
48
|
+
"type": "integer",
|
|
49
|
+
"required": true,
|
|
50
|
+
"default": 5,
|
|
51
|
+
"oneOf": [
|
|
52
|
+
{
|
|
53
|
+
"title": "3-step model",
|
|
54
|
+
"enum": [
|
|
55
|
+
3
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"title": "5-step model",
|
|
60
|
+
"enum": [
|
|
61
|
+
5
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"statusUpdateInterval": {
|
|
67
|
+
"type": "integer",
|
|
68
|
+
"required": false,
|
|
69
|
+
"minimum": 1,
|
|
70
|
+
"placeholder": 10
|
|
71
|
+
},
|
|
72
|
+
"sensorOffset": {
|
|
73
|
+
"type": "integer",
|
|
74
|
+
"required": false,
|
|
75
|
+
"placeholder": 40
|
|
76
|
+
},
|
|
77
|
+
"minimumTargetTemperature": {
|
|
78
|
+
"type": "integer",
|
|
79
|
+
"required": false,
|
|
80
|
+
"minimum": 8,
|
|
81
|
+
"placeholder": 16
|
|
82
|
+
},
|
|
83
|
+
"maximumTargetTemperature": {
|
|
84
|
+
"type": "integer",
|
|
85
|
+
"required": false,
|
|
86
|
+
"maximum": 30,
|
|
87
|
+
"placeholder": 30
|
|
88
|
+
},
|
|
89
|
+
"xFanEnabled": {
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"default": true
|
|
92
|
+
},
|
|
93
|
+
"temperatureSensor": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"required": true,
|
|
96
|
+
"default": "disabled",
|
|
97
|
+
"oneOf": [
|
|
98
|
+
{
|
|
99
|
+
"title": "Disabled",
|
|
100
|
+
"enum": [
|
|
101
|
+
"disabled"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"title": "Child accessory",
|
|
106
|
+
"enum": [
|
|
107
|
+
"child"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"title": "Separate accessory",
|
|
112
|
+
"enum": [
|
|
113
|
+
"separate"
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"temperatureStepSize": {
|
|
119
|
+
"type": "number",
|
|
120
|
+
"minimum": 0.5,
|
|
121
|
+
"multipleOf": 0.5,
|
|
122
|
+
"required": false
|
|
123
|
+
},
|
|
124
|
+
"disabled": {
|
|
125
|
+
"type": "boolean"
|
|
126
|
+
},
|
|
127
|
+
"modifyVerticalSwingPosition": {
|
|
128
|
+
"type": "integer",
|
|
129
|
+
"required": true,
|
|
130
|
+
"default": 0,
|
|
131
|
+
"oneOf": [
|
|
132
|
+
{
|
|
133
|
+
"title": "Never",
|
|
134
|
+
"enum": [
|
|
135
|
+
0
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"title": "Override default after power on",
|
|
140
|
+
"enum": [
|
|
141
|
+
1
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"title": "Override default after power on or oscillation off",
|
|
146
|
+
"enum": [
|
|
147
|
+
2
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"title": "Always set after power on",
|
|
152
|
+
"enum": [
|
|
153
|
+
3
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"title": "Always set after power on or oscillation off",
|
|
158
|
+
"enum": [
|
|
159
|
+
4
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"defaultVerticalSwing": {
|
|
165
|
+
"type": "integer",
|
|
166
|
+
"required": true,
|
|
167
|
+
"default": 0,
|
|
168
|
+
"oneOf": [
|
|
169
|
+
{
|
|
170
|
+
"title": "Device default",
|
|
171
|
+
"enum": [
|
|
172
|
+
0
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"title": "fixed Highest",
|
|
177
|
+
"enum": [
|
|
178
|
+
2
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"title": "fixed Higher",
|
|
183
|
+
"enum": [
|
|
184
|
+
3
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"title": "fixed Middle",
|
|
189
|
+
"enum": [
|
|
190
|
+
4
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"title": "fixed Lower",
|
|
195
|
+
"enum": [
|
|
196
|
+
5
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"title": "fixed Lowest",
|
|
201
|
+
"enum": [
|
|
202
|
+
6
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
"defaultFanVerticalSwing": {
|
|
208
|
+
"type": "integer",
|
|
209
|
+
"required": true,
|
|
210
|
+
"default": 0,
|
|
211
|
+
"oneOf": [
|
|
212
|
+
{
|
|
213
|
+
"title": "Device default",
|
|
214
|
+
"enum": [
|
|
215
|
+
0
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"title": "fixed Highest",
|
|
220
|
+
"enum": [
|
|
221
|
+
2
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"title": "fixed Higher",
|
|
226
|
+
"enum": [
|
|
227
|
+
3
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"title": "fixed Middle",
|
|
232
|
+
"enum": [
|
|
233
|
+
4
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"title": "fixed Lower",
|
|
238
|
+
"enum": [
|
|
239
|
+
5
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"title": "fixed Lowest",
|
|
244
|
+
"enum": [
|
|
245
|
+
6
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
"encryptionVersion" : {
|
|
251
|
+
"type": "integer",
|
|
252
|
+
"required": true,
|
|
253
|
+
"default": 0,
|
|
254
|
+
"oneOf": [
|
|
255
|
+
{
|
|
256
|
+
"title": "Auto",
|
|
257
|
+
"enum": [
|
|
258
|
+
0
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"title": "v1",
|
|
263
|
+
"enum": [
|
|
264
|
+
1
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"title": "v2",
|
|
269
|
+
"enum": [
|
|
270
|
+
2
|
|
271
|
+
]
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
"port": {
|
|
276
|
+
"type": "integer",
|
|
277
|
+
"required": false,
|
|
278
|
+
"minimum": 1025
|
|
279
|
+
},
|
|
280
|
+
"ip": {
|
|
281
|
+
"type": "string",
|
|
282
|
+
"required": false,
|
|
283
|
+
"format": "ipv4"
|
|
284
|
+
},
|
|
285
|
+
"fanControlEnabled": {
|
|
286
|
+
"type": "boolean"
|
|
287
|
+
},
|
|
288
|
+
"silentTimeRange": {
|
|
289
|
+
"type": "string",
|
|
290
|
+
"required": false,
|
|
291
|
+
"pattern": "^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]-(((0[0-9]|1[0-9]|2[0-3]):[0-5][0-9])|24:00)$"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"layout": [
|
|
299
|
+
{
|
|
300
|
+
"key": "name",
|
|
301
|
+
"title": "Name:"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"type": "flex",
|
|
305
|
+
"flex-flow": "row wrap",
|
|
306
|
+
"items": [
|
|
307
|
+
{
|
|
308
|
+
"key": "port",
|
|
309
|
+
"flex": "1 1 50%",
|
|
310
|
+
"title": "Port:",
|
|
311
|
+
"description": "Platform level UDP port (auto if empty)"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"key": "scanInterval",
|
|
315
|
+
"flex": "1 1 50%",
|
|
316
|
+
"title": "Scan interval:",
|
|
317
|
+
"description": "Interval in seconds between device discovery retries (60 sec if empty)"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"key": "disableAutoDetection",
|
|
321
|
+
"flex": "1 1 100%",
|
|
322
|
+
"title": "Disable auto detection",
|
|
323
|
+
"description": "If auto detection is disabled, only the AC units listed in the devices section will be enabled"
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"type": "array",
|
|
329
|
+
"key": "devices",
|
|
330
|
+
"title": "Devices",
|
|
331
|
+
"buttonText": "Add device",
|
|
332
|
+
"expandable": true,
|
|
333
|
+
"expanded": false,
|
|
334
|
+
"items": [
|
|
335
|
+
{
|
|
336
|
+
"type": "div",
|
|
337
|
+
"displayFlex": true,
|
|
338
|
+
"flex-flow": "row wrap",
|
|
339
|
+
"items": [
|
|
340
|
+
{
|
|
341
|
+
"key": "devices[].mac",
|
|
342
|
+
"flex": "1 1 50%",
|
|
343
|
+
"title": "MAC address (Serial Number):",
|
|
344
|
+
"description": "MAC address of the device using lowercase letters and no separators<br />OR<br />special value: <b>default</b>"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"key": "devices[].name",
|
|
348
|
+
"flex": "1 1 50%",
|
|
349
|
+
"title": "Device name:",
|
|
350
|
+
"description": "Custom name of the device. Please use only alphanumeric, space, and apostrophe characters. Ensure it starts and ends with an alphabetic or numeric character, and avoid emojis.",
|
|
351
|
+
"condition": {
|
|
352
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac));"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"key": "devices[].disabled",
|
|
357
|
+
"flex": "1 1 100%",
|
|
358
|
+
"title": "Disabled",
|
|
359
|
+
"description": "If checked, this accessory will be removed and ignored by HomeKit",
|
|
360
|
+
"condition": {
|
|
361
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac));"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"key": "devices[].ip",
|
|
366
|
+
"flex": "1 1 50%",
|
|
367
|
+
"title": "IP address:",
|
|
368
|
+
"description": "Device IP address (auto if empty)",
|
|
369
|
+
"condition": {
|
|
370
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"key": "devices[].port",
|
|
375
|
+
"flex": "1 1 50%",
|
|
376
|
+
"title": "Port:",
|
|
377
|
+
"description": "Device specific UDP port (auto if empty)",
|
|
378
|
+
"condition": {
|
|
379
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"key": "devices[].statusUpdateInterval",
|
|
384
|
+
"flex": "1 1 50%",
|
|
385
|
+
"title": "Status update interval:",
|
|
386
|
+
"description": "Update interval (in seconds)",
|
|
387
|
+
"condition": {
|
|
388
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"key": "devices[].encryptionVersion",
|
|
393
|
+
"flex": "1 1 50%",
|
|
394
|
+
"title": "Network protocol encryption version:",
|
|
395
|
+
"description": "Leave this on Auto. If Auto doesn't work then set to the desired version.",
|
|
396
|
+
"condition": {
|
|
397
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"key": "devices[].model",
|
|
402
|
+
"flex": "1 1 50%",
|
|
403
|
+
"title": "Device model:",
|
|
404
|
+
"condition": {
|
|
405
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"key": "devices[].speedSteps",
|
|
410
|
+
"flex": "1 1 50%",
|
|
411
|
+
"title": "Fan speed steps:",
|
|
412
|
+
"condition": {
|
|
413
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"key": "devices[].minimumTargetTemperature",
|
|
418
|
+
"flex": "1 1 50%",
|
|
419
|
+
"title": "Minimum target temperature:",
|
|
420
|
+
"description": "Minimum target temperature (in ℃)",
|
|
421
|
+
"condition": {
|
|
422
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"key": "devices[].maximumTargetTemperature",
|
|
427
|
+
"flex": "1 1 50%",
|
|
428
|
+
"title": "Maximum target temperature:",
|
|
429
|
+
"description": "Maximum target temperature (in ℃)",
|
|
430
|
+
"condition": {
|
|
431
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"key": "devices[].sensorOffset",
|
|
436
|
+
"flex": "1 1 50%",
|
|
437
|
+
"title": "Temperature offset:",
|
|
438
|
+
"description": "Temperature sensor calibration (in ℃)",
|
|
439
|
+
"condition": {
|
|
440
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"key": "devices[].temperatureStepSize",
|
|
445
|
+
"flex": "1 1 50%",
|
|
446
|
+
"title": "Temperature step size:",
|
|
447
|
+
"description": "Valid values: 0.5 (for °F) and 1 (for °C)<BR />(Calculate from Homebridge UI temperature units parameter if empty or invalid)",
|
|
448
|
+
"condition": {
|
|
449
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"key": "devices[].xFanEnabled",
|
|
454
|
+
"flex": "1 1 50%",
|
|
455
|
+
"title": "xFan enabled",
|
|
456
|
+
"description": "If enabled, then xFan functionality is turned on automatically on the device",
|
|
457
|
+
"condition": {
|
|
458
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"key": "devices[].temperatureSensor",
|
|
463
|
+
"flex": "1 1 50%",
|
|
464
|
+
"title": "Temperature sensor:",
|
|
465
|
+
"description": "Additional temperature sensor in Home App",
|
|
466
|
+
"condition": {
|
|
467
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"key": "devices[].modifyVerticalSwingPosition",
|
|
472
|
+
"flex": "1 1 50%",
|
|
473
|
+
"title": "Modify vertical position:",
|
|
474
|
+
"description": "When to modify vertical swing position",
|
|
475
|
+
"condition": {
|
|
476
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"key": "devices[].defaultVerticalSwing",
|
|
481
|
+
"flex": "1 1 50%",
|
|
482
|
+
"title": "Vertical position:",
|
|
483
|
+
"description": "Vertical swing position to be used when overriding enabled or set in heating/cooling modes",
|
|
484
|
+
"condition": {
|
|
485
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true && model.devices[arrayIndices].modifyVerticalSwingPosition !== 0);"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"key": "devices[].fanControlEnabled",
|
|
490
|
+
"flex": "1 1 50%",
|
|
491
|
+
"title": "Fan control enabled",
|
|
492
|
+
"description": "If checked, a fan control is added to Home App and fan mode support is enabled",
|
|
493
|
+
"condition": {
|
|
494
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"key": "devices[].defaultFanVerticalSwing",
|
|
499
|
+
"flex": "1 1 50%",
|
|
500
|
+
"title": "Vertical fan position:",
|
|
501
|
+
"description": "Vertical swing position to be set in fan mode",
|
|
502
|
+
"condition": {
|
|
503
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true && [3, 4].includes(model.devices[arrayIndices].modifyVerticalSwingPosition) && model.devices[arrayIndices].fanControlEnabled === true);"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"key": "devices[].silentTimeRange",
|
|
508
|
+
"flex": "1 1 50%",
|
|
509
|
+
"title": "Silent time range:",
|
|
510
|
+
"description": "Time range when device shouldn't beep on commands received (format: HH:MM-HH:MM, e.g.: 22:00-08:00)",
|
|
511
|
+
"condition": {
|
|
512
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default|[a-f0-9]+@[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
]
|
|
516
|
+
}
|
|
517
|
+
]
|
|
518
|
+
}
|
|
519
|
+
]
|
|
520
|
+
}
|