homebridge-melcloud-control 4.6.1 → 4.6.2-beta.0
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/README.md +5 -0
- package/config.schema.json +179 -68
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,11 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
|
|
|
25
25
|
| [Homebridge UI](https://github.com/homebridge/homebridge-config-ui-x) | [Homebridge UI Wiki](https://github.com/homebridge/homebridge-config-ui-x/wiki) | Homebridge User Interface | Required plugin |
|
|
26
26
|
| [MELCloud](https://github.com/grzegorz914/homebridge-melcloud-control) | [Plug-In Wiki](https://github.com/grzegorz914/homebridge-melcloud-control/wiki) | Plug-In | Required |
|
|
27
27
|
|
|
28
|
+
## Warning
|
|
29
|
+
|
|
30
|
+
* For plugin < v4.6.0 use Homebridge UI <= v5.5.0.
|
|
31
|
+
* For plugin >= v4.6.0 use Homebridge UI >= v5.13.0.
|
|
32
|
+
|
|
28
33
|
### About The Plugin
|
|
29
34
|
|
|
30
35
|
* Support:
|
package/config.schema.json
CHANGED
|
@@ -246,8 +246,8 @@
|
|
|
246
246
|
"displayType": {
|
|
247
247
|
"title": "Display Type",
|
|
248
248
|
"type": "integer",
|
|
249
|
+
"minimum": 0,
|
|
249
250
|
"maximum": 2,
|
|
250
|
-
"default": 0,
|
|
251
251
|
"description": "Select accessory control type displayed in HomeKit.",
|
|
252
252
|
"anyOf": [
|
|
253
253
|
{
|
|
@@ -279,6 +279,7 @@
|
|
|
279
279
|
"heatDryFanMode": {
|
|
280
280
|
"title": "Heat",
|
|
281
281
|
"type": "integer",
|
|
282
|
+
"minimum": 1,
|
|
282
283
|
"maximum": 3,
|
|
283
284
|
"default": 1,
|
|
284
285
|
"description": "Select the operating mode for Heat, work only if mode supported by device.",
|
|
@@ -306,6 +307,7 @@
|
|
|
306
307
|
"coolDryFanMode": {
|
|
307
308
|
"title": "Cool",
|
|
308
309
|
"type": "integer",
|
|
310
|
+
"minimum": 1,
|
|
309
311
|
"maximum": 3,
|
|
310
312
|
"default": 1,
|
|
311
313
|
"description": "Select the operating mode for Cool, work only if mode supported by device.",
|
|
@@ -390,7 +392,6 @@
|
|
|
390
392
|
"frostProtectionSupport": {
|
|
391
393
|
"title": "Frost Protection Support",
|
|
392
394
|
"type": "boolean",
|
|
393
|
-
"default": false,
|
|
394
395
|
"description": "This enable frost protection control and sensors to use with HomeKit automations.",
|
|
395
396
|
"condition": {
|
|
396
397
|
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
|
|
@@ -399,7 +400,6 @@
|
|
|
399
400
|
"overheatProtectionSupport": {
|
|
400
401
|
"title": "Overheat Protection Support",
|
|
401
402
|
"type": "boolean",
|
|
402
|
-
"default": false,
|
|
403
403
|
"description": "This enable overheat protection control and sensors to use with HomeKit automations.",
|
|
404
404
|
"condition": {
|
|
405
405
|
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
|
|
@@ -408,7 +408,6 @@
|
|
|
408
408
|
"holidayModeSupport": {
|
|
409
409
|
"title": "Holiday Mode Support",
|
|
410
410
|
"type": "boolean",
|
|
411
|
-
"default": false,
|
|
412
411
|
"description": "This enable holiday mode control and sensors to use with HomeKit automations.",
|
|
413
412
|
"condition": {
|
|
414
413
|
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
|
|
@@ -427,8 +426,8 @@
|
|
|
427
426
|
"displayType": {
|
|
428
427
|
"title": "Display Type",
|
|
429
428
|
"type": "integer",
|
|
429
|
+
"minimum": 0,
|
|
430
430
|
"maximum": 7,
|
|
431
|
-
"default": 0,
|
|
432
431
|
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
433
432
|
"anyOf": [
|
|
434
433
|
{
|
|
@@ -490,8 +489,10 @@
|
|
|
490
489
|
"namePrefix": {
|
|
491
490
|
"title": "Prefix",
|
|
492
491
|
"type": "boolean",
|
|
493
|
-
"
|
|
494
|
-
"
|
|
492
|
+
"description": "Enable the accessory name as a prefix for preset name.",
|
|
493
|
+
"condition": {
|
|
494
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
|
|
495
|
+
}
|
|
495
496
|
}
|
|
496
497
|
}
|
|
497
498
|
}
|
|
@@ -509,8 +510,8 @@
|
|
|
509
510
|
"displayType": {
|
|
510
511
|
"title": "Display Type",
|
|
511
512
|
"type": "integer",
|
|
513
|
+
"minimum": 0,
|
|
512
514
|
"maximum": 7,
|
|
513
|
-
"default": 0,
|
|
514
515
|
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
515
516
|
"anyOf": [
|
|
516
517
|
{
|
|
@@ -572,7 +573,6 @@
|
|
|
572
573
|
"namePrefix": {
|
|
573
574
|
"title": "Prefix",
|
|
574
575
|
"type": "boolean",
|
|
575
|
-
"default": false,
|
|
576
576
|
"description": "Enable the accessory name as a prefix for schedule name.",
|
|
577
577
|
"condition": {
|
|
578
578
|
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
@@ -594,8 +594,8 @@
|
|
|
594
594
|
"displayType": {
|
|
595
595
|
"title": "Display Type",
|
|
596
596
|
"type": "integer",
|
|
597
|
+
"minimum": 0,
|
|
597
598
|
"maximum": 7,
|
|
598
|
-
"default": 0,
|
|
599
599
|
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
600
600
|
"anyOf": [
|
|
601
601
|
{
|
|
@@ -657,7 +657,6 @@
|
|
|
657
657
|
"namePrefix": {
|
|
658
658
|
"title": "Prefix",
|
|
659
659
|
"type": "boolean",
|
|
660
|
-
"default": false,
|
|
661
660
|
"description": "Enable the accessory name as a prefix for scene name.",
|
|
662
661
|
"condition": {
|
|
663
662
|
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].scenes[arrayIndices[2]].displayType > 0;"
|
|
@@ -675,8 +674,8 @@
|
|
|
675
674
|
"displayType": {
|
|
676
675
|
"title": "Display Type",
|
|
677
676
|
"type": "integer",
|
|
677
|
+
"minimum": 0,
|
|
678
678
|
"maximum": 7,
|
|
679
|
-
"default": 0,
|
|
680
679
|
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
681
680
|
"anyOf": [
|
|
682
681
|
{
|
|
@@ -729,9 +728,16 @@
|
|
|
729
728
|
}
|
|
730
729
|
]
|
|
731
730
|
},
|
|
731
|
+
"name": {
|
|
732
|
+
"title": "Name",
|
|
733
|
+
"type": "string",
|
|
734
|
+
"placeholder": "Function Name",
|
|
735
|
+
"description": "Here set Your own name displayed in HomeKit."
|
|
736
|
+
},
|
|
732
737
|
"mode": {
|
|
733
738
|
"title": "Mode",
|
|
734
739
|
"type": "integer",
|
|
740
|
+
"minimum": 0,
|
|
735
741
|
"maximum": 40,
|
|
736
742
|
"default": 0,
|
|
737
743
|
"description": "Function, VH - Vane Horizontal, VV - Vane Vertical.",
|
|
@@ -957,19 +963,42 @@
|
|
|
957
963
|
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
|
|
958
964
|
}
|
|
959
965
|
},
|
|
960
|
-
"name": {
|
|
961
|
-
"title": "Name",
|
|
962
|
-
"type": "string",
|
|
963
|
-
"placeholder": "Function Name",
|
|
964
|
-
"description": "Here set Your own name displayed in HomeKit."
|
|
965
|
-
},
|
|
966
966
|
"namePrefix": {
|
|
967
967
|
"title": "Prefix",
|
|
968
968
|
"type": "boolean",
|
|
969
|
-
"
|
|
970
|
-
"
|
|
969
|
+
"description": "Enable the accessory name as a prefix for button / sensor name.",
|
|
970
|
+
"condition": {
|
|
971
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
|
|
972
|
+
}
|
|
971
973
|
}
|
|
972
|
-
}
|
|
974
|
+
},
|
|
975
|
+
"allOf": [
|
|
976
|
+
{
|
|
977
|
+
"if": {
|
|
978
|
+
"required": [
|
|
979
|
+
"displayType"
|
|
980
|
+
],
|
|
981
|
+
"properties": {
|
|
982
|
+
"displayType": {
|
|
983
|
+
"enum": [
|
|
984
|
+
1,
|
|
985
|
+
2,
|
|
986
|
+
3,
|
|
987
|
+
4,
|
|
988
|
+
5,
|
|
989
|
+
6,
|
|
990
|
+
7
|
|
991
|
+
]
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
"then": {
|
|
996
|
+
"required": [
|
|
997
|
+
"mode"
|
|
998
|
+
]
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
]
|
|
973
1002
|
}
|
|
974
1003
|
}
|
|
975
1004
|
}
|
|
@@ -998,10 +1027,16 @@
|
|
|
998
1027
|
"displayType": {
|
|
999
1028
|
"title": "Display Type",
|
|
1000
1029
|
"type": "integer",
|
|
1030
|
+
"minimum": 0,
|
|
1001
1031
|
"maximum": 2,
|
|
1002
|
-
"default": 1,
|
|
1003
1032
|
"description": "Select accessory control type displayed in HomeKit.",
|
|
1004
1033
|
"anyOf": [
|
|
1034
|
+
{
|
|
1035
|
+
"title": "Disabled",
|
|
1036
|
+
"enum": [
|
|
1037
|
+
0
|
|
1038
|
+
]
|
|
1039
|
+
},
|
|
1005
1040
|
{
|
|
1006
1041
|
"title": "Heater / Cooler",
|
|
1007
1042
|
"enum": [
|
|
@@ -1019,8 +1054,8 @@
|
|
|
1019
1054
|
"hideZone": {
|
|
1020
1055
|
"title": "Hide zone",
|
|
1021
1056
|
"type": "integer",
|
|
1057
|
+
"minimum": 0,
|
|
1022
1058
|
"maximum": 15,
|
|
1023
|
-
"default": 0,
|
|
1024
1059
|
"description": "Select zone to hidde in HomeKit, if present.",
|
|
1025
1060
|
"anyOf": [
|
|
1026
1061
|
{
|
|
@@ -1119,7 +1154,10 @@
|
|
|
1119
1154
|
15
|
|
1120
1155
|
]
|
|
1121
1156
|
}
|
|
1122
|
-
]
|
|
1157
|
+
],
|
|
1158
|
+
"condition": {
|
|
1159
|
+
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayType > 0;"
|
|
1160
|
+
}
|
|
1123
1161
|
},
|
|
1124
1162
|
"temperatureSensor": {
|
|
1125
1163
|
"title": "Temperature Sensor Room",
|
|
@@ -1196,7 +1234,6 @@
|
|
|
1196
1234
|
"frostProtectionSupport": {
|
|
1197
1235
|
"title": "Frost Protection Support",
|
|
1198
1236
|
"type": "boolean",
|
|
1199
|
-
"default": false,
|
|
1200
1237
|
"description": "This enable frost protection control and sensors to use with HomeKit automations.",
|
|
1201
1238
|
"condition": {
|
|
1202
1239
|
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
|
|
@@ -1205,7 +1242,6 @@
|
|
|
1205
1242
|
"holidayModeSupport": {
|
|
1206
1243
|
"title": "Holiday Mode Support",
|
|
1207
1244
|
"type": "boolean",
|
|
1208
|
-
"default": false,
|
|
1209
1245
|
"description": "This enable holiday mode control and sensors to use with HomeKit automations.",
|
|
1210
1246
|
"condition": {
|
|
1211
1247
|
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
|
|
@@ -1224,8 +1260,8 @@
|
|
|
1224
1260
|
"displayType": {
|
|
1225
1261
|
"title": "Display Type",
|
|
1226
1262
|
"type": "integer",
|
|
1263
|
+
"minimum": 0,
|
|
1227
1264
|
"maximum": 7,
|
|
1228
|
-
"default": 0,
|
|
1229
1265
|
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
1230
1266
|
"anyOf": [
|
|
1231
1267
|
{
|
|
@@ -1287,8 +1323,10 @@
|
|
|
1287
1323
|
"namePrefix": {
|
|
1288
1324
|
"title": "Prefix",
|
|
1289
1325
|
"type": "boolean",
|
|
1290
|
-
"
|
|
1291
|
-
"
|
|
1326
|
+
"description": "Enable the accessory name as a prefix for preset name.",
|
|
1327
|
+
"condition": {
|
|
1328
|
+
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
1329
|
+
}
|
|
1292
1330
|
}
|
|
1293
1331
|
}
|
|
1294
1332
|
}
|
|
@@ -1306,8 +1344,8 @@
|
|
|
1306
1344
|
"displayType": {
|
|
1307
1345
|
"title": "Display Type",
|
|
1308
1346
|
"type": "integer",
|
|
1347
|
+
"minimum": 0,
|
|
1309
1348
|
"maximum": 7,
|
|
1310
|
-
"default": 0,
|
|
1311
1349
|
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
1312
1350
|
"anyOf": [
|
|
1313
1351
|
{
|
|
@@ -1369,8 +1407,10 @@
|
|
|
1369
1407
|
"namePrefix": {
|
|
1370
1408
|
"title": "Prefix",
|
|
1371
1409
|
"type": "boolean",
|
|
1372
|
-
"
|
|
1373
|
-
"
|
|
1410
|
+
"description": "Enable the accessory name as a prefix for schedule name.",
|
|
1411
|
+
"condition": {
|
|
1412
|
+
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
1413
|
+
}
|
|
1374
1414
|
}
|
|
1375
1415
|
}
|
|
1376
1416
|
}
|
|
@@ -1388,8 +1428,8 @@
|
|
|
1388
1428
|
"displayType": {
|
|
1389
1429
|
"title": "Display Type",
|
|
1390
1430
|
"type": "integer",
|
|
1431
|
+
"minimum": 0,
|
|
1391
1432
|
"maximum": 7,
|
|
1392
|
-
"default": 0,
|
|
1393
1433
|
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
1394
1434
|
"anyOf": [
|
|
1395
1435
|
{
|
|
@@ -1451,8 +1491,10 @@
|
|
|
1451
1491
|
"namePrefix": {
|
|
1452
1492
|
"title": "Prefix",
|
|
1453
1493
|
"type": "boolean",
|
|
1454
|
-
"
|
|
1455
|
-
"
|
|
1494
|
+
"description": "Enable the accessory name as a prefix for scene name.",
|
|
1495
|
+
"condition": {
|
|
1496
|
+
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].scenes[arrayIndices[2]].displayType > 0;"
|
|
1497
|
+
}
|
|
1456
1498
|
}
|
|
1457
1499
|
}
|
|
1458
1500
|
}
|
|
@@ -1466,8 +1508,8 @@
|
|
|
1466
1508
|
"displayType": {
|
|
1467
1509
|
"title": "Display Type",
|
|
1468
1510
|
"type": "integer",
|
|
1511
|
+
"minimum": 0,
|
|
1469
1512
|
"maximum": 7,
|
|
1470
|
-
"default": 0,
|
|
1471
1513
|
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
1472
1514
|
"anyOf": [
|
|
1473
1515
|
{
|
|
@@ -1520,11 +1562,17 @@
|
|
|
1520
1562
|
}
|
|
1521
1563
|
]
|
|
1522
1564
|
},
|
|
1565
|
+
"name": {
|
|
1566
|
+
"title": "Name",
|
|
1567
|
+
"type": "string",
|
|
1568
|
+
"placeholder": "Function Name",
|
|
1569
|
+
"description": "Here set Your own name displayed in HomeKit."
|
|
1570
|
+
},
|
|
1523
1571
|
"mode": {
|
|
1524
1572
|
"title": "Mode",
|
|
1525
1573
|
"type": "integer",
|
|
1574
|
+
"minimum": 0,
|
|
1526
1575
|
"maximum": 70,
|
|
1527
|
-
"default": 0,
|
|
1528
1576
|
"description": "Select the function.",
|
|
1529
1577
|
"anyOf": [
|
|
1530
1578
|
{
|
|
@@ -1664,19 +1712,42 @@
|
|
|
1664
1712
|
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
|
|
1665
1713
|
}
|
|
1666
1714
|
},
|
|
1667
|
-
"name": {
|
|
1668
|
-
"title": "Name",
|
|
1669
|
-
"type": "string",
|
|
1670
|
-
"placeholder": "Function Name",
|
|
1671
|
-
"description": "Here set Your own name displayed in HomeKit."
|
|
1672
|
-
},
|
|
1673
1715
|
"namePrefix": {
|
|
1674
1716
|
"title": "Prefix",
|
|
1675
1717
|
"type": "boolean",
|
|
1676
|
-
"
|
|
1677
|
-
"
|
|
1718
|
+
"description": "Enable the accessory name as a prefix for button / sensor name.",
|
|
1719
|
+
"condition": {
|
|
1720
|
+
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
|
|
1721
|
+
}
|
|
1678
1722
|
}
|
|
1679
|
-
}
|
|
1723
|
+
},
|
|
1724
|
+
"allOf": [
|
|
1725
|
+
{
|
|
1726
|
+
"if": {
|
|
1727
|
+
"required": [
|
|
1728
|
+
"displayType"
|
|
1729
|
+
],
|
|
1730
|
+
"properties": {
|
|
1731
|
+
"displayType": {
|
|
1732
|
+
"enum": [
|
|
1733
|
+
1,
|
|
1734
|
+
2,
|
|
1735
|
+
3,
|
|
1736
|
+
4,
|
|
1737
|
+
5,
|
|
1738
|
+
6,
|
|
1739
|
+
7
|
|
1740
|
+
]
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
},
|
|
1744
|
+
"then": {
|
|
1745
|
+
"required": [
|
|
1746
|
+
"mode"
|
|
1747
|
+
]
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
]
|
|
1680
1751
|
}
|
|
1681
1752
|
}
|
|
1682
1753
|
}
|
|
@@ -1705,10 +1776,16 @@
|
|
|
1705
1776
|
"displayType": {
|
|
1706
1777
|
"title": "Display Type",
|
|
1707
1778
|
"type": "integer",
|
|
1779
|
+
"minimum": 0,
|
|
1708
1780
|
"maximum": 2,
|
|
1709
|
-
"default": 1,
|
|
1710
1781
|
"description": "Select accessory control type displayed in HomeKit.",
|
|
1711
1782
|
"anyOf": [
|
|
1783
|
+
{
|
|
1784
|
+
"title": "Disabled",
|
|
1785
|
+
"enum": [
|
|
1786
|
+
0
|
|
1787
|
+
]
|
|
1788
|
+
},
|
|
1712
1789
|
{
|
|
1713
1790
|
"title": "Heater / Cooler",
|
|
1714
1791
|
"enum": [
|
|
@@ -1762,7 +1839,6 @@
|
|
|
1762
1839
|
"holidayModeSupport": {
|
|
1763
1840
|
"title": "Holiday Mode Support",
|
|
1764
1841
|
"type": "boolean",
|
|
1765
|
-
"default": false,
|
|
1766
1842
|
"description": "This enable holiday mode control and sensors to use with HomeKit automations.",
|
|
1767
1843
|
"condition": {
|
|
1768
1844
|
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
|
|
@@ -1781,8 +1857,8 @@
|
|
|
1781
1857
|
"displayType": {
|
|
1782
1858
|
"title": "Display Type",
|
|
1783
1859
|
"type": "integer",
|
|
1860
|
+
"minimum": 0,
|
|
1784
1861
|
"maximum": 7,
|
|
1785
|
-
"default": 0,
|
|
1786
1862
|
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
1787
1863
|
"anyOf": [
|
|
1788
1864
|
{
|
|
@@ -1844,7 +1920,6 @@
|
|
|
1844
1920
|
"namePrefix": {
|
|
1845
1921
|
"title": "Prefix",
|
|
1846
1922
|
"type": "boolean",
|
|
1847
|
-
"default": false,
|
|
1848
1923
|
"description": "Enable the accessory name as a prefix for preset name.",
|
|
1849
1924
|
"condition": {
|
|
1850
1925
|
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
|
|
@@ -1866,8 +1941,8 @@
|
|
|
1866
1941
|
"displayType": {
|
|
1867
1942
|
"title": "Display Type",
|
|
1868
1943
|
"type": "integer",
|
|
1944
|
+
"minimum": 0,
|
|
1869
1945
|
"maximum": 7,
|
|
1870
|
-
"default": 0,
|
|
1871
1946
|
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
1872
1947
|
"anyOf": [
|
|
1873
1948
|
{
|
|
@@ -1929,8 +2004,10 @@
|
|
|
1929
2004
|
"namePrefix": {
|
|
1930
2005
|
"title": "Prefix",
|
|
1931
2006
|
"type": "boolean",
|
|
1932
|
-
"
|
|
1933
|
-
"
|
|
2007
|
+
"description": "Enable the accessory name as a prefix for schedule name.",
|
|
2008
|
+
"condition": {
|
|
2009
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
2010
|
+
}
|
|
1934
2011
|
}
|
|
1935
2012
|
}
|
|
1936
2013
|
}
|
|
@@ -1948,8 +2025,8 @@
|
|
|
1948
2025
|
"displayType": {
|
|
1949
2026
|
"title": "Display Type",
|
|
1950
2027
|
"type": "integer",
|
|
2028
|
+
"minimum": 0,
|
|
1951
2029
|
"maximum": 7,
|
|
1952
|
-
"default": 0,
|
|
1953
2030
|
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
1954
2031
|
"anyOf": [
|
|
1955
2032
|
{
|
|
@@ -2011,8 +2088,10 @@
|
|
|
2011
2088
|
"namePrefix": {
|
|
2012
2089
|
"title": "Prefix",
|
|
2013
2090
|
"type": "boolean",
|
|
2014
|
-
"
|
|
2015
|
-
"
|
|
2091
|
+
"description": "Enable the accessory name as a prefix for scene name.",
|
|
2092
|
+
"condition": {
|
|
2093
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].scenes[arrayIndices[2]].displayType > 0;"
|
|
2094
|
+
}
|
|
2016
2095
|
}
|
|
2017
2096
|
}
|
|
2018
2097
|
}
|
|
@@ -2026,8 +2105,8 @@
|
|
|
2026
2105
|
"displayType": {
|
|
2027
2106
|
"title": "Display Type",
|
|
2028
2107
|
"type": "integer",
|
|
2108
|
+
"minimum": 0,
|
|
2029
2109
|
"maximum": 7,
|
|
2030
|
-
"default": 0,
|
|
2031
2110
|
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
2032
2111
|
"anyOf": [
|
|
2033
2112
|
{
|
|
@@ -2080,11 +2159,17 @@
|
|
|
2080
2159
|
}
|
|
2081
2160
|
]
|
|
2082
2161
|
},
|
|
2162
|
+
"name": {
|
|
2163
|
+
"title": "Name",
|
|
2164
|
+
"type": "string",
|
|
2165
|
+
"placeholder": "Function Name",
|
|
2166
|
+
"description": "Here set Your own name displayed in HomeKit."
|
|
2167
|
+
},
|
|
2083
2168
|
"mode": {
|
|
2084
2169
|
"title": "Mode",
|
|
2085
2170
|
"type": "integer",
|
|
2171
|
+
"minimum": 0,
|
|
2086
2172
|
"maximum": 18,
|
|
2087
|
-
"default": 0,
|
|
2088
2173
|
"description": "Select the function.",
|
|
2089
2174
|
"anyOf": [
|
|
2090
2175
|
{
|
|
@@ -2171,21 +2256,47 @@
|
|
|
2171
2256
|
18
|
|
2172
2257
|
]
|
|
2173
2258
|
}
|
|
2174
|
-
]
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
"type": "string",
|
|
2179
|
-
"placeholder": "Function Name",
|
|
2180
|
-
"description": "Here set Your own name displayed in HomeKit."
|
|
2259
|
+
],
|
|
2260
|
+
"condition": {
|
|
2261
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
|
|
2262
|
+
}
|
|
2181
2263
|
},
|
|
2182
2264
|
"namePrefix": {
|
|
2183
2265
|
"title": "Prefix",
|
|
2184
2266
|
"type": "boolean",
|
|
2185
|
-
"
|
|
2186
|
-
"
|
|
2267
|
+
"description": "Enable the accessory name as a prefix for button / sensor name.",
|
|
2268
|
+
"condition": {
|
|
2269
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
|
|
2270
|
+
}
|
|
2187
2271
|
}
|
|
2188
|
-
}
|
|
2272
|
+
},
|
|
2273
|
+
"allOf": [
|
|
2274
|
+
{
|
|
2275
|
+
"if": {
|
|
2276
|
+
"required": [
|
|
2277
|
+
"displayType"
|
|
2278
|
+
],
|
|
2279
|
+
"properties": {
|
|
2280
|
+
"displayType": {
|
|
2281
|
+
"enum": [
|
|
2282
|
+
1,
|
|
2283
|
+
2,
|
|
2284
|
+
3,
|
|
2285
|
+
4,
|
|
2286
|
+
5,
|
|
2287
|
+
6,
|
|
2288
|
+
7
|
|
2289
|
+
]
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
},
|
|
2293
|
+
"then": {
|
|
2294
|
+
"required": [
|
|
2295
|
+
"mode"
|
|
2296
|
+
]
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
]
|
|
2189
2300
|
}
|
|
2190
2301
|
}
|
|
2191
2302
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.6.
|
|
4
|
+
"version": "4.6.2-beta.0",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|