homebridge-melcloud-control 2.5.0-beta.59 → 2.5.0-beta.60
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/config.schema.json +474 -571
- package/homebridge-ui/public/index.html +14 -2
- package/package.json +1 -1
package/config.schema.json
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"accounts": {
|
|
13
13
|
"type": "array",
|
|
14
14
|
"items": {
|
|
15
|
-
"title": "MELCloud accounts",
|
|
16
15
|
"type": "object",
|
|
17
16
|
"properties": {
|
|
18
17
|
"name": {
|
|
@@ -253,504 +252,452 @@
|
|
|
253
252
|
],
|
|
254
253
|
"description": "Select device control mode displayed in HomeKit app.",
|
|
255
254
|
"required": true
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
"items": {
|
|
265
|
-
"type": "object",
|
|
266
|
-
"properties": {
|
|
267
|
-
"name": {
|
|
268
|
-
"title": "Name",
|
|
269
|
-
"type": "string",
|
|
270
|
-
"required": false
|
|
271
|
-
},
|
|
272
|
-
"id": {
|
|
273
|
-
"title": "Mode",
|
|
274
|
-
"type": "integer",
|
|
275
|
-
"required": false
|
|
276
|
-
},
|
|
277
|
-
"type": {
|
|
278
|
-
"title": "Type",
|
|
279
|
-
"type": "integer",
|
|
280
|
-
"required": false
|
|
281
|
-
},
|
|
282
|
-
"displayMode": {
|
|
283
|
-
"title": "Control",
|
|
284
|
-
"type": "integer",
|
|
285
|
-
"minimum": 0,
|
|
286
|
-
"maximum": 2,
|
|
287
|
-
"oneOf": [
|
|
288
|
-
{
|
|
289
|
-
"title": "None/Disabled",
|
|
290
|
-
"enum": [
|
|
291
|
-
0
|
|
292
|
-
]
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"title": "Heater/Cooler",
|
|
296
|
-
"enum": [
|
|
297
|
-
0
|
|
298
|
-
]
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"title": "Thermostat",
|
|
302
|
-
"enum": [
|
|
303
|
-
1
|
|
304
|
-
]
|
|
305
|
-
}
|
|
306
|
-
],
|
|
307
|
-
"description": "Select device control mode displayed in HomeKit app.",
|
|
308
|
-
"required": true
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
"required": false
|
|
313
|
-
},
|
|
314
|
-
"ervDevices": {
|
|
315
|
-
"title": "Devices ERV",
|
|
316
|
-
"type": "array",
|
|
317
|
-
"items": {
|
|
318
|
-
"type": "object",
|
|
319
|
-
"properties": {
|
|
320
|
-
"name": {
|
|
321
|
-
"title": "Name",
|
|
322
|
-
"type": "string",
|
|
323
|
-
"required": false
|
|
324
|
-
},
|
|
325
|
-
"id": {
|
|
326
|
-
"title": "Mode",
|
|
327
|
-
"type": "integer",
|
|
328
|
-
"required": false
|
|
329
|
-
},
|
|
330
|
-
"type": {
|
|
331
|
-
"title": "Type",
|
|
332
|
-
"type": "integer",
|
|
333
|
-
"required": false
|
|
334
|
-
},
|
|
335
|
-
"displayMode": {
|
|
336
|
-
"title": "Control",
|
|
337
|
-
"type": "integer",
|
|
338
|
-
"minimum": 0,
|
|
339
|
-
"maximum": 2,
|
|
340
|
-
"oneOf": [
|
|
341
|
-
{
|
|
342
|
-
"title": "None/Disabled",
|
|
343
|
-
"enum": [
|
|
344
|
-
0
|
|
345
|
-
]
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
"title": "Heater/Cooler",
|
|
349
|
-
"enum": [
|
|
350
|
-
0
|
|
351
|
-
]
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
"title": "Thermostat",
|
|
355
|
-
"enum": [
|
|
356
|
-
1
|
|
357
|
-
]
|
|
358
|
-
}
|
|
359
|
-
],
|
|
360
|
-
"description": "Select device control mode displayed in HomeKit app.",
|
|
361
|
-
"required": true
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
"required": false
|
|
366
|
-
},
|
|
367
|
-
"ataDisplayMode": {
|
|
368
|
-
"title": "Control",
|
|
369
|
-
"type": "integer",
|
|
370
|
-
"minimum": 0,
|
|
371
|
-
"maximum": 1,
|
|
372
|
-
"default": 0,
|
|
373
|
-
"oneOf": [
|
|
374
|
-
{
|
|
375
|
-
"title": "Heater/Cooler",
|
|
376
|
-
"enum": [
|
|
377
|
-
0
|
|
378
|
-
]
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"title": "Thermostat",
|
|
382
|
-
"enum": [
|
|
383
|
-
1
|
|
384
|
-
]
|
|
385
|
-
}
|
|
386
|
-
],
|
|
387
|
-
"description": "Select device control mode displayed in HomeKit app.",
|
|
388
|
-
"required": true
|
|
389
|
-
},
|
|
390
|
-
"ataHeatDryFanMode": {
|
|
391
|
-
"title": "Heat",
|
|
392
|
-
"type": "integer",
|
|
393
|
-
"minimum": 0,
|
|
394
|
-
"maximum": 3,
|
|
395
|
-
"default": 1,
|
|
396
|
-
"oneOf": [
|
|
397
|
-
{
|
|
398
|
-
"title": "None/Disabled",
|
|
399
|
-
"enum": [
|
|
400
|
-
0
|
|
401
|
-
]
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
"title": "Heat",
|
|
405
|
-
"enum": [
|
|
406
|
-
1
|
|
407
|
-
]
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"title": "Dry",
|
|
411
|
-
"enum": [
|
|
412
|
-
2
|
|
413
|
-
]
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
"title": "Fan",
|
|
417
|
-
"enum": [
|
|
418
|
-
3
|
|
419
|
-
]
|
|
420
|
-
}
|
|
421
|
-
],
|
|
422
|
-
"description": "Select the operating mode for Heat, if this mode is not supported, it will be disabled.",
|
|
423
|
-
"required": true
|
|
424
|
-
},
|
|
425
|
-
"ataCoolDryFanMode": {
|
|
426
|
-
"title": "Cool",
|
|
427
|
-
"type": "integer",
|
|
428
|
-
"minimum": 0,
|
|
429
|
-
"maximum": 3,
|
|
430
|
-
"default": 1,
|
|
431
|
-
"oneOf": [
|
|
432
|
-
{
|
|
433
|
-
"title": "None/Disabled",
|
|
434
|
-
"enum": [
|
|
435
|
-
0
|
|
436
|
-
]
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
"title": "Cool",
|
|
440
|
-
"enum": [
|
|
441
|
-
1
|
|
442
|
-
]
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
"title": "Dry",
|
|
446
|
-
"enum": [
|
|
447
|
-
2
|
|
448
|
-
]
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
"title": "Fan",
|
|
452
|
-
"enum": [
|
|
453
|
-
3
|
|
454
|
-
]
|
|
455
|
-
}
|
|
456
|
-
],
|
|
457
|
-
"description": "Select the operating mode for Cool, if this mode is not supported, it will be disabled.",
|
|
458
|
-
"required": true
|
|
459
|
-
},
|
|
460
|
-
"ataAutoDryFanMode": {
|
|
461
|
-
"title": "Auto",
|
|
462
|
-
"type": "integer",
|
|
463
|
-
"minimum": 0,
|
|
464
|
-
"maximum": 3,
|
|
465
|
-
"default": 1,
|
|
466
|
-
"oneOf": [
|
|
467
|
-
{
|
|
468
|
-
"title": "None/Disabled",
|
|
469
|
-
"enum": [
|
|
470
|
-
0
|
|
471
|
-
]
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
"title": "Auto",
|
|
475
|
-
"enum": [
|
|
476
|
-
1
|
|
477
|
-
]
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
"title": "Dry",
|
|
481
|
-
"enum": [
|
|
482
|
-
2
|
|
483
|
-
]
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
"title": "Fan",
|
|
487
|
-
"enum": [
|
|
488
|
-
3
|
|
489
|
-
]
|
|
490
|
-
}
|
|
491
|
-
],
|
|
492
|
-
"description": "Select the operating mode for Auto, if this mode is not supported, it will be disabled.",
|
|
493
|
-
"required": true
|
|
494
|
-
},
|
|
495
|
-
"ataPresets": {
|
|
496
|
-
"title": "Presets",
|
|
497
|
-
"type": "boolean",
|
|
498
|
-
"default": false,
|
|
499
|
-
"description": "This enable extra buttons for configured presets and display it in HomeKit app.",
|
|
500
|
-
"required": false
|
|
501
|
-
},
|
|
502
|
-
"ataTemperatureSensor": {
|
|
503
|
-
"title": "Room",
|
|
504
|
-
"type": "boolean",
|
|
505
|
-
"default": false,
|
|
506
|
-
"description": "This enable extra room temperature sensor to use with automations in HomeKit app.",
|
|
507
|
-
"required": false
|
|
508
|
-
},
|
|
509
|
-
"ataTemperatureSensorOutdoor": {
|
|
510
|
-
"title": "Outdoor",
|
|
511
|
-
"type": "boolean",
|
|
512
|
-
"default": false,
|
|
513
|
-
"description": "This enable extra outdoor temperature sensor to use with automations in HomeKit app.",
|
|
514
|
-
"required": false
|
|
515
|
-
},
|
|
516
|
-
"ataButtons": {
|
|
517
|
-
"title": "Button / Sensor",
|
|
518
|
-
"type": "array",
|
|
519
|
-
"items": {
|
|
520
|
-
"type": "object",
|
|
521
|
-
"properties": {
|
|
522
|
-
"name": {
|
|
523
|
-
"title": "Name",
|
|
524
|
-
"type": "string",
|
|
525
|
-
"placeholder": "Button name",
|
|
526
|
-
"description": "Your own name displayed in Homebridge/HomeKit app.",
|
|
527
|
-
"required": true
|
|
528
|
-
},
|
|
529
|
-
"mode": {
|
|
530
|
-
"title": "Mode",
|
|
531
|
-
"type": "integer",
|
|
532
|
-
"minimum": 0,
|
|
533
|
-
"maximum": 40,
|
|
534
|
-
"description": "Function, VH - Vane Horizontal, VV - Vane Vertical.",
|
|
535
|
-
"oneOf": [
|
|
536
|
-
{
|
|
537
|
-
"title": "POWER ON/OFF",
|
|
538
|
-
"enum": [
|
|
539
|
-
0
|
|
540
|
-
]
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
"title": "MODE HEAT",
|
|
544
|
-
"enum": [
|
|
545
|
-
1
|
|
546
|
-
]
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"title": "MODE DRY",
|
|
550
|
-
"enum": [
|
|
551
|
-
2
|
|
552
|
-
]
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
"title": "MODE COOL",
|
|
556
|
-
"enum": [
|
|
557
|
-
3
|
|
558
|
-
]
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
"title": "MODE FAN",
|
|
562
|
-
"enum": [
|
|
563
|
-
4
|
|
564
|
-
]
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
"title": "MODE AUTO",
|
|
568
|
-
"enum": [
|
|
569
|
-
5
|
|
570
|
-
]
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
"title": "MODE PURIFY",
|
|
574
|
-
"enum": [
|
|
575
|
-
6
|
|
576
|
-
]
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
"title": "MODE DRY CONTROL HIDE",
|
|
580
|
-
"enum": [
|
|
581
|
-
7
|
|
582
|
-
]
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
"title": "VH MODE AUTO",
|
|
586
|
-
"enum": [
|
|
587
|
-
10
|
|
588
|
-
]
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
"title": "VH MODE 1 / LEFT",
|
|
592
|
-
"enum": [
|
|
593
|
-
11
|
|
594
|
-
]
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
"title": "VH MODE 2",
|
|
598
|
-
"enum": [
|
|
599
|
-
12
|
|
600
|
-
]
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
"title": "VH MODE 3 / CENTER",
|
|
604
|
-
"enum": [
|
|
605
|
-
13
|
|
606
|
-
]
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
"title": "VH MODE 4",
|
|
610
|
-
"enum": [
|
|
611
|
-
14
|
|
612
|
-
]
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
"title": "VH MODE 5 / RIGHT",
|
|
616
|
-
"enum": [
|
|
617
|
-
15
|
|
618
|
-
]
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
"title": "VH MODE SPLIT",
|
|
622
|
-
"enum": [
|
|
623
|
-
16
|
|
624
|
-
]
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
"title": "VH MODE SWING",
|
|
628
|
-
"enum": [
|
|
629
|
-
17
|
|
630
|
-
]
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
"title": "VV MODE AUTO",
|
|
634
|
-
"enum": [
|
|
635
|
-
20
|
|
636
|
-
]
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
"title": "VV MODE 1 / UP",
|
|
640
|
-
"enum": [
|
|
641
|
-
21
|
|
642
|
-
]
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
"title": "VV MODE 2",
|
|
646
|
-
"enum": [
|
|
647
|
-
22
|
|
648
|
-
]
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
"title": "VV MODE 3 / CENTER",
|
|
652
|
-
"enum": [
|
|
653
|
-
23
|
|
654
|
-
]
|
|
655
|
-
},
|
|
656
|
-
{
|
|
657
|
-
"title": "VV MODE 4",
|
|
658
|
-
"enum": [
|
|
659
|
-
24
|
|
660
|
-
]
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
"title": "VV MODE 5 / DOWN",
|
|
664
|
-
"enum": [
|
|
665
|
-
25
|
|
666
|
-
]
|
|
667
|
-
},
|
|
668
|
-
{
|
|
669
|
-
"title": "VV SWING",
|
|
670
|
-
"enum": [
|
|
671
|
-
26
|
|
672
|
-
]
|
|
673
|
-
},
|
|
255
|
+
},
|
|
256
|
+
"heatDryFanMode": {
|
|
257
|
+
"title": "Heat",
|
|
258
|
+
"type": "integer",
|
|
259
|
+
"minimum": 0,
|
|
260
|
+
"maximum": 3,
|
|
261
|
+
"default": 1,
|
|
262
|
+
"oneOf": [
|
|
674
263
|
{
|
|
675
|
-
"title": "
|
|
264
|
+
"title": "None/Disabled",
|
|
676
265
|
"enum": [
|
|
677
|
-
|
|
266
|
+
0
|
|
678
267
|
]
|
|
679
268
|
},
|
|
680
269
|
{
|
|
681
|
-
"title": "
|
|
270
|
+
"title": "Heat",
|
|
682
271
|
"enum": [
|
|
683
|
-
|
|
272
|
+
1
|
|
684
273
|
]
|
|
685
274
|
},
|
|
686
275
|
{
|
|
687
|
-
"title": "
|
|
276
|
+
"title": "Dry",
|
|
688
277
|
"enum": [
|
|
689
|
-
|
|
278
|
+
2
|
|
690
279
|
]
|
|
691
280
|
},
|
|
692
281
|
{
|
|
693
|
-
"title": "
|
|
282
|
+
"title": "Fan",
|
|
694
283
|
"enum": [
|
|
695
|
-
|
|
284
|
+
3
|
|
696
285
|
]
|
|
697
|
-
}
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
"description": "Select the operating mode for Heat, if this mode is not supported, it will be disabled.",
|
|
289
|
+
"required": true
|
|
290
|
+
},
|
|
291
|
+
"coolDryFanMode": {
|
|
292
|
+
"title": "Cool",
|
|
293
|
+
"type": "integer",
|
|
294
|
+
"minimum": 0,
|
|
295
|
+
"maximum": 3,
|
|
296
|
+
"default": 1,
|
|
297
|
+
"oneOf": [
|
|
698
298
|
{
|
|
699
|
-
"title": "
|
|
299
|
+
"title": "None/Disabled",
|
|
700
300
|
"enum": [
|
|
701
|
-
|
|
301
|
+
0
|
|
702
302
|
]
|
|
703
303
|
},
|
|
704
304
|
{
|
|
705
|
-
"title": "
|
|
305
|
+
"title": "Cool",
|
|
706
306
|
"enum": [
|
|
707
|
-
|
|
307
|
+
1
|
|
708
308
|
]
|
|
709
309
|
},
|
|
710
310
|
{
|
|
711
|
-
"title": "
|
|
311
|
+
"title": "Dry",
|
|
712
312
|
"enum": [
|
|
713
|
-
|
|
313
|
+
2
|
|
714
314
|
]
|
|
715
315
|
},
|
|
716
316
|
{
|
|
717
|
-
"title": "
|
|
317
|
+
"title": "Fan",
|
|
718
318
|
"enum": [
|
|
719
|
-
|
|
319
|
+
3
|
|
720
320
|
]
|
|
721
|
-
}
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"description": "Select the operating mode for Cool, if this mode is not supported, it will be disabled.",
|
|
324
|
+
"required": true
|
|
325
|
+
},
|
|
326
|
+
"autoDryFanMode": {
|
|
327
|
+
"title": "Auto",
|
|
328
|
+
"type": "integer",
|
|
329
|
+
"minimum": 0,
|
|
330
|
+
"maximum": 3,
|
|
331
|
+
"default": 1,
|
|
332
|
+
"oneOf": [
|
|
722
333
|
{
|
|
723
|
-
"title": "
|
|
334
|
+
"title": "None/Disabled",
|
|
724
335
|
"enum": [
|
|
725
|
-
|
|
336
|
+
0
|
|
726
337
|
]
|
|
727
338
|
},
|
|
728
339
|
{
|
|
729
|
-
"title": "
|
|
340
|
+
"title": "Auto",
|
|
730
341
|
"enum": [
|
|
731
|
-
|
|
342
|
+
1
|
|
732
343
|
]
|
|
733
344
|
},
|
|
734
345
|
{
|
|
735
|
-
"title": "
|
|
346
|
+
"title": "Dry",
|
|
736
347
|
"enum": [
|
|
737
|
-
|
|
348
|
+
2
|
|
738
349
|
]
|
|
739
350
|
},
|
|
740
351
|
{
|
|
741
|
-
"title": "
|
|
352
|
+
"title": "Fan",
|
|
742
353
|
"enum": [
|
|
743
|
-
|
|
354
|
+
3
|
|
744
355
|
]
|
|
745
356
|
}
|
|
746
357
|
],
|
|
358
|
+
"description": "Select the operating mode for Auto, if this mode is not supported, it will be disabled.",
|
|
747
359
|
"required": true
|
|
748
360
|
},
|
|
749
|
-
"
|
|
361
|
+
"presets": {
|
|
362
|
+
"title": "Presets",
|
|
363
|
+
"type": "boolean",
|
|
364
|
+
"default": false,
|
|
365
|
+
"description": "This enable extra buttons for configured presets and display it in HomeKit app.",
|
|
366
|
+
"required": false
|
|
367
|
+
},
|
|
368
|
+
"temperatureSensor": {
|
|
369
|
+
"title": "Room",
|
|
370
|
+
"type": "boolean",
|
|
371
|
+
"default": false,
|
|
372
|
+
"description": "This enable extra room temperature sensor to use with automations in HomeKit app.",
|
|
373
|
+
"required": false
|
|
374
|
+
},
|
|
375
|
+
"temperatureSensorOutdoor": {
|
|
376
|
+
"title": "Outdoor",
|
|
377
|
+
"type": "boolean",
|
|
378
|
+
"default": false,
|
|
379
|
+
"description": "This enable extra outdoor temperature sensor to use with automations in HomeKit app.",
|
|
380
|
+
"required": false
|
|
381
|
+
},
|
|
382
|
+
"buttonsSensors": {
|
|
383
|
+
"title": "Button / Sensor",
|
|
384
|
+
"type": "array",
|
|
385
|
+
"items": {
|
|
386
|
+
"type": "object",
|
|
387
|
+
"properties": {
|
|
388
|
+
"name": {
|
|
389
|
+
"title": "Name",
|
|
390
|
+
"type": "string",
|
|
391
|
+
"placeholder": "Button name",
|
|
392
|
+
"description": "Your own name displayed in Homebridge/HomeKit app.",
|
|
393
|
+
"required": true
|
|
394
|
+
},
|
|
395
|
+
"mode": {
|
|
396
|
+
"title": "Mode",
|
|
397
|
+
"type": "integer",
|
|
398
|
+
"minimum": 0,
|
|
399
|
+
"maximum": 40,
|
|
400
|
+
"description": "Function, VH - Vane Horizontal, VV - Vane Vertical.",
|
|
401
|
+
"oneOf": [
|
|
402
|
+
{
|
|
403
|
+
"title": "POWER ON/OFF",
|
|
404
|
+
"enum": [
|
|
405
|
+
0
|
|
406
|
+
]
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"title": "MODE HEAT",
|
|
410
|
+
"enum": [
|
|
411
|
+
1
|
|
412
|
+
]
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"title": "MODE DRY",
|
|
416
|
+
"enum": [
|
|
417
|
+
2
|
|
418
|
+
]
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"title": "MODE COOL",
|
|
422
|
+
"enum": [
|
|
423
|
+
3
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"title": "MODE FAN",
|
|
428
|
+
"enum": [
|
|
429
|
+
4
|
|
430
|
+
]
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"title": "MODE AUTO",
|
|
434
|
+
"enum": [
|
|
435
|
+
5
|
|
436
|
+
]
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"title": "MODE PURIFY",
|
|
440
|
+
"enum": [
|
|
441
|
+
6
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"title": "MODE DRY CONTROL HIDE",
|
|
446
|
+
"enum": [
|
|
447
|
+
7
|
|
448
|
+
]
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"title": "VH MODE AUTO",
|
|
452
|
+
"enum": [
|
|
453
|
+
10
|
|
454
|
+
]
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"title": "VH MODE 1 / LEFT",
|
|
458
|
+
"enum": [
|
|
459
|
+
11
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"title": "VH MODE 2",
|
|
464
|
+
"enum": [
|
|
465
|
+
12
|
|
466
|
+
]
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"title": "VH MODE 3 / CENTER",
|
|
470
|
+
"enum": [
|
|
471
|
+
13
|
|
472
|
+
]
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"title": "VH MODE 4",
|
|
476
|
+
"enum": [
|
|
477
|
+
14
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"title": "VH MODE 5 / RIGHT",
|
|
482
|
+
"enum": [
|
|
483
|
+
15
|
|
484
|
+
]
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"title": "VH MODE SPLIT",
|
|
488
|
+
"enum": [
|
|
489
|
+
16
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"title": "VH MODE SWING",
|
|
494
|
+
"enum": [
|
|
495
|
+
17
|
|
496
|
+
]
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"title": "VV MODE AUTO",
|
|
500
|
+
"enum": [
|
|
501
|
+
20
|
|
502
|
+
]
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"title": "VV MODE 1 / UP",
|
|
506
|
+
"enum": [
|
|
507
|
+
21
|
|
508
|
+
]
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"title": "VV MODE 2",
|
|
512
|
+
"enum": [
|
|
513
|
+
22
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"title": "VV MODE 3 / CENTER",
|
|
518
|
+
"enum": [
|
|
519
|
+
23
|
|
520
|
+
]
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"title": "VV MODE 4",
|
|
524
|
+
"enum": [
|
|
525
|
+
24
|
|
526
|
+
]
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"title": "VV MODE 5 / DOWN",
|
|
530
|
+
"enum": [
|
|
531
|
+
25
|
|
532
|
+
]
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"title": "VV SWING",
|
|
536
|
+
"enum": [
|
|
537
|
+
26
|
|
538
|
+
]
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"title": "VH/VV CONTROLS HIDE",
|
|
542
|
+
"enum": [
|
|
543
|
+
27
|
|
544
|
+
]
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"title": "FAN MODE AUTO",
|
|
548
|
+
"enum": [
|
|
549
|
+
30
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"title": "FAN MODE 1",
|
|
554
|
+
"enum": [
|
|
555
|
+
31
|
|
556
|
+
]
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"title": "FAN MODE 2",
|
|
560
|
+
"enum": [
|
|
561
|
+
32
|
|
562
|
+
]
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"title": "FAN MODE 3",
|
|
566
|
+
"enum": [
|
|
567
|
+
33
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"title": "FAN MODE 4",
|
|
572
|
+
"enum": [
|
|
573
|
+
34
|
|
574
|
+
]
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"title": "FAN MODE 5",
|
|
578
|
+
"enum": [
|
|
579
|
+
35
|
|
580
|
+
]
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"title": "FAN MODE 6",
|
|
584
|
+
"enum": [
|
|
585
|
+
36
|
|
586
|
+
]
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"title": "LOCK CONTROL All",
|
|
590
|
+
"enum": [
|
|
591
|
+
37
|
|
592
|
+
]
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"title": "LOCK CONTROL POWER",
|
|
596
|
+
"enum": [
|
|
597
|
+
38
|
|
598
|
+
]
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"title": "LOCK CONTROL MODE",
|
|
602
|
+
"enum": [
|
|
603
|
+
39
|
|
604
|
+
]
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"title": "LOCK CONTROL TEMPERATURE",
|
|
608
|
+
"enum": [
|
|
609
|
+
40
|
|
610
|
+
]
|
|
611
|
+
}
|
|
612
|
+
],
|
|
613
|
+
"required": true
|
|
614
|
+
},
|
|
615
|
+
"displayType": {
|
|
616
|
+
"title": "Type",
|
|
617
|
+
"type": "integer",
|
|
618
|
+
"minimum": 0,
|
|
619
|
+
"maximum": 5,
|
|
620
|
+
"oneOf": [
|
|
621
|
+
{
|
|
622
|
+
"title": "None/Disabled",
|
|
623
|
+
"enum": [
|
|
624
|
+
0
|
|
625
|
+
]
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"title": "Outlet",
|
|
629
|
+
"enum": [
|
|
630
|
+
1
|
|
631
|
+
]
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"title": "Switch",
|
|
635
|
+
"enum": [
|
|
636
|
+
2
|
|
637
|
+
]
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"title": "Motion Sensor",
|
|
641
|
+
"enum": [
|
|
642
|
+
3
|
|
643
|
+
]
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"title": "Occupancy Sensor",
|
|
647
|
+
"enum": [
|
|
648
|
+
4
|
|
649
|
+
]
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"title": "Contact Sensor",
|
|
653
|
+
"enum": [
|
|
654
|
+
5
|
|
655
|
+
]
|
|
656
|
+
}
|
|
657
|
+
],
|
|
658
|
+
"description": "Select the characteristic type to be displayed in HomeKit app.",
|
|
659
|
+
"required": true
|
|
660
|
+
},
|
|
661
|
+
"namePrefix": {
|
|
662
|
+
"title": "Prefix",
|
|
663
|
+
"type": "boolean",
|
|
664
|
+
"description": "Enable/disable the accessory name as a prefix for button/sensor name.",
|
|
665
|
+
"required": false
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
"required": false
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
"required": true
|
|
674
|
+
},
|
|
675
|
+
"atwDevices": {
|
|
676
|
+
"title": "Devices ATW",
|
|
677
|
+
"type": "array",
|
|
678
|
+
"items": {
|
|
679
|
+
"type": "object",
|
|
680
|
+
"properties": {
|
|
681
|
+
"name": {
|
|
682
|
+
"title": "Name",
|
|
683
|
+
"type": "string",
|
|
684
|
+
"required": false
|
|
685
|
+
},
|
|
686
|
+
"id": {
|
|
687
|
+
"title": "Mode",
|
|
688
|
+
"type": "integer",
|
|
689
|
+
"required": false
|
|
690
|
+
},
|
|
691
|
+
"type": {
|
|
750
692
|
"title": "Type",
|
|
751
693
|
"type": "integer",
|
|
694
|
+
"required": false
|
|
695
|
+
},
|
|
696
|
+
"displayMode": {
|
|
697
|
+
"title": "Control",
|
|
698
|
+
"type": "integer",
|
|
752
699
|
"minimum": 0,
|
|
753
|
-
"maximum":
|
|
700
|
+
"maximum": 2,
|
|
754
701
|
"oneOf": [
|
|
755
702
|
{
|
|
756
703
|
"title": "None/Disabled",
|
|
@@ -759,51 +706,27 @@
|
|
|
759
706
|
]
|
|
760
707
|
},
|
|
761
708
|
{
|
|
762
|
-
"title": "
|
|
763
|
-
"enum": [
|
|
764
|
-
1
|
|
765
|
-
]
|
|
766
|
-
},
|
|
767
|
-
{
|
|
768
|
-
"title": "Switch",
|
|
769
|
-
"enum": [
|
|
770
|
-
2
|
|
771
|
-
]
|
|
772
|
-
},
|
|
773
|
-
{
|
|
774
|
-
"title": "Motion Sensor",
|
|
775
|
-
"enum": [
|
|
776
|
-
3
|
|
777
|
-
]
|
|
778
|
-
},
|
|
779
|
-
{
|
|
780
|
-
"title": "Occupancy Sensor",
|
|
709
|
+
"title": "Heater/Cooler",
|
|
781
710
|
"enum": [
|
|
782
|
-
|
|
711
|
+
0
|
|
783
712
|
]
|
|
784
713
|
},
|
|
785
714
|
{
|
|
786
|
-
"title": "
|
|
715
|
+
"title": "Thermostat",
|
|
787
716
|
"enum": [
|
|
788
|
-
|
|
717
|
+
1
|
|
789
718
|
]
|
|
790
719
|
}
|
|
791
720
|
],
|
|
792
|
-
"description": "Select
|
|
721
|
+
"description": "Select device control mode displayed in HomeKit app.",
|
|
793
722
|
"required": true
|
|
794
|
-
},
|
|
795
|
-
"namePrefix": {
|
|
796
|
-
"title": "Prefix",
|
|
797
|
-
"type": "boolean",
|
|
798
|
-
"description": "Enable/disable the accessory name as a prefix for button/sensor name.",
|
|
799
|
-
"required": false
|
|
800
723
|
}
|
|
801
724
|
}
|
|
802
725
|
},
|
|
803
726
|
"required": false
|
|
804
727
|
},
|
|
805
|
-
"
|
|
806
|
-
"title": "
|
|
728
|
+
"ervDevices": {
|
|
729
|
+
"title": "Devices ERV",
|
|
807
730
|
"type": "array",
|
|
808
731
|
"items": {
|
|
809
732
|
"type": "object",
|
|
@@ -811,50 +734,50 @@
|
|
|
811
734
|
"name": {
|
|
812
735
|
"title": "Name",
|
|
813
736
|
"type": "string",
|
|
814
|
-
"placeholder": "Device name",
|
|
815
|
-
"description": "Your own name.",
|
|
816
737
|
"required": false
|
|
817
738
|
},
|
|
818
739
|
"id": {
|
|
819
|
-
"title": "
|
|
820
|
-
"type": "
|
|
821
|
-
"
|
|
740
|
+
"title": "Mode",
|
|
741
|
+
"type": "integer",
|
|
742
|
+
"required": false
|
|
743
|
+
},
|
|
744
|
+
"type": {
|
|
745
|
+
"title": "Type",
|
|
746
|
+
"type": "integer",
|
|
822
747
|
"required": false
|
|
748
|
+
},
|
|
749
|
+
"displayMode": {
|
|
750
|
+
"title": "Control",
|
|
751
|
+
"type": "integer",
|
|
752
|
+
"minimum": 0,
|
|
753
|
+
"maximum": 2,
|
|
754
|
+
"oneOf": [
|
|
755
|
+
{
|
|
756
|
+
"title": "None/Disabled",
|
|
757
|
+
"enum": [
|
|
758
|
+
0
|
|
759
|
+
]
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"title": "Heater/Cooler",
|
|
763
|
+
"enum": [
|
|
764
|
+
0
|
|
765
|
+
]
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"title": "Thermostat",
|
|
769
|
+
"enum": [
|
|
770
|
+
1
|
|
771
|
+
]
|
|
772
|
+
}
|
|
773
|
+
],
|
|
774
|
+
"description": "Select device control mode displayed in HomeKit app.",
|
|
775
|
+
"required": true
|
|
823
776
|
}
|
|
824
777
|
}
|
|
825
778
|
},
|
|
826
779
|
"required": false
|
|
827
780
|
},
|
|
828
|
-
"atwDisplayMode": {
|
|
829
|
-
"title": "Control Mode",
|
|
830
|
-
"type": "integer",
|
|
831
|
-
"minimum": 0,
|
|
832
|
-
"maximum": 1,
|
|
833
|
-
"default": 0,
|
|
834
|
-
"oneOf": [
|
|
835
|
-
{
|
|
836
|
-
"title": "Heater/Cooler",
|
|
837
|
-
"enum": [
|
|
838
|
-
0
|
|
839
|
-
]
|
|
840
|
-
},
|
|
841
|
-
{
|
|
842
|
-
"title": "Thermostat",
|
|
843
|
-
"enum": [
|
|
844
|
-
1
|
|
845
|
-
]
|
|
846
|
-
}
|
|
847
|
-
],
|
|
848
|
-
"description": "Select main control mode.",
|
|
849
|
-
"required": true
|
|
850
|
-
},
|
|
851
|
-
"atwTemperatureSensor": {
|
|
852
|
-
"title": "Temperature Sensor Room",
|
|
853
|
-
"type": "boolean",
|
|
854
|
-
"default": false,
|
|
855
|
-
"description": "This enable extra room temperature sensor to use with automations in HomeKit app.",
|
|
856
|
-
"required": false
|
|
857
|
-
},
|
|
858
781
|
"atwTemperatureSensorFlow": {
|
|
859
782
|
"title": "Temperature Sensor Flow",
|
|
860
783
|
"type": "boolean",
|
|
@@ -1585,7 +1508,6 @@
|
|
|
1585
1508
|
"key": "accounts[].ataDevices",
|
|
1586
1509
|
"type": "tabarray",
|
|
1587
1510
|
"title": "{{ value.name }}",
|
|
1588
|
-
"addable": false,
|
|
1589
1511
|
"items": [
|
|
1590
1512
|
{
|
|
1591
1513
|
"key": "accounts[].ataDevices[].name",
|
|
@@ -1599,68 +1521,49 @@
|
|
|
1599
1521
|
"key": "accounts[].ataDevices[].type",
|
|
1600
1522
|
"readonly": true
|
|
1601
1523
|
},
|
|
1602
|
-
"accounts[].ataDevices[].displayMode"
|
|
1603
|
-
|
|
1604
|
-
},
|
|
1605
|
-
"accounts[].ataDisplayMode",
|
|
1606
|
-
"accounts[].ataPresets",
|
|
1607
|
-
{
|
|
1608
|
-
"key": "accounts[]",
|
|
1609
|
-
"type": "section",
|
|
1610
|
-
"title": "Operating Modes",
|
|
1611
|
-
"expandable": true,
|
|
1612
|
-
"expanded": false,
|
|
1613
|
-
"items": [
|
|
1614
|
-
"accounts[].ataHeatDryFanMode",
|
|
1615
|
-
"accounts[].ataCoolDryFanMode",
|
|
1616
|
-
"accounts[].ataAutoDryFanMode"
|
|
1617
|
-
]
|
|
1618
|
-
},
|
|
1619
|
-
{
|
|
1620
|
-
"key": "accounts[]",
|
|
1621
|
-
"type": "section",
|
|
1622
|
-
"title": "Temperature Sensors",
|
|
1623
|
-
"expandable": true,
|
|
1624
|
-
"expanded": false,
|
|
1625
|
-
"items": [
|
|
1626
|
-
"accounts[].ataTemperatureSensor",
|
|
1627
|
-
"accounts[].ataTemperatureSensorOutdoor"
|
|
1628
|
-
]
|
|
1629
|
-
},
|
|
1630
|
-
{
|
|
1631
|
-
"key": "accounts[]",
|
|
1632
|
-
"type": "section",
|
|
1633
|
-
"title": "Buttons / Sensors",
|
|
1634
|
-
"expandable": true,
|
|
1635
|
-
"expanded": false,
|
|
1636
|
-
"items": [
|
|
1524
|
+
"accounts[].ataDevices[].displayMode",
|
|
1525
|
+
"accounts[].ataDevices[].presets",
|
|
1637
1526
|
{
|
|
1638
|
-
"key": "accounts[]
|
|
1639
|
-
"type": "
|
|
1640
|
-
"title": "
|
|
1527
|
+
"key": "accounts[]ataDevices",
|
|
1528
|
+
"type": "section",
|
|
1529
|
+
"title": "Operating Modes",
|
|
1530
|
+
"expandable": true,
|
|
1531
|
+
"expanded": false,
|
|
1641
1532
|
"items": [
|
|
1642
|
-
"accounts[].
|
|
1643
|
-
"accounts[].
|
|
1644
|
-
"accounts[].
|
|
1645
|
-
"accounts[].ataButtons[].namePrefix"
|
|
1533
|
+
"accounts[].ataDevices[].heatDryFanMode",
|
|
1534
|
+
"accounts[].ataDevices[].coolDryFanMode",
|
|
1535
|
+
"accounts[].ataDevices[].autoDryFanMode"
|
|
1646
1536
|
]
|
|
1647
|
-
}
|
|
1648
|
-
]
|
|
1649
|
-
},
|
|
1650
|
-
{
|
|
1651
|
-
"key": "accounts[]",
|
|
1652
|
-
"type": "section",
|
|
1653
|
-
"title": "Hide Device By Id",
|
|
1654
|
-
"expandable": true,
|
|
1655
|
-
"expanded": false,
|
|
1656
|
-
"items": [
|
|
1537
|
+
},
|
|
1657
1538
|
{
|
|
1658
|
-
"key": "accounts[].
|
|
1659
|
-
"type": "
|
|
1660
|
-
"title": "
|
|
1539
|
+
"key": "accounts[].ataDevices",
|
|
1540
|
+
"type": "section",
|
|
1541
|
+
"title": "Temperature Sensors",
|
|
1542
|
+
"expandable": true,
|
|
1543
|
+
"expanded": false,
|
|
1544
|
+
"items": [
|
|
1545
|
+
"accounts[].ataDevices[].temperatureSensor",
|
|
1546
|
+
"accounts[].ataDevices[].temperatureSensorOutdoor"
|
|
1547
|
+
]
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
"key": "accounts[]",
|
|
1551
|
+
"type": "section",
|
|
1552
|
+
"title": "Buttons / Sensors",
|
|
1553
|
+
"expandable": true,
|
|
1554
|
+
"expanded": false,
|
|
1661
1555
|
"items": [
|
|
1662
|
-
|
|
1663
|
-
|
|
1556
|
+
{
|
|
1557
|
+
"key": "accounts[].ataDevices[].buttons",
|
|
1558
|
+
"type": "tabarray",
|
|
1559
|
+
"title": "{{ value.name || 'button/sensor' }}",
|
|
1560
|
+
"items": [
|
|
1561
|
+
"accounts[].ataDevices[].buttons[].name",
|
|
1562
|
+
"accounts[].ataDevices[].buttons[].mode",
|
|
1563
|
+
"accounts[].ataDevices[].buttons[].displayType",
|
|
1564
|
+
"accounts[].ataDevices[].buttons[].namePrefix"
|
|
1565
|
+
]
|
|
1566
|
+
}
|
|
1664
1567
|
]
|
|
1665
1568
|
}
|
|
1666
1569
|
]
|
|
@@ -156,10 +156,22 @@
|
|
|
156
156
|
const deviceType = deviceInfo.Type;
|
|
157
157
|
const deviceId = deviceInfo.DeviceID;
|
|
158
158
|
const deviceName = deviceInfo.DeviceName;
|
|
159
|
-
const device = {
|
|
159
|
+
const device = {
|
|
160
|
+
name: deviceName,
|
|
161
|
+
id: deviceId,
|
|
162
|
+
type: deviceType,
|
|
163
|
+
displayMode: 0,
|
|
164
|
+
heatDryFanMode: 0,
|
|
165
|
+
coolDryFanMode: 0,
|
|
166
|
+
autoDryFanMode: 0,
|
|
167
|
+
presets: false,
|
|
168
|
+
temperatureSensor: false,
|
|
169
|
+
temperatureSensorOutdoor: false,
|
|
170
|
+
buttonsSensors: []
|
|
171
|
+
};
|
|
160
172
|
|
|
161
173
|
//config account keys
|
|
162
|
-
const accountKeys =
|
|
174
|
+
const accountKeys = Object.keys(pluginConfig[0].accounts[this.deviceIndex]);
|
|
163
175
|
|
|
164
176
|
//devices ata
|
|
165
177
|
const ataDevices = accountKeys.includes('ataDevices') ? pluginConfig[0].accounts[this.deviceIndex].ataDevices : pluginConfig[0].accounts[this.deviceIndex].ataDevices = [];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "2.5.0-beta.
|
|
4
|
+
"version": "2.5.0-beta.60",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|