homebridge-melcloud-control 4.1.2-beta.9 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +16 -3
- package/config.schema.json +445 -115
- package/homebridge-ui/public/index.html +90 -46
- package/package.json +2 -2
- package/src/constants.js +4 -0
- package/src/deviceata.js +68 -12
- package/src/deviceatw.js +64 -3
- package/src/deviceerv.js +68 -7
- package/src/functions.js +41 -57
- package/src/melcloud.js +64 -47
- package/src/melcloudata.js +17 -8
- package/src/melcloudatw.js +14 -8
- package/src/melclouderv.js +14 -8
package/config.schema.json
CHANGED
|
@@ -234,8 +234,9 @@
|
|
|
234
234
|
"type": "object",
|
|
235
235
|
"properties": {
|
|
236
236
|
"id": {
|
|
237
|
-
"title": "
|
|
238
|
-
"type": "string"
|
|
237
|
+
"title": "Id",
|
|
238
|
+
"type": "string",
|
|
239
|
+
"default": "0"
|
|
239
240
|
},
|
|
240
241
|
"type": {
|
|
241
242
|
"title": "Type",
|
|
@@ -278,7 +279,7 @@
|
|
|
278
279
|
"name": {
|
|
279
280
|
"title": "Name",
|
|
280
281
|
"type": "string",
|
|
281
|
-
"
|
|
282
|
+
"default": "Air Conditioner"
|
|
282
283
|
},
|
|
283
284
|
"heatDryFanMode": {
|
|
284
285
|
"title": "Heat",
|
|
@@ -422,7 +423,7 @@
|
|
|
422
423
|
}
|
|
423
424
|
},
|
|
424
425
|
"scheduleSensor": {
|
|
425
|
-
"title": "
|
|
426
|
+
"title": "Schedule",
|
|
426
427
|
"type": "boolean",
|
|
427
428
|
"default": false,
|
|
428
429
|
"description": "This enable extra schedule sensor to use with automations in HomeKit app.",
|
|
@@ -451,8 +452,9 @@
|
|
|
451
452
|
"type": "object",
|
|
452
453
|
"properties": {
|
|
453
454
|
"id": {
|
|
454
|
-
"title": "
|
|
455
|
-
"type": "string"
|
|
455
|
+
"title": "Id",
|
|
456
|
+
"type": "string",
|
|
457
|
+
"default": "0"
|
|
456
458
|
},
|
|
457
459
|
"displayType": {
|
|
458
460
|
"title": "Display Type",
|
|
@@ -503,7 +505,7 @@
|
|
|
503
505
|
"name": {
|
|
504
506
|
"title": "Name",
|
|
505
507
|
"type": "string",
|
|
506
|
-
"
|
|
508
|
+
"default": "Preset",
|
|
507
509
|
"description": "Your own name displayed in Homebridge/HomeKit app.",
|
|
508
510
|
"condition": {
|
|
509
511
|
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
|
|
@@ -524,6 +526,87 @@
|
|
|
524
526
|
]
|
|
525
527
|
}
|
|
526
528
|
},
|
|
529
|
+
"schedules": {
|
|
530
|
+
"title": "Schedules",
|
|
531
|
+
"type": "array",
|
|
532
|
+
"items": {
|
|
533
|
+
"type": "object",
|
|
534
|
+
"properties": {
|
|
535
|
+
"id": {
|
|
536
|
+
"title": "Id",
|
|
537
|
+
"type": "string",
|
|
538
|
+
"default": "0"
|
|
539
|
+
},
|
|
540
|
+
"displayType": {
|
|
541
|
+
"title": "Display Type",
|
|
542
|
+
"type": "integer",
|
|
543
|
+
"minimum": 0,
|
|
544
|
+
"maximum": 5,
|
|
545
|
+
"default": 0,
|
|
546
|
+
"description": "Select the characteristic type to be displayed in HomeKit app.",
|
|
547
|
+
"anyOf": [
|
|
548
|
+
{
|
|
549
|
+
"title": "None/Disabled",
|
|
550
|
+
"enum": [
|
|
551
|
+
0
|
|
552
|
+
]
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"title": "Outlet",
|
|
556
|
+
"enum": [
|
|
557
|
+
1
|
|
558
|
+
]
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"title": "Switch",
|
|
562
|
+
"enum": [
|
|
563
|
+
2
|
|
564
|
+
]
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"title": "Motion Sensor",
|
|
568
|
+
"enum": [
|
|
569
|
+
3
|
|
570
|
+
]
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"title": "Occupancy Sensor",
|
|
574
|
+
"enum": [
|
|
575
|
+
4
|
|
576
|
+
]
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"title": "Contact Sensor",
|
|
580
|
+
"enum": [
|
|
581
|
+
5
|
|
582
|
+
]
|
|
583
|
+
}
|
|
584
|
+
]
|
|
585
|
+
},
|
|
586
|
+
"name": {
|
|
587
|
+
"title": "Name",
|
|
588
|
+
"type": "string",
|
|
589
|
+
"default": "Schedule",
|
|
590
|
+
"description": "Your own name displayed in Homebridge/HomeKit app.",
|
|
591
|
+
"condition": {
|
|
592
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
"namePrefix": {
|
|
596
|
+
"title": "Prefix",
|
|
597
|
+
"type": "boolean",
|
|
598
|
+
"default": false,
|
|
599
|
+
"description": "Enable/disable the accessory name as a prefix for button/sensor name.",
|
|
600
|
+
"condition": {
|
|
601
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
"required": [
|
|
606
|
+
"displayType"
|
|
607
|
+
]
|
|
608
|
+
}
|
|
609
|
+
},
|
|
527
610
|
"buttonsSensors": {
|
|
528
611
|
"title": "Button / Sensor",
|
|
529
612
|
"type": "array",
|
|
@@ -838,8 +921,9 @@
|
|
|
838
921
|
"type": "object",
|
|
839
922
|
"properties": {
|
|
840
923
|
"id": {
|
|
841
|
-
"title": "
|
|
842
|
-
"type": "string"
|
|
924
|
+
"title": "Id",
|
|
925
|
+
"type": "string",
|
|
926
|
+
"default": "0"
|
|
843
927
|
},
|
|
844
928
|
"type": {
|
|
845
929
|
"title": "Type",
|
|
@@ -854,7 +938,7 @@
|
|
|
854
938
|
"name": {
|
|
855
939
|
"title": "Name",
|
|
856
940
|
"type": "string",
|
|
857
|
-
"
|
|
941
|
+
"default": "Heat Pump"
|
|
858
942
|
},
|
|
859
943
|
"displayType": {
|
|
860
944
|
"title": "Display Type",
|
|
@@ -1065,8 +1149,9 @@
|
|
|
1065
1149
|
"type": "object",
|
|
1066
1150
|
"properties": {
|
|
1067
1151
|
"id": {
|
|
1068
|
-
"title": "
|
|
1069
|
-
"type": "string"
|
|
1152
|
+
"title": "Id",
|
|
1153
|
+
"type": "string",
|
|
1154
|
+
"default": "0"
|
|
1070
1155
|
},
|
|
1071
1156
|
"displayType": {
|
|
1072
1157
|
"title": "Display Type",
|
|
@@ -1117,7 +1202,7 @@
|
|
|
1117
1202
|
"name": {
|
|
1118
1203
|
"title": "Name",
|
|
1119
1204
|
"type": "string",
|
|
1120
|
-
"
|
|
1205
|
+
"default": "Preset",
|
|
1121
1206
|
"description": "Your own name displayed in Homebridge/HomeKit app.",
|
|
1122
1207
|
"condition": {
|
|
1123
1208
|
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
|
|
@@ -1138,6 +1223,87 @@
|
|
|
1138
1223
|
]
|
|
1139
1224
|
}
|
|
1140
1225
|
},
|
|
1226
|
+
"schedules": {
|
|
1227
|
+
"title": "Schedules",
|
|
1228
|
+
"type": "array",
|
|
1229
|
+
"items": {
|
|
1230
|
+
"type": "object",
|
|
1231
|
+
"properties": {
|
|
1232
|
+
"id": {
|
|
1233
|
+
"title": "Id",
|
|
1234
|
+
"type": "string",
|
|
1235
|
+
"default": "0"
|
|
1236
|
+
},
|
|
1237
|
+
"displayType": {
|
|
1238
|
+
"title": "Display Type",
|
|
1239
|
+
"type": "integer",
|
|
1240
|
+
"minimum": 0,
|
|
1241
|
+
"maximum": 5,
|
|
1242
|
+
"default": 0,
|
|
1243
|
+
"description": "Select the characteristic type to be displayed in HomeKit app.",
|
|
1244
|
+
"anyOf": [
|
|
1245
|
+
{
|
|
1246
|
+
"title": "None/Disabled",
|
|
1247
|
+
"enum": [
|
|
1248
|
+
0
|
|
1249
|
+
]
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"title": "Outlet",
|
|
1253
|
+
"enum": [
|
|
1254
|
+
1
|
|
1255
|
+
]
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"title": "Switch",
|
|
1259
|
+
"enum": [
|
|
1260
|
+
2
|
|
1261
|
+
]
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"title": "Motion Sensor",
|
|
1265
|
+
"enum": [
|
|
1266
|
+
3
|
|
1267
|
+
]
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
"title": "Occupancy Sensor",
|
|
1271
|
+
"enum": [
|
|
1272
|
+
4
|
|
1273
|
+
]
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"title": "Contact Sensor",
|
|
1277
|
+
"enum": [
|
|
1278
|
+
5
|
|
1279
|
+
]
|
|
1280
|
+
}
|
|
1281
|
+
]
|
|
1282
|
+
},
|
|
1283
|
+
"name": {
|
|
1284
|
+
"title": "Name",
|
|
1285
|
+
"type": "string",
|
|
1286
|
+
"default": "Schedule",
|
|
1287
|
+
"description": "Your own name displayed in Homebridge/HomeKit app.",
|
|
1288
|
+
"condition": {
|
|
1289
|
+
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
"namePrefix": {
|
|
1293
|
+
"title": "Prefix",
|
|
1294
|
+
"type": "boolean",
|
|
1295
|
+
"default": false,
|
|
1296
|
+
"description": "Enable/disable the accessory name as a prefix for button/sensor name.",
|
|
1297
|
+
"condition": {
|
|
1298
|
+
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
},
|
|
1302
|
+
"required": [
|
|
1303
|
+
"displayType"
|
|
1304
|
+
]
|
|
1305
|
+
}
|
|
1306
|
+
},
|
|
1141
1307
|
"buttonsSensors": {
|
|
1142
1308
|
"title": "Button",
|
|
1143
1309
|
"type": "array",
|
|
@@ -1372,8 +1538,9 @@
|
|
|
1372
1538
|
"type": "object",
|
|
1373
1539
|
"properties": {
|
|
1374
1540
|
"id": {
|
|
1375
|
-
"title": "
|
|
1376
|
-
"type": "string"
|
|
1541
|
+
"title": "Id",
|
|
1542
|
+
"type": "string",
|
|
1543
|
+
"default": "0"
|
|
1377
1544
|
},
|
|
1378
1545
|
"type": {
|
|
1379
1546
|
"title": "Type",
|
|
@@ -1388,7 +1555,7 @@
|
|
|
1388
1555
|
"name": {
|
|
1389
1556
|
"title": "Name",
|
|
1390
1557
|
"type": "string",
|
|
1391
|
-
"
|
|
1558
|
+
"default": "Ventilation"
|
|
1392
1559
|
},
|
|
1393
1560
|
"displayType": {
|
|
1394
1561
|
"title": "Display Type",
|
|
@@ -1457,8 +1624,9 @@
|
|
|
1457
1624
|
"type": "object",
|
|
1458
1625
|
"properties": {
|
|
1459
1626
|
"id": {
|
|
1460
|
-
"title": "
|
|
1627
|
+
"title": "Id",
|
|
1461
1628
|
"type": "string",
|
|
1629
|
+
"default": "0",
|
|
1462
1630
|
"readonly": true
|
|
1463
1631
|
},
|
|
1464
1632
|
"displayType": {
|
|
@@ -1513,7 +1681,7 @@
|
|
|
1513
1681
|
"name": {
|
|
1514
1682
|
"title": "Name",
|
|
1515
1683
|
"type": "string",
|
|
1516
|
-
"
|
|
1684
|
+
"default": "Preset",
|
|
1517
1685
|
"description": "Your own name displayed in Homebridge/HomeKit app.",
|
|
1518
1686
|
"condition": {
|
|
1519
1687
|
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
|
|
@@ -1534,6 +1702,87 @@
|
|
|
1534
1702
|
]
|
|
1535
1703
|
}
|
|
1536
1704
|
},
|
|
1705
|
+
"schedules": {
|
|
1706
|
+
"title": "Schedules",
|
|
1707
|
+
"type": "array",
|
|
1708
|
+
"items": {
|
|
1709
|
+
"type": "object",
|
|
1710
|
+
"properties": {
|
|
1711
|
+
"id": {
|
|
1712
|
+
"title": "Id",
|
|
1713
|
+
"type": "string",
|
|
1714
|
+
"default": "0"
|
|
1715
|
+
},
|
|
1716
|
+
"displayType": {
|
|
1717
|
+
"title": "Display Type",
|
|
1718
|
+
"type": "integer",
|
|
1719
|
+
"minimum": 0,
|
|
1720
|
+
"maximum": 5,
|
|
1721
|
+
"default": 0,
|
|
1722
|
+
"description": "Select the characteristic type to be displayed in HomeKit app.",
|
|
1723
|
+
"anyOf": [
|
|
1724
|
+
{
|
|
1725
|
+
"title": "None/Disabled",
|
|
1726
|
+
"enum": [
|
|
1727
|
+
0
|
|
1728
|
+
]
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
"title": "Outlet",
|
|
1732
|
+
"enum": [
|
|
1733
|
+
1
|
|
1734
|
+
]
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
"title": "Switch",
|
|
1738
|
+
"enum": [
|
|
1739
|
+
2
|
|
1740
|
+
]
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
"title": "Motion Sensor",
|
|
1744
|
+
"enum": [
|
|
1745
|
+
3
|
|
1746
|
+
]
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
"title": "Occupancy Sensor",
|
|
1750
|
+
"enum": [
|
|
1751
|
+
4
|
|
1752
|
+
]
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
"title": "Contact Sensor",
|
|
1756
|
+
"enum": [
|
|
1757
|
+
5
|
|
1758
|
+
]
|
|
1759
|
+
}
|
|
1760
|
+
]
|
|
1761
|
+
},
|
|
1762
|
+
"name": {
|
|
1763
|
+
"title": "Name",
|
|
1764
|
+
"type": "string",
|
|
1765
|
+
"default": "Preset",
|
|
1766
|
+
"description": "Your own name displayed in Homebridge/HomeKit app.",
|
|
1767
|
+
"condition": {
|
|
1768
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
1769
|
+
}
|
|
1770
|
+
},
|
|
1771
|
+
"namePrefix": {
|
|
1772
|
+
"title": "Prefix",
|
|
1773
|
+
"type": "boolean",
|
|
1774
|
+
"default": false,
|
|
1775
|
+
"description": "Enable/disable the accessory name as a prefix for button/sensor name.",
|
|
1776
|
+
"condition": {
|
|
1777
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
},
|
|
1781
|
+
"required": [
|
|
1782
|
+
"displayType"
|
|
1783
|
+
]
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1537
1786
|
"buttonsSensors": {
|
|
1538
1787
|
"title": "Buttons",
|
|
1539
1788
|
"type": "array",
|
|
@@ -1799,10 +2048,10 @@
|
|
|
1799
2048
|
}
|
|
1800
2049
|
},
|
|
1801
2050
|
"clientId": {
|
|
1802
|
-
"title": "Client
|
|
2051
|
+
"title": "Client Id",
|
|
1803
2052
|
"type": "string",
|
|
1804
2053
|
"placeholder": "client id",
|
|
1805
|
-
"description": "Here optional set the Client
|
|
2054
|
+
"description": "Here optional set the Client Id of MQTT Broker.",
|
|
1806
2055
|
"condition": {
|
|
1807
2056
|
"functionBody": "return model.accounts[arrayIndices].mqtt.enable === true"
|
|
1808
2057
|
}
|
|
@@ -1943,56 +2192,77 @@
|
|
|
1943
2192
|
}
|
|
1944
2193
|
],
|
|
1945
2194
|
"condition": {
|
|
1946
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayType > 0;"
|
|
2195
|
+
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloud' && model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayType > 0;"
|
|
1947
2196
|
}
|
|
1948
2197
|
},
|
|
1949
2198
|
{
|
|
1950
|
-
"title": "
|
|
2199
|
+
"title": "Schedules",
|
|
1951
2200
|
"type": "section",
|
|
2201
|
+
"description": "Section for setup device schedules",
|
|
1952
2202
|
"expandable": true,
|
|
1953
2203
|
"expanded": false,
|
|
1954
2204
|
"items": [
|
|
1955
2205
|
{
|
|
1956
|
-
"
|
|
1957
|
-
"type": "
|
|
1958
|
-
"
|
|
1959
|
-
"expandable": true,
|
|
1960
|
-
"expanded": false,
|
|
1961
|
-
"items": [
|
|
1962
|
-
"accounts[].ataDevices[].temperatureSensor",
|
|
1963
|
-
"accounts[].ataDevices[].temperatureOutdoorSensor"
|
|
1964
|
-
]
|
|
1965
|
-
},
|
|
1966
|
-
{
|
|
1967
|
-
"title": "System",
|
|
1968
|
-
"type": "section",
|
|
1969
|
-
"description": "Section for setup system sensors",
|
|
1970
|
-
"expandable": true,
|
|
1971
|
-
"expanded": false,
|
|
2206
|
+
"key": "accounts[].ataDevices[].schedules",
|
|
2207
|
+
"type": "tabarray",
|
|
2208
|
+
"title": "{{ value.name }}",
|
|
1972
2209
|
"items": [
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
"accounts[].ataDevices[].
|
|
2210
|
+
{
|
|
2211
|
+
"key": "accounts[].ataDevices[].schedules[].id",
|
|
2212
|
+
"readonly": true
|
|
2213
|
+
},
|
|
2214
|
+
"accounts[].ataDevices[].schedules[].displayType",
|
|
2215
|
+
"accounts[].ataDevices[].schedules[].name",
|
|
2216
|
+
"accounts[].ataDevices[].schedules[].namePrefix"
|
|
1978
2217
|
]
|
|
1979
|
-
}
|
|
2218
|
+
}
|
|
2219
|
+
],
|
|
2220
|
+
"condition": {
|
|
2221
|
+
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome' && model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayType > 0;"
|
|
2222
|
+
}
|
|
2223
|
+
},
|
|
2224
|
+
{
|
|
2225
|
+
"title": "Buttons / Sensors",
|
|
2226
|
+
"type": "section",
|
|
2227
|
+
"expandable": true,
|
|
2228
|
+
"expanded": false,
|
|
2229
|
+
"items": [
|
|
1980
2230
|
{
|
|
1981
|
-
"
|
|
1982
|
-
"type": "
|
|
1983
|
-
"
|
|
1984
|
-
"expandable": true,
|
|
1985
|
-
"expanded": false,
|
|
2231
|
+
"key": "accounts[].ataDevices[]",
|
|
2232
|
+
"type": "tabarray",
|
|
2233
|
+
"title": "{{ value.name }}",
|
|
1986
2234
|
"items": [
|
|
1987
2235
|
{
|
|
1988
|
-
"
|
|
1989
|
-
"
|
|
1990
|
-
|
|
2236
|
+
"title": "Temperature",
|
|
2237
|
+
"items": [
|
|
2238
|
+
"accounts[].ataDevices[].temperatureSensor",
|
|
2239
|
+
"accounts[].ataDevices[].temperatureOutdoorSensor"
|
|
2240
|
+
]
|
|
2241
|
+
},
|
|
2242
|
+
{
|
|
2243
|
+
"title": "System",
|
|
2244
|
+
"items": [
|
|
2245
|
+
"accounts[].ataDevices[].frostProtectionSensor",
|
|
2246
|
+
"accounts[].ataDevices[].overheatProtectionSensor",
|
|
2247
|
+
"accounts[].ataDevices[].holidayModeSensor",
|
|
2248
|
+
"accounts[].ataDevices[].scheduleSensor",
|
|
2249
|
+
"accounts[].ataDevices[].errorSensor"
|
|
2250
|
+
]
|
|
2251
|
+
},
|
|
2252
|
+
{
|
|
2253
|
+
"title": "Custom",
|
|
1991
2254
|
"items": [
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
2255
|
+
{
|
|
2256
|
+
"key": "accounts[].ataDevices[].buttonsSensors",
|
|
2257
|
+
"type": "tabarray",
|
|
2258
|
+
"title": "{{ value.name }}",
|
|
2259
|
+
"items": [
|
|
2260
|
+
"accounts[].ataDevices[].buttonsSensors[].displayType",
|
|
2261
|
+
"accounts[].ataDevices[].buttonsSensors[].mode",
|
|
2262
|
+
"accounts[].ataDevices[].buttonsSensors[].name",
|
|
2263
|
+
"accounts[].ataDevices[].buttonsSensors[].namePrefix"
|
|
2264
|
+
]
|
|
2265
|
+
}
|
|
1996
2266
|
]
|
|
1997
2267
|
}
|
|
1998
2268
|
]
|
|
@@ -2004,7 +2274,7 @@
|
|
|
2004
2274
|
}
|
|
2005
2275
|
],
|
|
2006
2276
|
"condition": {
|
|
2007
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].id !==
|
|
2277
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].id !== '0';"
|
|
2008
2278
|
}
|
|
2009
2279
|
}
|
|
2010
2280
|
]
|
|
@@ -2069,50 +2339,80 @@
|
|
|
2069
2339
|
}
|
|
2070
2340
|
],
|
|
2071
2341
|
"condition": {
|
|
2072
|
-
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayType > 0;"
|
|
2342
|
+
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloud' && model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayType > 0;"
|
|
2073
2343
|
}
|
|
2074
2344
|
},
|
|
2075
2345
|
{
|
|
2076
|
-
"title": "
|
|
2346
|
+
"title": "Schedules",
|
|
2077
2347
|
"type": "section",
|
|
2348
|
+
"description": "Section for setup device schedules",
|
|
2078
2349
|
"expandable": true,
|
|
2079
2350
|
"expanded": false,
|
|
2080
2351
|
"items": [
|
|
2081
|
-
"accounts[].atwDevices[].errorSensor",
|
|
2082
2352
|
{
|
|
2083
|
-
"
|
|
2084
|
-
"type": "
|
|
2085
|
-
"
|
|
2086
|
-
"expandable": true,
|
|
2087
|
-
"expanded": false,
|
|
2353
|
+
"key": "accounts[].atwDevices[].schedules",
|
|
2354
|
+
"type": "tabarray",
|
|
2355
|
+
"title": "{{ value.name }}",
|
|
2088
2356
|
"items": [
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
"accounts[].atwDevices[].
|
|
2094
|
-
"accounts[].atwDevices[].
|
|
2095
|
-
"accounts[].atwDevices[].
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2357
|
+
{
|
|
2358
|
+
"key": "accounts[].atwDevices[].schedules[].id",
|
|
2359
|
+
"readonly": true
|
|
2360
|
+
},
|
|
2361
|
+
"accounts[].atwDevices[].schedules[].displayType",
|
|
2362
|
+
"accounts[].atwDevices[].schedules[].name",
|
|
2363
|
+
"accounts[].atwDevices[].schedules[].namePrefix"
|
|
2364
|
+
]
|
|
2365
|
+
}
|
|
2366
|
+
],
|
|
2367
|
+
"condition": {
|
|
2368
|
+
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome' && model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayType > 0;"
|
|
2369
|
+
}
|
|
2370
|
+
},
|
|
2371
|
+
{
|
|
2372
|
+
"title": "Buttons / Sensors",
|
|
2373
|
+
"type": "section",
|
|
2374
|
+
"expandable": true,
|
|
2375
|
+
"expanded": false,
|
|
2376
|
+
"items": [
|
|
2377
|
+
{
|
|
2378
|
+
"key": "accounts[].atwDevices[]",
|
|
2379
|
+
"type": "tabarray",
|
|
2380
|
+
"title": "{{ value.name }}",
|
|
2106
2381
|
"items": [
|
|
2107
2382
|
{
|
|
2108
|
-
"
|
|
2109
|
-
"
|
|
2110
|
-
|
|
2383
|
+
"title": "Temperature",
|
|
2384
|
+
"items": [
|
|
2385
|
+
"accounts[].atwDevices[].temperatureSensor",
|
|
2386
|
+
"accounts[].atwDevices[].temperatureFlowSensor",
|
|
2387
|
+
"accounts[].atwDevices[].temperatureReturnSensor",
|
|
2388
|
+
"accounts[].atwDevices[].temperatureFlowZone1Sensor",
|
|
2389
|
+
"accounts[].atwDevices[].temperatureReturnZone1Sensor",
|
|
2390
|
+
"accounts[].atwDevices[].temperatureFlowWaterTankSensor",
|
|
2391
|
+
"accounts[].atwDevices[].temperatureReturnWaterTankSensor",
|
|
2392
|
+
"accounts[].atwDevices[].temperatureFlowZone2Sensor",
|
|
2393
|
+
"accounts[].atwDevices[].temperatureReturnZone2Sensor"
|
|
2394
|
+
]
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
"title": "System",
|
|
2398
|
+
"items": [
|
|
2399
|
+
"accounts[].atwDevices[].errorSensor"
|
|
2400
|
+
]
|
|
2401
|
+
},
|
|
2402
|
+
{
|
|
2403
|
+
"title": "Custom",
|
|
2111
2404
|
"items": [
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2405
|
+
{
|
|
2406
|
+
"key": "accounts[].atwDevices[].buttonsSensors",
|
|
2407
|
+
"type": "tabarray",
|
|
2408
|
+
"title": "{{ value.name }}",
|
|
2409
|
+
"items": [
|
|
2410
|
+
"accounts[].atwDevices[].buttonsSensors[].displayType",
|
|
2411
|
+
"accounts[].atwDevices[].buttonsSensors[].mode",
|
|
2412
|
+
"accounts[].atwDevices[].buttonsSensors[].name",
|
|
2413
|
+
"accounts[].atwDevices[].buttonsSensors[].namePrefix"
|
|
2414
|
+
]
|
|
2415
|
+
}
|
|
2116
2416
|
]
|
|
2117
2417
|
}
|
|
2118
2418
|
]
|
|
@@ -2124,7 +2424,7 @@
|
|
|
2124
2424
|
}
|
|
2125
2425
|
],
|
|
2126
2426
|
"condition": {
|
|
2127
|
-
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].id !==
|
|
2427
|
+
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].id !== '0';"
|
|
2128
2428
|
}
|
|
2129
2429
|
}
|
|
2130
2430
|
]
|
|
@@ -2188,44 +2488,74 @@
|
|
|
2188
2488
|
}
|
|
2189
2489
|
],
|
|
2190
2490
|
"condition": {
|
|
2191
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayType > 0;"
|
|
2491
|
+
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloud' && model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayType > 0;"
|
|
2192
2492
|
}
|
|
2193
2493
|
},
|
|
2194
2494
|
{
|
|
2195
|
-
"title": "
|
|
2495
|
+
"title": "Schedules",
|
|
2196
2496
|
"type": "section",
|
|
2497
|
+
"description": "Section for setup device schedules",
|
|
2197
2498
|
"expandable": true,
|
|
2198
2499
|
"expanded": false,
|
|
2199
2500
|
"items": [
|
|
2200
|
-
"accounts[].ervDevices[].errorSensor",
|
|
2201
2501
|
{
|
|
2202
|
-
"
|
|
2203
|
-
"type": "
|
|
2204
|
-
"
|
|
2205
|
-
"expandable": true,
|
|
2206
|
-
"expanded": false,
|
|
2502
|
+
"key": "accounts[].ervDevices[].schedules",
|
|
2503
|
+
"type": "tabarray",
|
|
2504
|
+
"title": "{{ value.name }}",
|
|
2207
2505
|
"items": [
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2506
|
+
{
|
|
2507
|
+
"key": "accounts[].ervDevices[].schedules[].id",
|
|
2508
|
+
"readonly": true
|
|
2509
|
+
},
|
|
2510
|
+
"accounts[].ervDevices[].schedules[].displayType",
|
|
2511
|
+
"accounts[].ervDevices[].schedules[].name",
|
|
2512
|
+
"accounts[].ervDevices[].schedules[].namePrefix"
|
|
2211
2513
|
]
|
|
2212
|
-
}
|
|
2514
|
+
}
|
|
2515
|
+
],
|
|
2516
|
+
"condition": {
|
|
2517
|
+
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome' && model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayType > 0;"
|
|
2518
|
+
}
|
|
2519
|
+
},
|
|
2520
|
+
{
|
|
2521
|
+
"title": "Buttons / Sensors",
|
|
2522
|
+
"type": "section",
|
|
2523
|
+
"expandable": true,
|
|
2524
|
+
"expanded": false,
|
|
2525
|
+
"items": [
|
|
2213
2526
|
{
|
|
2214
|
-
"
|
|
2215
|
-
"type": "
|
|
2216
|
-
"
|
|
2217
|
-
"expandable": true,
|
|
2218
|
-
"expanded": false,
|
|
2527
|
+
"key": "accounts[].ervDevices[]",
|
|
2528
|
+
"type": "tabarray",
|
|
2529
|
+
"title": "{{ value.name }}",
|
|
2219
2530
|
"items": [
|
|
2220
2531
|
{
|
|
2221
|
-
"
|
|
2222
|
-
"
|
|
2223
|
-
|
|
2532
|
+
"title": "Temperature",
|
|
2533
|
+
"items": [
|
|
2534
|
+
"accounts[].ervDevices[].temperatureSensor",
|
|
2535
|
+
"accounts[].ervDevices[].temperatureOutdoorSensor",
|
|
2536
|
+
"accounts[].ervDevices[].temperatureSensorSupply"
|
|
2537
|
+
]
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
"title": "System",
|
|
2541
|
+
"items": [
|
|
2542
|
+
"accounts[].ervDevices[].errorSensor"
|
|
2543
|
+
]
|
|
2544
|
+
},
|
|
2545
|
+
{
|
|
2546
|
+
"title": "Custom",
|
|
2224
2547
|
"items": [
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2548
|
+
{
|
|
2549
|
+
"key": "accounts[].ervDevices[].buttonsSensors",
|
|
2550
|
+
"type": "tabarray",
|
|
2551
|
+
"title": "{{ value.name || 'button/sensor' }}",
|
|
2552
|
+
"items": [
|
|
2553
|
+
"accounts[].ervDevices[].buttonsSensors[].displayType",
|
|
2554
|
+
"accounts[].ervDevices[].buttonsSensors[].mode",
|
|
2555
|
+
"accounts[].ervDevices[].buttonsSensors[].name",
|
|
2556
|
+
"accounts[].ervDevices[].buttonsSensors[].namePrefix"
|
|
2557
|
+
]
|
|
2558
|
+
}
|
|
2229
2559
|
]
|
|
2230
2560
|
}
|
|
2231
2561
|
]
|
|
@@ -2237,7 +2567,7 @@
|
|
|
2237
2567
|
}
|
|
2238
2568
|
],
|
|
2239
2569
|
"condition": {
|
|
2240
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].id !==
|
|
2570
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].id !== '0';"
|
|
2241
2571
|
}
|
|
2242
2572
|
}
|
|
2243
2573
|
]
|