homebridge-melcloud-control 2.5.0-beta.9 → 2.5.0-beta.90

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.
@@ -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": {
@@ -205,157 +204,8 @@
205
204
  "description": "Here select the language used in MELCloud account.",
206
205
  "required": true
207
206
  },
208
- "ataDisplayMode": {
209
- "title": "Control",
210
- "type": "integer",
211
- "minimum": 0,
212
- "maximum": 1,
213
- "default": 0,
214
- "oneOf": [
215
- {
216
- "title": "Heater/Cooler",
217
- "enum": [
218
- 0
219
- ]
220
- },
221
- {
222
- "title": "Thermostat",
223
- "enum": [
224
- 1
225
- ]
226
- }
227
- ],
228
- "description": "Select device control mode displayed in HomeKit app.",
229
- "required": true
230
- },
231
- "ataHeatDryFanMode": {
232
- "title": "Heat",
233
- "type": "integer",
234
- "minimum": 0,
235
- "maximum": 3,
236
- "default": 1,
237
- "oneOf": [
238
- {
239
- "title": "None/Disabled",
240
- "enum": [
241
- 0
242
- ]
243
- },
244
- {
245
- "title": "Heat",
246
- "enum": [
247
- 1
248
- ]
249
- },
250
- {
251
- "title": "Dry",
252
- "enum": [
253
- 2
254
- ]
255
- },
256
- {
257
- "title": "Fan",
258
- "enum": [
259
- 3
260
- ]
261
- }
262
- ],
263
- "description": "Select the operating mode for Heat, if this mode is not supported, it will be disabled.",
264
- "required": true
265
- },
266
- "ataCoolDryFanMode": {
267
- "title": "Cool",
268
- "type": "integer",
269
- "minimum": 0,
270
- "maximum": 3,
271
- "default": 1,
272
- "oneOf": [
273
- {
274
- "title": "None/Disabled",
275
- "enum": [
276
- 0
277
- ]
278
- },
279
- {
280
- "title": "Cool",
281
- "enum": [
282
- 1
283
- ]
284
- },
285
- {
286
- "title": "Dry",
287
- "enum": [
288
- 2
289
- ]
290
- },
291
- {
292
- "title": "Fan",
293
- "enum": [
294
- 3
295
- ]
296
- }
297
- ],
298
- "description": "Select the operating mode for Cool, if this mode is not supported, it will be disabled.",
299
- "required": true
300
- },
301
- "ataAutoDryFanMode": {
302
- "title": "Auto",
303
- "type": "integer",
304
- "minimum": 0,
305
- "maximum": 3,
306
- "default": 1,
307
- "oneOf": [
308
- {
309
- "title": "None/Disabled",
310
- "enum": [
311
- 0
312
- ]
313
- },
314
- {
315
- "title": "Auto",
316
- "enum": [
317
- 1
318
- ]
319
- },
320
- {
321
- "title": "Dry",
322
- "enum": [
323
- 2
324
- ]
325
- },
326
- {
327
- "title": "Fan",
328
- "enum": [
329
- 3
330
- ]
331
- }
332
- ],
333
- "description": "Select the operating mode for Auto, if this mode is not supported, it will be disabled.",
334
- "required": true
335
- },
336
- "ataPresets": {
337
- "title": "Presets",
338
- "type": "boolean",
339
- "default": false,
340
- "description": "This enable extra buttons for configured presets and display it in HomeKit app.",
341
- "required": false
342
- },
343
- "ataTemperatureSensor": {
344
- "title": "Room",
345
- "type": "boolean",
346
- "default": false,
347
- "description": "This enable extra room temperature sensor to use with automations in HomeKit app.",
348
- "required": false
349
- },
350
- "ataTemperatureSensorOutdoor": {
351
- "title": "Outdoor",
352
- "type": "boolean",
353
- "default": false,
354
- "description": "This enable extra outdoor temperature sensor to use with automations in HomeKit app.",
355
- "required": false
356
- },
357
- "ataButtons": {
358
- "title": "Button / Sensor",
207
+ "ataDevices": {
208
+ "title": "Devices ATA",
359
209
  "type": "array",
360
210
  "items": {
361
211
  "type": "object",
@@ -363,562 +213,122 @@
363
213
  "name": {
364
214
  "title": "Name",
365
215
  "type": "string",
366
- "placeholder": "Button name",
367
- "description": "Your own name displayed in Homebridge/HomeKit app.",
368
- "required": true
369
- },
370
- "mode": {
371
- "title": "Mode",
372
- "type": "integer",
373
- "minimum": 0,
374
- "maximum": 40,
375
- "description": "Function, VH - Vane Horizontal, VV - Vane Vertical.",
376
- "oneOf": [
377
- {
378
- "title": "POWER ON/OFF",
379
- "enum": [
380
- 0
381
- ]
382
- },
383
- {
384
- "title": "MODE HEAT",
385
- "enum": [
386
- 1
387
- ]
388
- },
389
- {
390
- "title": "MODE DRY",
391
- "enum": [
392
- 2
393
- ]
394
- },
395
- {
396
- "title": "MODE COOL",
397
- "enum": [
398
- 3
399
- ]
400
- },
401
- {
402
- "title": "MODE FAN",
403
- "enum": [
404
- 4
405
- ]
406
- },
407
- {
408
- "title": "MODE AUTO",
409
- "enum": [
410
- 5
411
- ]
412
- },
413
- {
414
- "title": "MODE PURIFY",
415
- "enum": [
416
- 6
417
- ]
418
- },
419
- {
420
- "title": "MODE DRY CONTROL HIDE",
421
- "enum": [
422
- 7
423
- ]
424
- },
425
- {
426
- "title": "VH MODE AUTO",
427
- "enum": [
428
- 10
429
- ]
430
- },
431
- {
432
- "title": "VH MODE 1 / LEFT",
433
- "enum": [
434
- 11
435
- ]
436
- },
437
- {
438
- "title": "VH MODE 2",
439
- "enum": [
440
- 12
441
- ]
442
- },
443
- {
444
- "title": "VH MODE 3 / CENTER",
445
- "enum": [
446
- 13
447
- ]
448
- },
449
- {
450
- "title": "VH MODE 4",
451
- "enum": [
452
- 14
453
- ]
454
- },
455
- {
456
- "title": "VH MODE 5 / RIGHT",
457
- "enum": [
458
- 15
459
- ]
460
- },
461
- {
462
- "title": "VH MODE SPLIT",
463
- "enum": [
464
- 16
465
- ]
466
- },
467
- {
468
- "title": "VH MODE SWING",
469
- "enum": [
470
- 17
471
- ]
472
- },
473
- {
474
- "title": "VV MODE AUTO",
475
- "enum": [
476
- 20
477
- ]
478
- },
479
- {
480
- "title": "VV MODE 1 / UP",
481
- "enum": [
482
- 21
483
- ]
484
- },
485
- {
486
- "title": "VV MODE 2",
487
- "enum": [
488
- 22
489
- ]
490
- },
491
- {
492
- "title": "VV MODE 3 / CENTER",
493
- "enum": [
494
- 23
495
- ]
496
- },
497
- {
498
- "title": "VV MODE 4",
499
- "enum": [
500
- 24
501
- ]
502
- },
503
- {
504
- "title": "VV MODE 5 / DOWN",
505
- "enum": [
506
- 25
507
- ]
508
- },
509
- {
510
- "title": "VV SWING",
511
- "enum": [
512
- 26
513
- ]
514
- },
515
- {
516
- "title": "VH/VV CONTROLS HIDE",
517
- "enum": [
518
- 27
519
- ]
520
- },
521
- {
522
- "title": "FAN MODE AUTO",
523
- "enum": [
524
- 30
525
- ]
526
- },
527
- {
528
- "title": "FAN MODE 1",
529
- "enum": [
530
- 31
531
- ]
532
- },
533
- {
534
- "title": "FAN MODE 2",
535
- "enum": [
536
- 32
537
- ]
538
- },
539
- {
540
- "title": "FAN MODE 3",
541
- "enum": [
542
- 33
543
- ]
544
- },
545
- {
546
- "title": "FAN MODE 4",
547
- "enum": [
548
- 34
549
- ]
550
- },
551
- {
552
- "title": "FAN MODE 5",
553
- "enum": [
554
- 35
555
- ]
556
- },
557
- {
558
- "title": "FAN MODE 6",
559
- "enum": [
560
- 36
561
- ]
562
- },
563
- {
564
- "title": "LOCK CONTROL All",
565
- "enum": [
566
- 37
567
- ]
568
- },
569
- {
570
- "title": "LOCK CONTROL POWER",
571
- "enum": [
572
- 38
573
- ]
574
- },
575
- {
576
- "title": "LOCK CONTROL MODE",
577
- "enum": [
578
- 39
579
- ]
580
- },
581
- {
582
- "title": "LOCK CONTROL TEMPERATURE",
583
- "enum": [
584
- 40
585
- ]
586
- }
587
- ],
588
- "required": true
589
- },
590
- "displayType": {
591
- "title": "Type",
592
- "type": "integer",
593
- "minimum": 0,
594
- "maximum": 5,
595
- "oneOf": [
596
- {
597
- "title": "None/Disabled",
598
- "enum": [
599
- 0
600
- ]
601
- },
602
- {
603
- "title": "Outlet",
604
- "enum": [
605
- 1
606
- ]
607
- },
608
- {
609
- "title": "Switch",
610
- "enum": [
611
- 2
612
- ]
613
- },
614
- {
615
- "title": "Motion Sensor",
616
- "enum": [
617
- 3
618
- ]
619
- },
620
- {
621
- "title": "Occupancy Sensor",
622
- "enum": [
623
- 4
624
- ]
625
- },
626
- {
627
- "title": "Contact Sensor",
628
- "enum": [
629
- 5
630
- ]
631
- }
632
- ],
633
- "description": "Select the characteristic type to be displayed in HomeKit app.",
634
- "required": true
635
- },
636
- "namePrefix": {
637
- "title": "Prefix",
638
- "type": "boolean",
639
- "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
640
- "required": false
641
- }
642
- }
643
- },
644
- "required": false
645
- },
646
- "ataHideDeviceById": {
647
- "title": "Hide Device By Id",
648
- "type": "array",
649
- "items": {
650
- "type": "object",
651
- "properties": {
652
- "name": {
653
- "title": "Name",
654
- "type": "string",
655
- "placeholder": "Device name",
656
- "description": "Your own name.",
657
216
  "required": false
658
217
  },
659
218
  "id": {
660
- "title": "Id",
661
- "type": "string",
662
- "description": "Set device Id to be hidden and not exposed to the Homebridge/Homekit.",
663
- "required": false
664
- }
665
- }
666
- },
667
- "required": false
668
- },
669
- "atwDisplayMode": {
670
- "title": "Control Mode",
671
- "type": "integer",
672
- "minimum": 0,
673
- "maximum": 1,
674
- "default": 0,
675
- "oneOf": [
676
- {
677
- "title": "Heater/Cooler",
678
- "enum": [
679
- 0
680
- ]
681
- },
682
- {
683
- "title": "Thermostat",
684
- "enum": [
685
- 1
686
- ]
687
- }
688
- ],
689
- "description": "Select main control mode.",
690
- "required": true
691
- },
692
- "atwTemperatureSensor": {
693
- "title": "Temperature Sensor Room",
694
- "type": "boolean",
695
- "default": false,
696
- "description": "This enable extra room temperature sensor to use with automations in HomeKit app.",
697
- "required": false
698
- },
699
- "atwTemperatureSensorFlow": {
700
- "title": "Temperature Sensor Flow",
701
- "type": "boolean",
702
- "default": false,
703
- "description": "This enable extra Flow temperature sensor to use with automations in HomeKit app.",
704
- "required": false
705
- },
706
- "atwTemperatureSensorReturn": {
707
- "title": "Temperature Sensor Return",
708
- "type": "boolean",
709
- "default": false,
710
- "description": "This enable extra Return temperature sensor to use with automations in HomeKit app.",
711
- "required": false
712
- },
713
- "atwTemperatureSensorFlowZone1": {
714
- "title": "Temperature Sensor Flow Zone 1",
715
- "type": "boolean",
716
- "default": false,
717
- "description": "This enable extra Flow Zone 1 temperature sensor to use with automations in HomeKit app.",
718
- "required": false
719
- },
720
- "atwTemperatureSensorReturnZone1": {
721
- "title": "Temperature Sensor Return Zone 1",
722
- "type": "boolean",
723
- "default": false,
724
- "description": "This enable extra Return Zone 1 temperature sensor to use with automations in HomeKit app.",
725
- "required": false
726
- },
727
- "atwTemperatureSensorFlowWaterTank": {
728
- "title": "Temperature Sensor Flow Water Tank",
729
- "type": "boolean",
730
- "default": false,
731
- "description": "This enable extra Flow Water Tank temperature sensor to use with automations in HomeKit app.",
732
- "required": false
733
- },
734
- "atwTemperatureSensorReturnWaterTank": {
735
- "title": "Temperature Sensor Return Water Tank",
736
- "type": "boolean",
737
- "default": false,
738
- "description": "This enable extra Return Water Tank temperature sensor to use with automations in HomeKit app.",
739
- "required": false
740
- },
741
- "atwTemperatureSensorFlowZone2": {
742
- "title": "Temperature Sensor Flow Zone 2",
743
- "type": "boolean",
744
- "default": false,
745
- "description": "This enable extra Flow Zone 2 temperature sensor to use with automations in HomeKit app.",
746
- "required": false
747
- },
748
- "atwTemperatureSensorReturnZone2": {
749
- "title": "Temperature Sensor Return Zone 2",
750
- "type": "boolean",
751
- "default": false,
752
- "description": "This enable extra Return Zone 2 temperature sensor to use with automations in HomeKit app.",
753
- "required": false
754
- },
755
- "atwPresets": {
756
- "title": "Presets",
757
- "type": "boolean",
758
- "default": false,
759
- "description": "This enable extra buttons for configured presets and display it in HomeKit app.",
760
- "required": false
761
- },
762
- "atwButtons": {
763
- "title": "Button",
764
- "type": "array",
765
- "items": {
766
- "type": "object",
767
- "properties": {
768
- "name": {
769
- "title": "Name",
770
- "type": "string",
771
- "placeholder": "Button name",
772
- "description": "Your own name displayed in Homebridge/HomeKit app.",
773
- "required": true
219
+ "title": "ID",
220
+ "type": "integer",
221
+ "required": false
774
222
  },
775
- "mode": {
776
- "title": "Mode",
223
+ "type": {
224
+ "title": "Type",
225
+ "type": "integer",
226
+ "required": false
227
+ },
228
+ "displayMode": {
229
+ "title": "Control",
777
230
  "type": "integer",
778
231
  "minimum": 0,
779
- "maximum": 70,
780
- "description": "Select the function.",
232
+ "maximum": 1,
233
+ "default": 0,
781
234
  "oneOf": [
782
235
  {
783
- "title": "POWER ON/OFF",
236
+ "title": "None/Disabled",
784
237
  "enum": [
785
238
  0
786
239
  ]
787
240
  },
788
241
  {
789
- "title": "MODE HEAT",
242
+ "title": "Heater/Cooler",
790
243
  "enum": [
791
244
  1
792
245
  ]
793
246
  },
794
247
  {
795
- "title": "MODE COOL",
796
- "enum": [
797
- 2
798
- ]
799
- },
800
- {
801
- "title": "MODE HOLIDAY",
802
- "enum": [
803
- 3
804
- ]
805
- },
806
- {
807
- "title": "LOCK CONTROL ALL",
808
- "enum": [
809
- 10
810
- ]
811
- },
812
- {
813
- "title": "Z1 MODE HEAT THERMOSTAT",
814
- "enum": [
815
- 20
816
- ]
817
- },
818
- {
819
- "title": "Z1 MODE HEAT FLOW",
820
- "enum": [
821
- 21
822
- ]
823
- },
824
- {
825
- "title": "Z1 MODE HEAT CURVE",
826
- "enum": [
827
- 22
828
- ]
829
- },
830
- {
831
- "title": "Z1 MODE COOL THERMOSTAT",
832
- "enum": [
833
- 23
834
- ]
835
- },
836
- {
837
- "title": "Z1 MODE COOL FLOW",
838
- "enum": [
839
- 24
840
- ]
841
- },
842
- {
843
- "title": "Z1 MODE FLOOR DRY UP",
844
- "enum": [
845
- 25
846
- ]
847
- },
848
- {
849
- "title": "Z1 LOCK CONTROL",
850
- "enum": [
851
- 30
852
- ]
853
- },
854
- {
855
- "title": "HW MODE FORCE",
856
- "enum": [
857
- 40
858
- ]
859
- },
860
- {
861
- "title": "HW MODE ECO",
248
+ "title": "Thermostat",
862
249
  "enum": [
863
- 41
250
+ 1
864
251
  ]
865
- },
252
+ }
253
+ ],
254
+ "description": "Select device control mode displayed in HomeKit app.",
255
+ "required": true
256
+ },
257
+ "heatDryFanMode": {
258
+ "title": "Heat",
259
+ "type": "integer",
260
+ "minimum": 0,
261
+ "maximum": 3,
262
+ "default": 1,
263
+ "oneOf": [
866
264
  {
867
- "title": "HW LOCK CONTROL",
265
+ "title": "None/Disabled",
868
266
  "enum": [
869
- 50
267
+ 0
870
268
  ]
871
269
  },
872
270
  {
873
- "title": "Z2 MODE HEAT THERMOSTAT",
271
+ "title": "Heat",
874
272
  "enum": [
875
- 60
273
+ 1
876
274
  ]
877
275
  },
878
276
  {
879
- "title": "Z2 MODE HEAT FLOW",
277
+ "title": "Dry",
880
278
  "enum": [
881
- 61
279
+ 2
882
280
  ]
883
281
  },
884
282
  {
885
- "title": "Z2 MODE HEAT CURVE",
283
+ "title": "Fan",
886
284
  "enum": [
887
- 62
285
+ 3
888
286
  ]
889
- },
287
+ }
288
+ ],
289
+ "description": "Select the operating mode for Heat, if this mode is not supported, it will be disabled.",
290
+ "required": true
291
+ },
292
+ "coolDryFanMode": {
293
+ "title": "Cool",
294
+ "type": "integer",
295
+ "minimum": 0,
296
+ "maximum": 3,
297
+ "oneOf": [
890
298
  {
891
- "title": "Z2 MODE COOL THERMOSTAT",
299
+ "title": "None/Disabled",
892
300
  "enum": [
893
- 63
301
+ 0
894
302
  ]
895
303
  },
896
304
  {
897
- "title": "Z2 MODE COOL FLOW",
305
+ "title": "Cool",
898
306
  "enum": [
899
- 64
307
+ 1
900
308
  ]
901
309
  },
902
310
  {
903
- "title": "Z2 MODE FLOOR DRY UP",
311
+ "title": "Dry",
904
312
  "enum": [
905
- 65
313
+ 2
906
314
  ]
907
315
  },
908
316
  {
909
- "title": "Z2 LOCK CONTROL",
317
+ "title": "Fan",
910
318
  "enum": [
911
- 70
319
+ 3
912
320
  ]
913
321
  }
914
322
  ],
323
+ "description": "Select the operating mode for Cool, if this mode is not supported, it will be disabled.",
915
324
  "required": true
916
325
  },
917
- "displayType": {
918
- "title": "Type",
326
+ "autoDryFanMode": {
327
+ "title": "Auto",
919
328
  "type": "integer",
920
329
  "minimum": 0,
921
- "maximum": 5,
330
+ "maximum": 3,
331
+ "default": 1,
922
332
  "oneOf": [
923
333
  {
924
334
  "title": "None/Disabled",
@@ -927,125 +337,346 @@
927
337
  ]
928
338
  },
929
339
  {
930
- "title": "Outlet",
340
+ "title": "Auto",
931
341
  "enum": [
932
342
  1
933
343
  ]
934
344
  },
935
345
  {
936
- "title": "Switch",
346
+ "title": "Dry",
937
347
  "enum": [
938
348
  2
939
349
  ]
940
350
  },
941
351
  {
942
- "title": "Motion Sensor",
352
+ "title": "Fan",
943
353
  "enum": [
944
354
  3
945
355
  ]
946
- },
947
- {
948
- "title": "Occupancy Sensor",
949
- "enum": [
950
- 4
951
- ]
952
- },
953
- {
954
- "title": "Contact Sensor",
955
- "enum": [
956
- 5
957
- ]
958
356
  }
959
357
  ],
960
- "description": "Select the characteristic type to be displayed in HomeKit app.",
358
+ "description": "Select the operating mode for Auto, if this mode is not supported, it will be disabled.",
961
359
  "required": true
962
360
  },
963
- "namePrefix": {
964
- "title": "Prefix",
361
+ "presets": {
362
+ "title": "Presets",
965
363
  "type": "boolean",
966
- "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
364
+ "default": false,
365
+ "description": "This enable extra buttons for configured presets and display it in HomeKit app.",
967
366
  "required": false
968
- }
969
- }
970
- },
971
- "required": false
972
- },
973
- "atwHideDeviceById": {
974
- "title": "Hide Device By Id",
975
- "type": "array",
976
- "items": {
977
- "type": "object",
978
- "properties": {
979
- "name": {
980
- "title": "Name",
981
- "type": "string",
982
- "placeholder": "Device name",
983
- "description": "Your own name.",
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.",
984
373
  "required": false
985
374
  },
986
- "id": {
987
- "title": "Id",
988
- "type": "string",
989
- "description": "Set device Id to be hidden and not exposed to the Homebridge/Homekit.",
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.",
990
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
+ "default": 0,
621
+ "oneOf": [
622
+ {
623
+ "title": "None/Disabled",
624
+ "enum": [
625
+ 0
626
+ ]
627
+ },
628
+ {
629
+ "title": "Outlet",
630
+ "enum": [
631
+ 1
632
+ ]
633
+ },
634
+ {
635
+ "title": "Switch",
636
+ "enum": [
637
+ 2
638
+ ]
639
+ },
640
+ {
641
+ "title": "Motion Sensor",
642
+ "enum": [
643
+ 3
644
+ ]
645
+ },
646
+ {
647
+ "title": "Occupancy Sensor",
648
+ "enum": [
649
+ 4
650
+ ]
651
+ },
652
+ {
653
+ "title": "Contact Sensor",
654
+ "enum": [
655
+ 5
656
+ ]
657
+ }
658
+ ],
659
+ "description": "Select the characteristic type to be displayed in HomeKit app.",
660
+ "required": true
661
+ },
662
+ "namePrefix": {
663
+ "title": "Prefix",
664
+ "type": "boolean",
665
+ "default": false,
666
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
667
+ "required": false
668
+ }
669
+ }
670
+ }
991
671
  }
992
672
  }
993
673
  },
994
- "required": false
995
- },
996
- "ervDisplayMode": {
997
- "title": "Control Mode",
998
- "type": "integer",
999
- "minimum": 0,
1000
- "maximum": 1,
1001
- "default": 0,
1002
- "oneOf": [
1003
- {
1004
- "title": "Heater/Cooler",
1005
- "enum": [
1006
- 0
1007
- ]
1008
- },
1009
- {
1010
- "title": "Thermostat",
1011
- "enum": [
1012
- 1
1013
- ]
1014
- }
1015
- ],
1016
- "description": "Select main control mode.",
1017
- "required": true
1018
- },
1019
- "ervTemperatureSensor": {
1020
- "title": "Temperature Sensor Room",
1021
- "type": "boolean",
1022
- "default": false,
1023
- "description": "This enable extra temperature sensor to use with automations in HomeKit app.",
1024
- "required": false
1025
- },
1026
- "ervTemperatureSensorOutdoor": {
1027
- "title": "Temperature Sensor Outdoor",
1028
- "type": "boolean",
1029
- "default": false,
1030
- "description": "This enable extra outdoor temperature sensor to use with automations in HomeKit app.",
1031
- "required": false
1032
- },
1033
- "ervTemperatureSensorSupply": {
1034
- "title": "Temperature Sensor Supply",
1035
- "type": "boolean",
1036
- "default": false,
1037
- "description": "This enable extra supply temperature sensor to use with automations in HomeKit app.",
1038
- "required": false
1039
- },
1040
- "ervPresets": {
1041
- "title": "Presets",
1042
- "type": "boolean",
1043
- "default": false,
1044
- "description": "This enable extra buttons for configured presets and display it in HomeKit app.",
1045
- "required": false
674
+ "condition": {
675
+ "functionBody": "const devices = model.accounts[arrayIndices]?.ataDevices || []; return devices.length > 0 && devices.every(device => device.id != null && device.id !== '');"
676
+ }
1046
677
  },
1047
- "ervButtons": {
1048
- "title": "Button",
678
+ "atwDevices": {
679
+ "title": "Devices ATW",
1049
680
  "type": "array",
1050
681
  "items": {
1051
682
  "type": "object",
@@ -1053,109 +684,24 @@
1053
684
  "name": {
1054
685
  "title": "Name",
1055
686
  "type": "string",
1056
- "placeholder": "Button name",
1057
- "description": "Your own name displayed in Homebridge/HomeKit app.",
1058
- "required": true
687
+ "required": false
1059
688
  },
1060
- "mode": {
689
+ "id": {
1061
690
  "title": "Mode",
1062
691
  "type": "integer",
1063
- "minimum": 0,
1064
- "maximum": 18,
1065
- "description": "Select the function.",
1066
- "oneOf": [
1067
- {
1068
- "title": "POWER ON/OFF",
1069
- "enum": [
1070
- 0
1071
- ]
1072
- },
1073
- {
1074
- "title": "MODE LOSSNAY",
1075
- "enum": [
1076
- 1
1077
- ]
1078
- },
1079
- {
1080
- "title": "MODE BYPASS",
1081
- "enum": [
1082
- 2
1083
- ]
1084
- },
1085
- {
1086
- "title": "MODE AUTO",
1087
- "enum": [
1088
- 3
1089
- ]
1090
- },
1091
- {
1092
- "title": "MODE NIGHT PURGE",
1093
- "enum": [
1094
- 4
1095
- ]
1096
- },
1097
- {
1098
- "title": "FAN MODE AUTO",
1099
- "enum": [
1100
- 10
1101
- ]
1102
- },
1103
- {
1104
- "title": "FAN MODE 1",
1105
- "enum": [
1106
- 11
1107
- ]
1108
- },
1109
- {
1110
- "title": "FAN MODE 2",
1111
- "enum": [
1112
- 12
1113
- ]
1114
- },
1115
- {
1116
- "title": "FAN MODE 3",
1117
- "enum": [
1118
- 13
1119
- ]
1120
- },
1121
- {
1122
- "title": "FAN MODE 4",
1123
- "enum": [
1124
- 14
1125
- ]
1126
- },
1127
- {
1128
- "title": "LOCK CONTROL",
1129
- "enum": [
1130
- 15
1131
- ]
1132
- },
1133
- {
1134
- "title": "ROOM TEMP HIDE",
1135
- "enum": [
1136
- 16
1137
- ]
1138
- },
1139
- {
1140
- "title": "SUPPLY TEMP HIDE",
1141
- "enum": [
1142
- 17
1143
- ]
1144
- },
1145
- {
1146
- "title": "OUTDOOR TEMP HIDE",
1147
- "enum": [
1148
- 18
1149
- ]
1150
- }
1151
- ],
1152
- "required": true
692
+ "required": false
1153
693
  },
1154
- "displayType": {
694
+ "type": {
1155
695
  "title": "Type",
1156
696
  "type": "integer",
697
+ "required": false
698
+ },
699
+ "displayMode": {
700
+ "title": "Control",
701
+ "type": "integer",
1157
702
  "minimum": 0,
1158
- "maximum": 5,
703
+ "maximum": 2,
704
+ "default": 1,
1159
705
  "oneOf": [
1160
706
  {
1161
707
  "title": "None/Disabled",
@@ -1164,51 +710,311 @@
1164
710
  ]
1165
711
  },
1166
712
  {
1167
- "title": "Outlet",
713
+ "title": "Heater/Cooler",
1168
714
  "enum": [
1169
715
  1
1170
716
  ]
1171
717
  },
1172
718
  {
1173
- "title": "Switch",
719
+ "title": "Thermostat",
1174
720
  "enum": [
1175
721
  2
1176
722
  ]
1177
- },
1178
- {
1179
- "title": "Motion Sensor",
1180
- "enum": [
1181
- 3
1182
- ]
1183
- },
1184
- {
1185
- "title": "Occupancy Sensor",
1186
- "enum": [
1187
- 4
1188
- ]
1189
- },
1190
- {
1191
- "title": "Contact Sensor",
1192
- "enum": [
1193
- 5
1194
- ]
1195
723
  }
1196
724
  ],
1197
- "description": "Select the characteristic type to be displayed in HomeKit app.",
725
+ "description": "Select device control mode displayed in HomeKit app.",
726
+ "required": true
727
+ },
728
+ "temperatureSensor": {
729
+ "title": "Temperature Sensor Room",
730
+ "type": "boolean",
731
+ "default": false,
732
+ "description": "This enable extra temperature sensor to use with automations in HomeKit app.",
733
+ "required": false
734
+ },
735
+ "temperatureSensorFlow": {
736
+ "title": "Temperature Sensor Flow",
737
+ "type": "boolean",
738
+ "default": false,
739
+ "description": "This enable extra Flow temperature sensor to use with automations in HomeKit app.",
740
+ "required": false
741
+ },
742
+ "temperatureSensorReturn": {
743
+ "title": "Temperature Sensor Return",
744
+ "type": "boolean",
745
+ "default": false,
746
+ "description": "This enable extra Return temperature sensor to use with automations in HomeKit app.",
747
+ "required": false
748
+ },
749
+ "temperatureSensorFlowZone1": {
750
+ "title": "Temperature Sensor Flow Zone 1",
751
+ "type": "boolean",
752
+ "default": false,
753
+ "description": "This enable extra Flow Zone 1 temperature sensor to use with automations in HomeKit app.",
754
+ "required": false
755
+ },
756
+ "temperatureSensorReturnZone1": {
757
+ "title": "Temperature Sensor Return Zone 1",
758
+ "type": "boolean",
759
+ "default": false,
760
+ "description": "This enable extra Return Zone 1 temperature sensor to use with automations in HomeKit app.",
761
+ "required": false
762
+ },
763
+ "temperatureSensorFlowWaterTank": {
764
+ "title": "Temperature Sensor Flow Water Tank",
765
+ "type": "boolean",
766
+ "default": false,
767
+ "description": "This enable extra Flow Water Tank temperature sensor to use with automations in HomeKit app.",
768
+ "required": false
769
+ },
770
+ "temperatureSensorReturnWaterTank": {
771
+ "title": "Temperature Sensor Return Water Tank",
772
+ "type": "boolean",
773
+ "default": false,
774
+ "description": "This enable extra Return Water Tank temperature sensor to use with automations in HomeKit app.",
775
+ "required": false
776
+ },
777
+ "temperatureSensorFlowZone2": {
778
+ "title": "Temperature Sensor Flow Zone 2",
779
+ "type": "boolean",
780
+ "default": false,
781
+ "description": "This enable extra Flow Zone 2 temperature sensor to use with automations in HomeKit app.",
1198
782
  "required": false
1199
783
  },
1200
- "namePrefix": {
1201
- "title": "Prefix",
784
+ "temperatureSensorReturnZone2": {
785
+ "title": "Temperature Sensor Return Zone 2",
1202
786
  "type": "boolean",
1203
- "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
787
+ "default": false,
788
+ "description": "This enable extra Return Zone 2 temperature sensor to use with automations in HomeKit app.",
1204
789
  "required": false
790
+ },
791
+ "presets": {
792
+ "title": "Presets",
793
+ "type": "boolean",
794
+ "default": false,
795
+ "description": "This enable extra buttons for configured presets and display it in HomeKit app.",
796
+ "required": false
797
+ },
798
+ "buttonsSensors": {
799
+ "title": "Button",
800
+ "type": "array",
801
+ "items": {
802
+ "type": "object",
803
+ "properties": {
804
+ "name": {
805
+ "title": "Name",
806
+ "type": "string",
807
+ "placeholder": "Button name",
808
+ "description": "Your own name displayed in Homebridge/HomeKit app.",
809
+ "required": true
810
+ },
811
+ "mode": {
812
+ "title": "Mode",
813
+ "type": "integer",
814
+ "minimum": 0,
815
+ "maximum": 70,
816
+ "description": "Select the function.",
817
+ "oneOf": [
818
+ {
819
+ "title": "POWER ON/OFF",
820
+ "enum": [
821
+ 0
822
+ ]
823
+ },
824
+ {
825
+ "title": "MODE HEAT",
826
+ "enum": [
827
+ 1
828
+ ]
829
+ },
830
+ {
831
+ "title": "MODE COOL",
832
+ "enum": [
833
+ 2
834
+ ]
835
+ },
836
+ {
837
+ "title": "MODE HOLIDAY",
838
+ "enum": [
839
+ 3
840
+ ]
841
+ },
842
+ {
843
+ "title": "LOCK CONTROL ALL",
844
+ "enum": [
845
+ 10
846
+ ]
847
+ },
848
+ {
849
+ "title": "Z1 MODE HEAT THERMOSTAT",
850
+ "enum": [
851
+ 20
852
+ ]
853
+ },
854
+ {
855
+ "title": "Z1 MODE HEAT FLOW",
856
+ "enum": [
857
+ 21
858
+ ]
859
+ },
860
+ {
861
+ "title": "Z1 MODE HEAT CURVE",
862
+ "enum": [
863
+ 22
864
+ ]
865
+ },
866
+ {
867
+ "title": "Z1 MODE COOL THERMOSTAT",
868
+ "enum": [
869
+ 23
870
+ ]
871
+ },
872
+ {
873
+ "title": "Z1 MODE COOL FLOW",
874
+ "enum": [
875
+ 24
876
+ ]
877
+ },
878
+ {
879
+ "title": "Z1 MODE FLOOR DRY UP",
880
+ "enum": [
881
+ 25
882
+ ]
883
+ },
884
+ {
885
+ "title": "Z1 LOCK CONTROL",
886
+ "enum": [
887
+ 30
888
+ ]
889
+ },
890
+ {
891
+ "title": "HW MODE FORCE",
892
+ "enum": [
893
+ 40
894
+ ]
895
+ },
896
+ {
897
+ "title": "HW MODE ECO",
898
+ "enum": [
899
+ 41
900
+ ]
901
+ },
902
+ {
903
+ "title": "HW LOCK CONTROL",
904
+ "enum": [
905
+ 50
906
+ ]
907
+ },
908
+ {
909
+ "title": "Z2 MODE HEAT THERMOSTAT",
910
+ "enum": [
911
+ 60
912
+ ]
913
+ },
914
+ {
915
+ "title": "Z2 MODE HEAT FLOW",
916
+ "enum": [
917
+ 61
918
+ ]
919
+ },
920
+ {
921
+ "title": "Z2 MODE HEAT CURVE",
922
+ "enum": [
923
+ 62
924
+ ]
925
+ },
926
+ {
927
+ "title": "Z2 MODE COOL THERMOSTAT",
928
+ "enum": [
929
+ 63
930
+ ]
931
+ },
932
+ {
933
+ "title": "Z2 MODE COOL FLOW",
934
+ "enum": [
935
+ 64
936
+ ]
937
+ },
938
+ {
939
+ "title": "Z2 MODE FLOOR DRY UP",
940
+ "enum": [
941
+ 65
942
+ ]
943
+ },
944
+ {
945
+ "title": "Z2 LOCK CONTROL",
946
+ "enum": [
947
+ 70
948
+ ]
949
+ }
950
+ ],
951
+ "required": true
952
+ },
953
+ "displayType": {
954
+ "title": "Type",
955
+ "type": "integer",
956
+ "minimum": 0,
957
+ "maximum": 5,
958
+ "default": 0,
959
+ "oneOf": [
960
+ {
961
+ "title": "None/Disabled",
962
+ "enum": [
963
+ 0
964
+ ]
965
+ },
966
+ {
967
+ "title": "Outlet",
968
+ "enum": [
969
+ 1
970
+ ]
971
+ },
972
+ {
973
+ "title": "Switch",
974
+ "enum": [
975
+ 2
976
+ ]
977
+ },
978
+ {
979
+ "title": "Motion Sensor",
980
+ "enum": [
981
+ 3
982
+ ]
983
+ },
984
+ {
985
+ "title": "Occupancy Sensor",
986
+ "enum": [
987
+ 4
988
+ ]
989
+ },
990
+ {
991
+ "title": "Contact Sensor",
992
+ "enum": [
993
+ 5
994
+ ]
995
+ }
996
+ ],
997
+ "description": "Select the characteristic type to be displayed in HomeKit app.",
998
+ "required": true
999
+ },
1000
+ "namePrefix": {
1001
+ "title": "Prefix",
1002
+ "type": "boolean",
1003
+ "default": false,
1004
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
1005
+ "required": false
1006
+ }
1007
+ }
1008
+ }
1205
1009
  }
1206
1010
  }
1207
1011
  },
1208
- "required": false
1012
+ "condition": {
1013
+ "functionBody": "const devices = model.accounts[arrayIndices]?.atwDevices || []; return devices.length > 0 && devices.every(device => device.id != null && device.id !== '');"
1014
+ }
1209
1015
  },
1210
- "ervHideDeviceById": {
1211
- "title": "Hide Device By Id",
1016
+ "ervDevices": {
1017
+ "title": "Devices ERV",
1212
1018
  "type": "array",
1213
1019
  "items": {
1214
1020
  "type": "object",
@@ -1216,19 +1022,244 @@
1216
1022
  "name": {
1217
1023
  "title": "Name",
1218
1024
  "type": "string",
1219
- "placeholder": "Device name",
1220
- "description": "Your own name.",
1221
1025
  "required": false
1222
1026
  },
1223
1027
  "id": {
1224
- "title": "Id",
1225
- "type": "string",
1226
- "description": "Set device Id to be hidden and not exposed to the Homebridge/Homekit.",
1028
+ "title": "Mode",
1029
+ "type": "integer",
1030
+ "required": false
1031
+ },
1032
+ "type": {
1033
+ "title": "Type",
1034
+ "type": "integer",
1035
+ "required": false
1036
+ },
1037
+ "displayMode": {
1038
+ "title": "Control",
1039
+ "type": "integer",
1040
+ "minimum": 0,
1041
+ "maximum": 2,
1042
+ "default": 0,
1043
+ "oneOf": [
1044
+ {
1045
+ "title": "None/Disabled",
1046
+ "enum": [
1047
+ 0
1048
+ ]
1049
+ },
1050
+ {
1051
+ "title": "Heater/Cooler",
1052
+ "enum": [
1053
+ 1
1054
+ ]
1055
+ },
1056
+ {
1057
+ "title": "Thermostat",
1058
+ "enum": [
1059
+ 2
1060
+ ]
1061
+ }
1062
+ ],
1063
+ "description": "Select device control mode displayed in HomeKit app.",
1064
+ "required": true
1065
+ },
1066
+ "temperatureSensor": {
1067
+ "title": "Temperature Sensor Room",
1068
+ "type": "boolean",
1069
+ "default": false,
1070
+ "description": "This enable extra temperature sensor to use with automations in HomeKit app.",
1071
+ "required": false
1072
+ },
1073
+ "temperatureSensorOutdoor": {
1074
+ "title": "Temperature Sensor Outdoor",
1075
+ "type": "boolean",
1076
+ "default": false,
1077
+ "description": "This enable extra outdoor temperature sensor to use with automations in HomeKit app.",
1078
+ "required": false
1079
+ },
1080
+ "temperatureSensorSupply": {
1081
+ "title": "Temperature Sensor Supply",
1082
+ "type": "boolean",
1083
+ "default": false,
1084
+ "description": "This enable extra supply temperature sensor to use with automations in HomeKit app.",
1227
1085
  "required": false
1086
+ },
1087
+ "presets": {
1088
+ "title": "Presets",
1089
+ "type": "boolean",
1090
+ "default": false,
1091
+ "description": "This enable extra buttons for configured presets and display it in HomeKit app.",
1092
+ "required": false
1093
+ },
1094
+ "buttonsSensors": {
1095
+ "title": "Button",
1096
+ "type": "array",
1097
+ "items": {
1098
+ "type": "object",
1099
+ "properties": {
1100
+ "name": {
1101
+ "title": "Name",
1102
+ "type": "string",
1103
+ "placeholder": "Button name",
1104
+ "description": "Your own name displayed in Homebridge/HomeKit app.",
1105
+ "required": true
1106
+ },
1107
+ "mode": {
1108
+ "title": "Mode",
1109
+ "type": "integer",
1110
+ "minimum": 0,
1111
+ "maximum": 18,
1112
+ "description": "Select the function.",
1113
+ "oneOf": [
1114
+ {
1115
+ "title": "POWER ON/OFF",
1116
+ "enum": [
1117
+ 0
1118
+ ]
1119
+ },
1120
+ {
1121
+ "title": "MODE LOSSNAY",
1122
+ "enum": [
1123
+ 1
1124
+ ]
1125
+ },
1126
+ {
1127
+ "title": "MODE BYPASS",
1128
+ "enum": [
1129
+ 2
1130
+ ]
1131
+ },
1132
+ {
1133
+ "title": "MODE AUTO",
1134
+ "enum": [
1135
+ 3
1136
+ ]
1137
+ },
1138
+ {
1139
+ "title": "MODE NIGHT PURGE",
1140
+ "enum": [
1141
+ 4
1142
+ ]
1143
+ },
1144
+ {
1145
+ "title": "FAN MODE AUTO",
1146
+ "enum": [
1147
+ 10
1148
+ ]
1149
+ },
1150
+ {
1151
+ "title": "FAN MODE 1",
1152
+ "enum": [
1153
+ 11
1154
+ ]
1155
+ },
1156
+ {
1157
+ "title": "FAN MODE 2",
1158
+ "enum": [
1159
+ 12
1160
+ ]
1161
+ },
1162
+ {
1163
+ "title": "FAN MODE 3",
1164
+ "enum": [
1165
+ 13
1166
+ ]
1167
+ },
1168
+ {
1169
+ "title": "FAN MODE 4",
1170
+ "enum": [
1171
+ 14
1172
+ ]
1173
+ },
1174
+ {
1175
+ "title": "LOCK CONTROL",
1176
+ "enum": [
1177
+ 15
1178
+ ]
1179
+ },
1180
+ {
1181
+ "title": "ROOM TEMP HIDE",
1182
+ "enum": [
1183
+ 16
1184
+ ]
1185
+ },
1186
+ {
1187
+ "title": "SUPPLY TEMP HIDE",
1188
+ "enum": [
1189
+ 17
1190
+ ]
1191
+ },
1192
+ {
1193
+ "title": "OUTDOOR TEMP HIDE",
1194
+ "enum": [
1195
+ 18
1196
+ ]
1197
+ }
1198
+ ],
1199
+ "required": true
1200
+ },
1201
+ "displayType": {
1202
+ "title": "Type",
1203
+ "type": "integer",
1204
+ "minimum": 0,
1205
+ "maximum": 5,
1206
+ "default": 0,
1207
+ "oneOf": [
1208
+ {
1209
+ "title": "None/Disabled",
1210
+ "enum": [
1211
+ 0
1212
+ ]
1213
+ },
1214
+ {
1215
+ "title": "Outlet",
1216
+ "enum": [
1217
+ 1
1218
+ ]
1219
+ },
1220
+ {
1221
+ "title": "Switch",
1222
+ "enum": [
1223
+ 2
1224
+ ]
1225
+ },
1226
+ {
1227
+ "title": "Motion Sensor",
1228
+ "enum": [
1229
+ 3
1230
+ ]
1231
+ },
1232
+ {
1233
+ "title": "Occupancy Sensor",
1234
+ "enum": [
1235
+ 4
1236
+ ]
1237
+ },
1238
+ {
1239
+ "title": "Contact Sensor",
1240
+ "enum": [
1241
+ 5
1242
+ ]
1243
+ }
1244
+ ],
1245
+ "description": "Select the characteristic type to be displayed in HomeKit app.",
1246
+ "required": true
1247
+ },
1248
+ "namePrefix": {
1249
+ "title": "Prefix",
1250
+ "type": "boolean",
1251
+ "default": false,
1252
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
1253
+ "required": false
1254
+ }
1255
+ }
1256
+ }
1228
1257
  }
1229
1258
  }
1230
1259
  },
1231
- "required": false
1260
+ "condition": {
1261
+ "functionBody": "const devices = model.accounts[arrayIndices]?.ervDevices || []; return devices.length > 0 && devices.every(device => device.id != null && device.id !== '');"
1262
+ }
1232
1263
  },
1233
1264
  "refreshInterval": {
1234
1265
  "title": "Account Refresh Interval",
@@ -1415,252 +1446,237 @@
1415
1446
  "accounts[].language",
1416
1447
  {
1417
1448
  "key": "accounts[]",
1418
- "type": "section",
1419
- "title": "Advanced Settings",
1420
- "expandable": true,
1421
- "expanded": false,
1449
+ "type": "tabarray",
1450
+ "title": "{{ value.title }}",
1422
1451
  "items": [
1423
1452
  {
1424
1453
  "key": "accounts[]",
1425
- "type": "tabarray",
1426
- "title": "{{ value.title }}",
1454
+ "title": "Air Conditioner",
1427
1455
  "items": [
1428
1456
  {
1429
- "key": "accounts[]",
1430
- "title": "Air Conditioner",
1457
+ "key": "accounts[].ataDevices",
1458
+ "type": "tabarray",
1459
+ "title": "{{ value.name }}",
1431
1460
  "items": [
1432
- "accounts[].ataDisplayMode",
1433
- "accounts[].ataPresets",
1434
1461
  {
1435
- "key": "accounts[]",
1436
- "type": "section",
1437
- "title": "Operating Modes",
1438
- "expandable": true,
1439
- "expanded": false,
1440
- "items": [
1441
- "accounts[].ataHeatDryFanMode",
1442
- "accounts[].ataCoolDryFanMode",
1443
- "accounts[].ataAutoDryFanMode"
1444
- ]
1462
+ "key": "accounts[].ataDevices[].name",
1463
+ "readonly": true
1445
1464
  },
1446
1465
  {
1447
- "key": "accounts[]",
1466
+ "key": "accounts[].ataDevices[].id",
1467
+ "readonly": true
1468
+ },
1469
+ {
1470
+ "key": "accounts[].ataDevices[].type",
1471
+ "readonly": true
1472
+ },
1473
+ "accounts[].ataDevices[].displayMode",
1474
+ "accounts[].ataDevices[].heatDryFanMode",
1475
+ "accounts[].ataDevices[].coolDryFanMode",
1476
+ "accounts[].ataDevices[].autoDryFanMode",
1477
+ "accounts[].ataDevices[].presets",
1478
+ {
1479
+ "key": "accounts[].ataDevices[]",
1448
1480
  "type": "section",
1449
1481
  "title": "Temperature Sensors",
1450
1482
  "expandable": true,
1451
1483
  "expanded": false,
1452
1484
  "items": [
1453
- "accounts[].ataTemperatureSensor",
1454
- "accounts[].ataTemperatureSensorOutdoor"
1485
+ "accounts[].ataDevices[].temperatureSensor",
1486
+ "accounts[].ataDevices[].temperatureSensorOutdoor"
1455
1487
  ]
1456
1488
  },
1457
1489
  {
1458
- "key": "accounts[]",
1490
+ "key": "accounts[].ataDevices[]",
1459
1491
  "type": "section",
1460
1492
  "title": "Buttons / Sensors",
1461
1493
  "expandable": true,
1462
1494
  "expanded": false,
1463
1495
  "items": [
1464
1496
  {
1465
- "key": "accounts[].ataButtons",
1497
+ "key": "accounts[].ataDevices[].buttonsSensors",
1466
1498
  "type": "tabarray",
1467
1499
  "title": "{{ value.name || 'button/sensor' }}",
1468
1500
  "items": [
1469
- "accounts[].ataButtons[].name",
1470
- "accounts[].ataButtons[].mode",
1471
- "accounts[].ataButtons[].displayType",
1472
- "accounts[].ataButtons[].namePrefix"
1473
- ]
1474
- }
1475
- ]
1476
- },
1477
- {
1478
- "key": "accounts[]",
1479
- "type": "section",
1480
- "title": "Hide Device By Id",
1481
- "expandable": true,
1482
- "expanded": false,
1483
- "items": [
1484
- {
1485
- "key": "accounts[].ataHideDeviceById",
1486
- "type": "tabarray",
1487
- "title": "{{ value.name || 'device' }}",
1488
- "items": [
1489
- "accounts[].ataHideDeviceById[].name",
1490
- "accounts[].ataHideDeviceById[].id"
1501
+ "accounts[].ataDevices[].buttonsSensors[].name",
1502
+ "accounts[].ataDevices[].buttonsSensors[].mode",
1503
+ "accounts[].ataDevices[].buttonsSensors[].displayType",
1504
+ "accounts[].ataDevices[].buttonsSensors[].namePrefix"
1491
1505
  ]
1492
1506
  }
1493
1507
  ]
1494
1508
  }
1495
1509
  ]
1496
- },
1510
+ }
1511
+ ]
1512
+ },
1513
+ {
1514
+ "key": "accounts[]",
1515
+ "title": "Heat Pump",
1516
+ "items": [
1497
1517
  {
1498
- "key": "accounts[]",
1499
- "title": "Heat Pump",
1518
+ "key": "accounts[].atwDevices",
1519
+ "type": "tabarray",
1520
+ "title": "{{ value.name }}",
1500
1521
  "items": [
1501
- "accounts[].atwDisplayMode",
1502
- "accounts[].atwPresets",
1503
1522
  {
1504
- "key": "accounts[]",
1523
+ "key": "accounts[].atwDevices[].name",
1524
+ "readonly": true
1525
+ },
1526
+ {
1527
+ "key": "accounts[].atwDevices[].id",
1528
+ "readonly": true
1529
+ },
1530
+ {
1531
+ "key": "accounts[].atwDevices[].type",
1532
+ "readonly": true
1533
+ },
1534
+ "accounts[].atwDevices[].displayMode",
1535
+ "accounts[].atwDevices[].presets",
1536
+ {
1537
+ "key": "accounts[].atwDevices[]",
1505
1538
  "type": "section",
1506
1539
  "title": "Temperature Sensors",
1507
1540
  "expandable": true,
1508
1541
  "expanded": false,
1509
1542
  "items": [
1510
- "accounts[].atwTemperatureSensor",
1511
- "accounts[].atwTemperatureSensorFlow",
1512
- "accounts[].atwTemperatureSensorReturn",
1513
- "accounts[].atwTemperatureSensorFlowZone1",
1514
- "accounts[].atwTemperatureSensorReturnZone1",
1515
- "accounts[].atwTemperatureSensorFlowWaterTank",
1516
- "accounts[].atwTemperatureSensorReturnWaterTank",
1517
- "accounts[].atwTemperatureSensorFlowZone2",
1518
- "accounts[].atwTemperatureSensorReturnZone2"
1543
+ "accounts[].atwDevices[].temperatureSensor",
1544
+ "accounts[].atwDevices[].temperatureSensorFlow",
1545
+ "accounts[].atwDevices[].temperatureSensorReturn",
1546
+ "accounts[].atwDevices[].temperatureSensorFlowZone1",
1547
+ "accounts[].atwDevices[].temperatureSensorReturnZone1",
1548
+ "accounts[].atwDevices[].temperatureSensorFlowWaterTank",
1549
+ "accounts[].atwDevices[].temperatureSensorReturnWaterTank",
1550
+ "accounts[].atwDevices[].temperatureSensorFlowZone2",
1551
+ "accounts[].atwDevices[].temperatureSensorReturnZone2"
1519
1552
  ]
1520
1553
  },
1521
1554
  {
1522
- "key": "accounts[]",
1555
+ "key": "accounts[].atwDevices[]",
1523
1556
  "type": "section",
1524
1557
  "title": "Buttons / Sensors",
1525
1558
  "expandable": true,
1526
1559
  "expanded": false,
1527
1560
  "items": [
1528
1561
  {
1529
- "key": "accounts[].atwButtons",
1562
+ "key": "accounts[].atwDevices[].buttonsSensors",
1530
1563
  "type": "tabarray",
1531
1564
  "title": "{{ value.name || 'button/sensor' }}",
1532
1565
  "items": [
1533
- "accounts[].atwButtons[].name",
1534
- "accounts[].atwButtons[].mode",
1535
- "accounts[].atwButtons[].displayType",
1536
- "accounts[].atwButtons[].namePrefix"
1537
- ]
1538
- }
1539
- ]
1540
- },
1541
- {
1542
- "key": "accounts[]",
1543
- "type": "section",
1544
- "title": "Hide Device By Id",
1545
- "expandable": true,
1546
- "expanded": false,
1547
- "items": [
1548
- {
1549
- "key": "accounts[].atwHideDeviceById",
1550
- "type": "tabarray",
1551
- "title": "{{ value.name || 'device' }}",
1552
- "items": [
1553
- "accounts[].atwHideDeviceById[].name",
1554
- "accounts[].atwHideDeviceById[].id"
1566
+ "accounts[].atwDevices[].buttonsSensors[].name",
1567
+ "accounts[].atwDevices[].buttonsSensors[].mode",
1568
+ "accounts[].atwDevices[].buttonsSensors[].displayType",
1569
+ "accounts[].atwDevices[].buttonsSensors[].namePrefix"
1555
1570
  ]
1556
1571
  }
1557
1572
  ]
1558
1573
  }
1559
1574
  ]
1560
- },
1575
+ }
1576
+ ]
1577
+ },
1578
+ {
1579
+ "key": "accounts[]",
1580
+ "title": "Energy Recovery Ventilation",
1581
+ "items": [
1561
1582
  {
1562
- "key": "accounts[]",
1563
- "title": "Energy Recovery Ventilation",
1583
+ "key": "accounts[].ervDevices",
1584
+ "type": "tabarray",
1585
+ "title": "{{ value.name }}",
1564
1586
  "items": [
1565
- "accounts[].ervDisplayMode",
1566
- "accounts[].ervPresets",
1567
1587
  {
1568
- "key": "accounts[]",
1588
+ "key": "accounts[].ervDevices[].name",
1589
+ "readonly": true
1590
+ },
1591
+ {
1592
+ "key": "accounts[].ervDevices[].id",
1593
+ "readonly": true
1594
+ },
1595
+ {
1596
+ "key": "accounts[].ervDevices[].type",
1597
+ "readonly": true
1598
+ },
1599
+ "accounts[].ervDevices[].displayMode",
1600
+ "accounts[].ervDevices[].presets",
1601
+ {
1602
+ "key": "accounts[].ervDevices[]",
1569
1603
  "type": "section",
1570
1604
  "title": "Temperature Sensors",
1571
1605
  "expandable": true,
1572
1606
  "expanded": false,
1573
1607
  "items": [
1574
- "accounts[].ervTemperatureSensor",
1575
- "accounts[].ervTemperatureSensorOutdoor",
1576
- "accounts[].ervTemperatureSensorSupply"
1608
+ "accounts[].ervDevices[].temperatureSensor",
1609
+ "accounts[].ervDevices[].temperatureSensorOutdoor",
1610
+ "accounts[].ervDevices[].temperatureSensorSupply"
1577
1611
  ]
1578
1612
  },
1579
1613
  {
1580
- "key": "accounts[]",
1614
+ "key": "accounts[].ervDevices[]",
1581
1615
  "type": "section",
1582
1616
  "title": "Buttons / Sensors",
1583
1617
  "expandable": true,
1584
1618
  "expanded": false,
1585
1619
  "items": [
1586
1620
  {
1587
- "key": "accounts[].ervButtons",
1621
+ "key": "accounts[].ervDevices[].buttonsSensors",
1588
1622
  "type": "tabarray",
1589
1623
  "title": "{{ value.name || 'button/sensor' }}",
1590
1624
  "items": [
1591
- "accounts[].ervButtons[].name",
1592
- "accounts[].ervButtons[].mode",
1593
- "accounts[].ervButtons[].displayType",
1594
- "accounts[].ervButtons[].namePrefix"
1595
- ]
1596
- }
1597
- ]
1598
- },
1599
- {
1600
- "key": "accounts[]",
1601
- "type": "section",
1602
- "title": "Hide Device By Id",
1603
- "expandable": true,
1604
- "expanded": false,
1605
- "items": [
1606
- {
1607
- "key": "accounts[].ervHideDeviceById",
1608
- "type": "tabarray",
1609
- "title": "{{ value.name || 'device' }}",
1610
- "items": [
1611
- "accounts[].ervHideDeviceById[].name",
1612
- "accounts[].ervHideDeviceById[].id"
1625
+ "accounts[].ervDevices[].buttonsSensors[].name",
1626
+ "accounts[].ervDevices[].buttonsSensors[].mode",
1627
+ "accounts[].ervDevices[].buttonsSensors[].displayType",
1628
+ "accounts[].ervDevices[].buttonsSensors[].namePrefix"
1613
1629
  ]
1614
1630
  }
1615
1631
  ]
1616
1632
  }
1617
1633
  ]
1618
- },
1619
- {
1620
- "key": "accounts[]",
1621
- "title": "System",
1622
- "items": [
1623
- "accounts[].enableDebugMode",
1624
- "accounts[].disableLogInfo",
1625
- "accounts[].disableLogDeviceInfo",
1626
- "accounts[].refreshInterval",
1627
- "accounts[].deviceRefreshInterval"
1628
- ]
1629
- },
1634
+ }
1635
+ ]
1636
+ },
1637
+ {
1638
+ "key": "accounts[]",
1639
+ "title": "System",
1640
+ "items": [
1641
+ "accounts[].enableDebugMode",
1642
+ "accounts[].disableLogInfo",
1643
+ "accounts[].disableLogDeviceInfo",
1644
+ "accounts[].refreshInterval",
1645
+ "accounts[].deviceRefreshInterval"
1646
+ ]
1647
+ },
1648
+ {
1649
+ "key": "accounts[]",
1650
+ "title": "External Integrations",
1651
+ "items": [
1630
1652
  {
1631
1653
  "key": "accounts[]",
1632
- "title": "External Integrations",
1654
+ "type": "tabarray",
1655
+ "title": "{{ value.title }}",
1633
1656
  "items": [
1634
1657
  {
1635
- "key": "accounts[]",
1636
- "type": "tabarray",
1637
- "title": "{{ value.title }}",
1658
+ "key": "accounts[].restFul",
1659
+ "title": "RESTFul",
1638
1660
  "items": [
1661
+ "accounts[].restFul.enable",
1662
+ "accounts[].restFul.debug"
1663
+ ]
1664
+ },
1665
+ {
1666
+ "key": "accounts[].mqtt",
1667
+ "title": "MQTT",
1668
+ "items": [
1669
+ "accounts[].mqtt.enable",
1670
+ "accounts[].mqtt.debug",
1671
+ "accounts[].mqtt.host",
1672
+ "accounts[].mqtt.port",
1673
+ "accounts[].mqtt.clientId",
1674
+ "accounts[].mqtt.prefix",
1675
+ "accounts[].mqtt.auth",
1676
+ "accounts[].mqtt.user",
1639
1677
  {
1640
- "key": "accounts[].restFul",
1641
- "title": "RESTFul",
1642
- "items": [
1643
- "accounts[].restFul.enable",
1644
- "accounts[].restFul.debug"
1645
- ]
1646
- },
1647
- {
1648
- "key": "accounts[].mqtt",
1649
- "title": "MQTT",
1650
- "items": [
1651
- "accounts[].mqtt.enable",
1652
- "accounts[].mqtt.debug",
1653
- "accounts[].mqtt.host",
1654
- "accounts[].mqtt.port",
1655
- "accounts[].mqtt.clientId",
1656
- "accounts[].mqtt.prefix",
1657
- "accounts[].mqtt.auth",
1658
- "accounts[].mqtt.user",
1659
- {
1660
- "key": "accounts[].mqtt.passwd",
1661
- "type": "password"
1662
- }
1663
- ]
1678
+ "key": "accounts[].mqtt.passwd",
1679
+ "type": "password"
1664
1680
  }
1665
1681
  ]
1666
1682
  }