homebridge-melcloud-control 3.10.0-beta.24 → 3.10.0-beta.26

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.
Files changed (2) hide show
  1. package/config.schema.json +129 -42
  2. package/package.json +1 -1
@@ -225,11 +225,6 @@
225
225
  "default": "Air Conditioner",
226
226
  "readonly": true
227
227
  },
228
- "name": {
229
- "title": "Name",
230
- "type": "string",
231
- "default": "Air Conditioner"
232
- },
233
228
  "displayMode": {
234
229
  "title": "Display Type",
235
230
  "type": "integer",
@@ -258,6 +253,11 @@
258
253
  }
259
254
  ]
260
255
  },
256
+ "name": {
257
+ "title": "Name",
258
+ "type": "string",
259
+ "default": "Air Conditioner"
260
+ },
261
261
  "heatDryFanMode": {
262
262
  "title": "Heat",
263
263
  "type": "integer",
@@ -390,12 +390,6 @@
390
390
  "title": "ID",
391
391
  "type": "integer"
392
392
  },
393
- "name": {
394
- "title": "Name",
395
- "type": "string",
396
- "placeholder": "Preset name",
397
- "description": "Your own name displayed in Homebridge/HomeKit app."
398
- },
399
393
  "displayType": {
400
394
  "title": "Display Type",
401
395
  "type": "integer",
@@ -442,11 +436,23 @@
442
436
  }
443
437
  ]
444
438
  },
439
+ "name": {
440
+ "title": "Name",
441
+ "type": "string",
442
+ "placeholder": "Preset name",
443
+ "description": "Your own name displayed in Homebridge/HomeKit app.",
444
+ "condition": {
445
+ "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
446
+ }
447
+ },
445
448
  "namePrefix": {
446
449
  "title": "Prefix",
447
450
  "type": "boolean",
448
451
  "default": false,
449
- "description": "Enable/disable the accessory name as a prefix for button/sensor name."
452
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
453
+ "condition": {
454
+ "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
455
+ }
450
456
  }
451
457
  },
452
458
  "required": [
@@ -723,19 +729,28 @@
723
729
  40
724
730
  ]
725
731
  }
726
- ]
732
+ ],
733
+ "condition": {
734
+ "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
735
+ }
727
736
  },
728
737
  "name": {
729
738
  "title": "Name",
730
739
  "type": "string",
731
740
  "placeholder": "Button name",
732
- "description": "Your own name displayed in Homebridge/HomeKit app."
741
+ "description": "Your own name displayed in Homebridge/HomeKit app.",
742
+ "condition": {
743
+ "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
744
+ }
733
745
  },
734
746
  "namePrefix": {
735
747
  "title": "Prefix",
736
748
  "type": "boolean",
737
749
  "default": false,
738
- "description": "Enable/disable the accessory name as a prefix for button/sensor name."
750
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
751
+ "condition": {
752
+ "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
753
+ }
739
754
  }
740
755
  },
741
756
  "required": [
@@ -1040,13 +1055,19 @@
1040
1055
  "title": "Name",
1041
1056
  "type": "string",
1042
1057
  "placeholder": "Preset name",
1043
- "description": "Your own name displayed in Homebridge/HomeKit app."
1058
+ "description": "Your own name displayed in Homebridge/HomeKit app.",
1059
+ "condition": {
1060
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
1061
+ }
1044
1062
  },
1045
1063
  "namePrefix": {
1046
1064
  "title": "Prefix",
1047
1065
  "type": "boolean",
1048
1066
  "default": false,
1049
- "description": "Enable/disable the accessory name as a prefix for button/sensor name."
1067
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
1068
+ "condition": {
1069
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
1070
+ }
1050
1071
  }
1051
1072
  },
1052
1073
  "required": [
@@ -1245,19 +1266,28 @@
1245
1266
  70
1246
1267
  ]
1247
1268
  }
1248
- ]
1269
+ ],
1270
+ "condition": {
1271
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
1272
+ }
1249
1273
  },
1250
1274
  "name": {
1251
1275
  "title": "Name",
1252
1276
  "type": "string",
1253
1277
  "placeholder": "Button name",
1254
- "description": "Your own name displayed in Homebridge/HomeKit app."
1278
+ "description": "Your own name displayed in Homebridge/HomeKit app.",
1279
+ "condition": {
1280
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
1281
+ }
1255
1282
  },
1256
1283
  "namePrefix": {
1257
1284
  "title": "Prefix",
1258
1285
  "type": "boolean",
1259
1286
  "default": false,
1260
- "description": "Enable/disable the accessory name as a prefix for button/sensor name."
1287
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
1288
+ "condition": {
1289
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
1290
+ }
1261
1291
  }
1262
1292
  },
1263
1293
  "required": [
@@ -1413,19 +1443,28 @@
1413
1443
  5
1414
1444
  ]
1415
1445
  }
1416
- ]
1446
+ ],
1447
+ "condition": {
1448
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
1449
+ }
1417
1450
  },
1418
1451
  "name": {
1419
1452
  "title": "Name",
1420
1453
  "type": "string",
1421
1454
  "placeholder": "Preset name",
1422
- "description": "Your own name displayed in Homebridge/HomeKit app."
1455
+ "description": "Your own name displayed in Homebridge/HomeKit app.",
1456
+ "condition": {
1457
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
1458
+ }
1423
1459
  },
1424
1460
  "namePrefix": {
1425
1461
  "title": "Prefix",
1426
1462
  "type": "boolean",
1427
1463
  "default": false,
1428
- "description": "Enable/disable the accessory name as a prefix for button/sensor name."
1464
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
1465
+ "condition": {
1466
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
1467
+ }
1429
1468
  }
1430
1469
  },
1431
1470
  "required": [
@@ -1576,19 +1615,28 @@
1576
1615
  18
1577
1616
  ]
1578
1617
  }
1579
- ]
1618
+ ],
1619
+ "condition": {
1620
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
1621
+ }
1580
1622
  },
1581
1623
  "name": {
1582
1624
  "title": "Name",
1583
1625
  "type": "string",
1584
1626
  "placeholder": "Button name",
1585
- "description": "Your own name displayed in Homebridge/HomeKit app."
1627
+ "description": "Your own name displayed in Homebridge/HomeKit app.",
1628
+ "condition": {
1629
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
1630
+ }
1586
1631
  },
1587
1632
  "namePrefix": {
1588
1633
  "title": "Prefix",
1589
1634
  "type": "boolean",
1590
1635
  "default": false,
1591
- "description": "Enable/disable the accessory name as a prefix for button/sensor name."
1636
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
1637
+ "condition": {
1638
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
1639
+ }
1592
1640
  }
1593
1641
  },
1594
1642
  "required": [
@@ -1809,6 +1857,7 @@
1809
1857
  "key": "accounts[].ataDevices[].typeString",
1810
1858
  "readonly": true
1811
1859
  },
1860
+ "accounts[].ataDevices[].displayMode",
1812
1861
  {
1813
1862
  "key": "accounts[].ataDevices[]",
1814
1863
  "title": "Settings",
@@ -1816,13 +1865,15 @@
1816
1865
  "expandable": true,
1817
1866
  "expanded": false,
1818
1867
  "items": [
1819
- "accounts[].ataDevices[].displayMode",
1820
1868
  "accounts[].ataDevices[].name",
1821
1869
  "accounts[].ataDevices[].heatDryFanMode",
1822
1870
  "accounts[].ataDevices[].coolDryFanMode",
1823
1871
  "accounts[].ataDevices[].autoDryFanMode",
1824
1872
  "accounts[].ataDevices[].refreshInterval"
1825
- ]
1873
+ ],
1874
+ "condition": {
1875
+ "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayMode > 0;"
1876
+ }
1826
1877
  },
1827
1878
  {
1828
1879
  "key": "accounts[].ataDevices[]",
@@ -1833,7 +1884,10 @@
1833
1884
  "items": [
1834
1885
  "accounts[].ataDevices[].temperatureSensor",
1835
1886
  "accounts[].ataDevices[].temperatureSensorOutdoor"
1836
- ]
1887
+ ],
1888
+ "condition": {
1889
+ "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayMode > 0;"
1890
+ }
1837
1891
  },
1838
1892
  {
1839
1893
  "key": "accounts[].ataDevices[].presets",
@@ -1856,7 +1910,10 @@
1856
1910
  "accounts[].ataDevices[].presets[].namePrefix"
1857
1911
  ]
1858
1912
  }
1859
- ]
1913
+ ],
1914
+ "condition": {
1915
+ "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayMode > 0;"
1916
+ }
1860
1917
  },
1861
1918
  {
1862
1919
  "key": "accounts[].ataDevices[].buttonsSensors",
@@ -1876,7 +1933,10 @@
1876
1933
  "accounts[].ataDevices[].buttonsSensors[].namePrefix"
1877
1934
  ]
1878
1935
  }
1879
- ]
1936
+ ],
1937
+ "condition": {
1938
+ "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayMode > 0;"
1939
+ }
1880
1940
  }
1881
1941
  ],
1882
1942
  "condition": {
@@ -1911,6 +1971,7 @@
1911
1971
  "key": "accounts[].atwDevices[].typeString",
1912
1972
  "readonly": true
1913
1973
  },
1974
+ "accounts[].atwDevices[].displayMode",
1914
1975
  {
1915
1976
  "key": "accounts[].atwDevices[]",
1916
1977
  "type": "section",
@@ -1918,11 +1979,13 @@
1918
1979
  "expandable": true,
1919
1980
  "expanded": false,
1920
1981
  "items": [
1921
- "accounts[].atwDevices[].displayMode",
1922
1982
  "accounts[].atwDevices[].hideZone",
1923
1983
  "accounts[].atwDevices[].name",
1924
1984
  "accounts[].atwDevices[].refreshInterval"
1925
- ]
1985
+ ],
1986
+ "condition": {
1987
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayMode > 0;"
1988
+ }
1926
1989
  },
1927
1990
  {
1928
1991
  "key": "accounts[].atwDevices[]",
@@ -1940,7 +2003,10 @@
1940
2003
  "accounts[].atwDevices[].temperatureSensorReturnWaterTank",
1941
2004
  "accounts[].atwDevices[].temperatureSensorFlowZone2",
1942
2005
  "accounts[].atwDevices[].temperatureSensorReturnZone2"
1943
- ]
2006
+ ],
2007
+ "condition": {
2008
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayMode > 0;"
2009
+ }
1944
2010
  },
1945
2011
  {
1946
2012
  "key": "accounts[].atwDevices[].presets",
@@ -1963,7 +2029,10 @@
1963
2029
  "accounts[].atwDevices[].presets[].namePrefix"
1964
2030
  ]
1965
2031
  }
1966
- ]
2032
+ ],
2033
+ "condition": {
2034
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayMode > 0;"
2035
+ }
1967
2036
  },
1968
2037
  {
1969
2038
  "key": "accounts[].atwDevices[].buttonsSensors",
@@ -1983,7 +2052,10 @@
1983
2052
  "accounts[].atwDevices[].buttonsSensors[].namePrefix"
1984
2053
  ]
1985
2054
  }
1986
- ]
2055
+ ],
2056
+ "condition": {
2057
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayMode > 0;"
2058
+ }
1987
2059
  }
1988
2060
  ],
1989
2061
  "condition": {
@@ -2018,6 +2090,7 @@
2018
2090
  "key": "accounts[].ervDevices[].typeString",
2019
2091
  "readonly": true
2020
2092
  },
2093
+ "accounts[].ervDevices[].displayMode",
2021
2094
  {
2022
2095
  "key": "accounts[].ervDevices[]",
2023
2096
  "title": "Settings",
@@ -2025,10 +2098,12 @@
2025
2098
  "expandable": true,
2026
2099
  "expanded": false,
2027
2100
  "items": [
2028
- "accounts[].ervDevices[].displayMode",
2029
2101
  "accounts[].ervDevices[].name",
2030
2102
  "accounts[].ervDevices[].refreshInterval"
2031
- ]
2103
+ ],
2104
+ "condition": {
2105
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayMode > 0;"
2106
+ }
2032
2107
  },
2033
2108
  {
2034
2109
  "key": "accounts[].ervDevices[]",
@@ -2040,7 +2115,10 @@
2040
2115
  "accounts[].ervDevices[].temperatureSensor",
2041
2116
  "accounts[].ervDevices[].temperatureSensorOutdoor",
2042
2117
  "accounts[].ervDevices[].temperatureSensorSupply"
2043
- ]
2118
+ ],
2119
+ "condition": {
2120
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayMode > 0;"
2121
+ }
2044
2122
  },
2045
2123
  {
2046
2124
  "key": "accounts[].ervDevices[].presets",
@@ -2063,7 +2141,10 @@
2063
2141
  "accounts[].ervDevices[].presets[].namePrefix"
2064
2142
  ]
2065
2143
  }
2066
- ]
2144
+ ],
2145
+ "condition": {
2146
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayMode > 0;"
2147
+ }
2067
2148
  },
2068
2149
  {
2069
2150
  "key": "accounts[].ervDevices[].buttonsSensors",
@@ -2083,7 +2164,10 @@
2083
2164
  "accounts[].ervDevices[].buttonsSensors[].namePrefix"
2084
2165
  ]
2085
2166
  }
2086
- ]
2167
+ ],
2168
+ "condition": {
2169
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayMode > 0;"
2170
+ }
2087
2171
  }
2088
2172
  ],
2089
2173
  "condition": {
@@ -2181,7 +2265,10 @@
2181
2265
  }
2182
2266
  ]
2183
2267
  }
2184
- ]
2268
+ ],
2269
+ "condition": {
2270
+ "functionBody": "return model.accounts[arrayIndices].ataDevices.length > 0 || model.accounts[arrayIndices].atwDevices.length > 0 || model.accounts[arrayIndices].ervDevices.length > 0;"
2271
+ }
2185
2272
  }
2186
2273
  ]
2187
2274
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.10.0-beta.24",
4
+ "version": "3.10.0-beta.26",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",