homebridge-melcloud-control 4.0.0-beta.43 → 4.0.0-beta.430
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 +12 -11
- package/config.schema.json +272 -314
- package/homebridge-ui/public/index.html +104 -64
- package/homebridge-ui/server.js +5 -9
- package/index.js +38 -20
- package/package.json +6 -3
- package/src/constants.js +15 -22
- package/src/deviceata.js +199 -188
- package/src/deviceatw.js +7 -5
- package/src/deviceerv.js +28 -26
- package/src/functions.js +124 -3
- package/src/melcloud.js +312 -131
- package/src/melcloudata.js +139 -308
- package/src/melcloudatw.js +3 -228
- package/src/melclouderv.js +5 -162
- package/src/melcloudhometoken.js +231 -0
- package/src/restful.js +1 -1
package/config.schema.json
CHANGED
|
@@ -201,11 +201,11 @@
|
|
|
201
201
|
}
|
|
202
202
|
]
|
|
203
203
|
},
|
|
204
|
-
"
|
|
204
|
+
"type": {
|
|
205
205
|
"title": "Account Type",
|
|
206
206
|
"type": "string",
|
|
207
|
-
"default": "
|
|
208
|
-
"description": "Here select the
|
|
207
|
+
"default": "disabled",
|
|
208
|
+
"description": "Here select the MELCloud account type.",
|
|
209
209
|
"oneOf": [
|
|
210
210
|
{
|
|
211
211
|
"title": "None/Disabled",
|
|
@@ -235,28 +235,25 @@
|
|
|
235
235
|
"properties": {
|
|
236
236
|
"id": {
|
|
237
237
|
"title": "ID",
|
|
238
|
-
"type": "
|
|
239
|
-
"default": 0
|
|
240
|
-
"readonly": true
|
|
238
|
+
"type": "string",
|
|
239
|
+
"default": "0"
|
|
241
240
|
},
|
|
242
241
|
"type": {
|
|
243
242
|
"title": "Type",
|
|
244
243
|
"type": "integer",
|
|
245
|
-
"default": 0
|
|
246
|
-
"readonly": true
|
|
244
|
+
"default": 0
|
|
247
245
|
},
|
|
248
246
|
"typeString": {
|
|
249
247
|
"title": "Type",
|
|
250
248
|
"type": "string",
|
|
251
|
-
"default": "Air Conditioner"
|
|
252
|
-
"readonly": true
|
|
249
|
+
"default": "Air Conditioner"
|
|
253
250
|
},
|
|
254
|
-
"
|
|
251
|
+
"displayType": {
|
|
255
252
|
"title": "Display Type",
|
|
256
253
|
"type": "integer",
|
|
257
254
|
"minimum": 0,
|
|
258
255
|
"maximum": 2,
|
|
259
|
-
"default":
|
|
256
|
+
"default": 0,
|
|
260
257
|
"description": "Select accessory control type displayed in HomeKit app.",
|
|
261
258
|
"oneOf": [
|
|
262
259
|
{
|
|
@@ -786,14 +783,11 @@
|
|
|
786
783
|
}
|
|
787
784
|
},
|
|
788
785
|
"required": [
|
|
789
|
-
"
|
|
786
|
+
"displayType",
|
|
790
787
|
"heatDryFanMode",
|
|
791
788
|
"coolDryFanMode",
|
|
792
789
|
"autoDryFanMode"
|
|
793
790
|
]
|
|
794
|
-
},
|
|
795
|
-
"condition": {
|
|
796
|
-
"functionBody": "const accounts = model.accounts[arrayIndices]?.ataDevices || []; return accounts.length > 0 && accounts.every(device => device.id != null);"
|
|
797
791
|
}
|
|
798
792
|
},
|
|
799
793
|
"atwDevices": {
|
|
@@ -804,33 +798,30 @@
|
|
|
804
798
|
"properties": {
|
|
805
799
|
"id": {
|
|
806
800
|
"title": "ID",
|
|
807
|
-
"type": "
|
|
808
|
-
"default": 0
|
|
809
|
-
"readonly": true
|
|
801
|
+
"type": "string",
|
|
802
|
+
"default": "0"
|
|
810
803
|
},
|
|
811
804
|
"type": {
|
|
812
805
|
"title": "Type",
|
|
813
806
|
"type": "integer",
|
|
814
|
-
"default": 1
|
|
815
|
-
"readonly": true
|
|
807
|
+
"default": 1
|
|
816
808
|
},
|
|
817
809
|
"typeString": {
|
|
818
810
|
"title": "Type",
|
|
819
811
|
"type": "string",
|
|
820
|
-
"default": "Heat Pump"
|
|
821
|
-
"readonly": true
|
|
812
|
+
"default": "Heat Pump"
|
|
822
813
|
},
|
|
823
814
|
"name": {
|
|
824
815
|
"title": "Name",
|
|
825
816
|
"type": "string",
|
|
826
817
|
"default": "Heat Pump"
|
|
827
818
|
},
|
|
828
|
-
"
|
|
819
|
+
"displayType": {
|
|
829
820
|
"title": "Display Type",
|
|
830
821
|
"type": "integer",
|
|
831
822
|
"minimum": 0,
|
|
832
823
|
"maximum": 2,
|
|
833
|
-
"default":
|
|
824
|
+
"default": 0,
|
|
834
825
|
"description": "Select accessory control type displayed in HomeKit app.",
|
|
835
826
|
"oneOf": [
|
|
836
827
|
{
|
|
@@ -1323,12 +1314,9 @@
|
|
|
1323
1314
|
}
|
|
1324
1315
|
},
|
|
1325
1316
|
"required": [
|
|
1326
|
-
"
|
|
1317
|
+
"displayType",
|
|
1327
1318
|
"hideZone"
|
|
1328
1319
|
]
|
|
1329
|
-
},
|
|
1330
|
-
"condition": {
|
|
1331
|
-
"functionBody": "const accounts = model.accounts[arrayIndices]?.atwDevices || []; return accounts.length > 0 && accounts.every(device => device.id != null);"
|
|
1332
1320
|
}
|
|
1333
1321
|
},
|
|
1334
1322
|
"ervDevices": {
|
|
@@ -1339,33 +1327,30 @@
|
|
|
1339
1327
|
"properties": {
|
|
1340
1328
|
"id": {
|
|
1341
1329
|
"title": "ID",
|
|
1342
|
-
"type": "
|
|
1343
|
-
"default": 0
|
|
1344
|
-
"readonly": true
|
|
1330
|
+
"type": "string",
|
|
1331
|
+
"default": "0"
|
|
1345
1332
|
},
|
|
1346
1333
|
"type": {
|
|
1347
1334
|
"title": "Type",
|
|
1348
1335
|
"type": "integer",
|
|
1349
|
-
"default": 3
|
|
1350
|
-
"readonly": true
|
|
1336
|
+
"default": 3
|
|
1351
1337
|
},
|
|
1352
1338
|
"typeString": {
|
|
1353
1339
|
"title": "Type",
|
|
1354
1340
|
"type": "string",
|
|
1355
|
-
"default": "Ventilation"
|
|
1356
|
-
"readonly": true
|
|
1341
|
+
"default": "Ventilation"
|
|
1357
1342
|
},
|
|
1358
1343
|
"name": {
|
|
1359
1344
|
"title": "Name",
|
|
1360
1345
|
"type": "string",
|
|
1361
1346
|
"default": "Ventilation"
|
|
1362
1347
|
},
|
|
1363
|
-
"
|
|
1348
|
+
"displayType": {
|
|
1364
1349
|
"title": "Display Type",
|
|
1365
1350
|
"type": "integer",
|
|
1366
1351
|
"minimum": 0,
|
|
1367
1352
|
"maximum": 2,
|
|
1368
|
-
"default":
|
|
1353
|
+
"default": 0,
|
|
1369
1354
|
"description": "Select accessory control type displayed in HomeKit app.",
|
|
1370
1355
|
"oneOf": [
|
|
1371
1356
|
{
|
|
@@ -1672,11 +1657,8 @@
|
|
|
1672
1657
|
}
|
|
1673
1658
|
},
|
|
1674
1659
|
"required": [
|
|
1675
|
-
"
|
|
1660
|
+
"displayType"
|
|
1676
1661
|
]
|
|
1677
|
-
},
|
|
1678
|
-
"condition": {
|
|
1679
|
-
"functionBody": "const accounts = model.accounts[arrayIndices]?.ervDevices || []; return accounts.length > 0 && accounts.every(device => device.id != null);"
|
|
1680
1662
|
}
|
|
1681
1663
|
},
|
|
1682
1664
|
"refreshInterval": {
|
|
@@ -1825,7 +1807,7 @@
|
|
|
1825
1807
|
"user",
|
|
1826
1808
|
"passwd",
|
|
1827
1809
|
"language",
|
|
1828
|
-
"
|
|
1810
|
+
"type"
|
|
1829
1811
|
]
|
|
1830
1812
|
}
|
|
1831
1813
|
}
|
|
@@ -1844,7 +1826,7 @@
|
|
|
1844
1826
|
"type": "password"
|
|
1845
1827
|
},
|
|
1846
1828
|
"accounts[].language",
|
|
1847
|
-
"accounts[].
|
|
1829
|
+
"accounts[].type",
|
|
1848
1830
|
{
|
|
1849
1831
|
"key": "accounts[]",
|
|
1850
1832
|
"type": "tabarray",
|
|
@@ -1859,108 +1841,100 @@
|
|
|
1859
1841
|
"type": "tabarray",
|
|
1860
1842
|
"title": "{{ value.name }}",
|
|
1861
1843
|
"items": [
|
|
1862
|
-
{
|
|
1863
|
-
"key": "accounts[].ataDevices[].id",
|
|
1864
|
-
"readonly": true
|
|
1865
|
-
},
|
|
1866
|
-
{
|
|
1867
|
-
"key": "accounts[].ataDevices[].typeString",
|
|
1868
|
-
"readonly": true
|
|
1869
|
-
},
|
|
1870
|
-
"accounts[].ataDevices[].displayMode",
|
|
1871
1844
|
{
|
|
1872
1845
|
"key": "accounts[].ataDevices[]",
|
|
1873
|
-
"title": "Settings",
|
|
1874
|
-
"type": "section",
|
|
1875
|
-
"expandable": true,
|
|
1876
|
-
"expanded": false,
|
|
1877
|
-
"items": [
|
|
1878
|
-
"accounts[].ataDevices[].name",
|
|
1879
|
-
"accounts[].ataDevices[].heatDryFanMode",
|
|
1880
|
-
"accounts[].ataDevices[].coolDryFanMode",
|
|
1881
|
-
"accounts[].ataDevices[].autoDryFanMode",
|
|
1882
|
-
"accounts[].ataDevices[].refreshInterval"
|
|
1883
|
-
],
|
|
1884
|
-
"condition": {
|
|
1885
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayMode > 0;"
|
|
1886
|
-
}
|
|
1887
|
-
},
|
|
1888
|
-
{
|
|
1889
|
-
"key": "accounts[].ataDevices[]",
|
|
1890
|
-
"title": "Temperature Sensors",
|
|
1891
|
-
"type": "section",
|
|
1892
|
-
"expandable": true,
|
|
1893
|
-
"expanded": false,
|
|
1894
|
-
"items": [
|
|
1895
|
-
"accounts[].ataDevices[].temperatureSensor",
|
|
1896
|
-
"accounts[].ataDevices[].temperatureSensorOutdoor"
|
|
1897
|
-
],
|
|
1898
|
-
"condition": {
|
|
1899
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayMode > 0;"
|
|
1900
|
-
}
|
|
1901
|
-
},
|
|
1902
|
-
{
|
|
1903
|
-
"key": "accounts[].ataDevices[].presets",
|
|
1904
|
-
"title": "Presets",
|
|
1905
|
-
"type": "section",
|
|
1906
|
-
"expandable": true,
|
|
1907
|
-
"expanded": false,
|
|
1908
1846
|
"items": [
|
|
1909
1847
|
{
|
|
1910
|
-
"key": "accounts[].ataDevices[].
|
|
1911
|
-
"
|
|
1912
|
-
|
|
1848
|
+
"key": "accounts[].ataDevices[].id",
|
|
1849
|
+
"readonly": true
|
|
1850
|
+
},
|
|
1851
|
+
{
|
|
1852
|
+
"key": "accounts[].ataDevices[].typeString",
|
|
1853
|
+
"readonly": true
|
|
1854
|
+
},
|
|
1855
|
+
"accounts[].ataDevices[].displayType",
|
|
1856
|
+
{
|
|
1857
|
+
"title": "Settings",
|
|
1858
|
+
"type": "section",
|
|
1859
|
+
"expandable": true,
|
|
1860
|
+
"expanded": false,
|
|
1861
|
+
"items": [
|
|
1862
|
+
"accounts[].ataDevices[].name",
|
|
1863
|
+
"accounts[].ataDevices[].heatDryFanMode",
|
|
1864
|
+
"accounts[].ataDevices[].coolDryFanMode",
|
|
1865
|
+
"accounts[].ataDevices[].autoDryFanMode",
|
|
1866
|
+
"accounts[].ataDevices[].refreshInterval"
|
|
1867
|
+
],
|
|
1868
|
+
"condition": {
|
|
1869
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayType > 0;"
|
|
1870
|
+
}
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
"title": "Temperature Sensors",
|
|
1874
|
+
"type": "section",
|
|
1875
|
+
"expandable": true,
|
|
1876
|
+
"expanded": false,
|
|
1877
|
+
"items": [
|
|
1878
|
+
"accounts[].ataDevices[].temperatureSensor",
|
|
1879
|
+
"accounts[].ataDevices[].temperatureSensorOutdoor"
|
|
1880
|
+
],
|
|
1881
|
+
"condition": {
|
|
1882
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayType > 0;"
|
|
1883
|
+
}
|
|
1884
|
+
},
|
|
1885
|
+
{
|
|
1886
|
+
"title": "Presets",
|
|
1887
|
+
"type": "section",
|
|
1888
|
+
"expandable": true,
|
|
1889
|
+
"expanded": false,
|
|
1913
1890
|
"items": [
|
|
1914
1891
|
{
|
|
1915
|
-
"key": "accounts[].ataDevices[].presets
|
|
1916
|
-
"
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
"expanded": false,
|
|
1934
|
-
"items": [
|
|
1892
|
+
"key": "accounts[].ataDevices[].presets",
|
|
1893
|
+
"type": "tabarray",
|
|
1894
|
+
"title": "{{ value.name }}",
|
|
1895
|
+
"items": [
|
|
1896
|
+
{
|
|
1897
|
+
"key": "accounts[].ataDevices[].presets[].id",
|
|
1898
|
+
"readonly": true
|
|
1899
|
+
},
|
|
1900
|
+
"accounts[].ataDevices[].presets[].displayType",
|
|
1901
|
+
"accounts[].ataDevices[].presets[].name",
|
|
1902
|
+
"accounts[].ataDevices[].presets[].namePrefix"
|
|
1903
|
+
]
|
|
1904
|
+
}
|
|
1905
|
+
],
|
|
1906
|
+
"condition": {
|
|
1907
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayType > 0;"
|
|
1908
|
+
}
|
|
1909
|
+
},
|
|
1935
1910
|
{
|
|
1936
|
-
"
|
|
1937
|
-
"type": "
|
|
1938
|
-
"
|
|
1911
|
+
"title": "Buttons / Sensors",
|
|
1912
|
+
"type": "section",
|
|
1913
|
+
"expandable": true,
|
|
1914
|
+
"expanded": false,
|
|
1939
1915
|
"items": [
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1916
|
+
{
|
|
1917
|
+
"key": "accounts[].ataDevices[].buttonsSensors",
|
|
1918
|
+
"type": "tabarray",
|
|
1919
|
+
"title": "{{ value.name || 'button/sensor' }}",
|
|
1920
|
+
"items": [
|
|
1921
|
+
"accounts[].ataDevices[].buttonsSensors[].displayType",
|
|
1922
|
+
"accounts[].ataDevices[].buttonsSensors[].mode",
|
|
1923
|
+
"accounts[].ataDevices[].buttonsSensors[].name",
|
|
1924
|
+
"accounts[].ataDevices[].buttonsSensors[].namePrefix"
|
|
1925
|
+
]
|
|
1926
|
+
}
|
|
1927
|
+
],
|
|
1928
|
+
"condition": {
|
|
1929
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayType > 0;"
|
|
1930
|
+
}
|
|
1945
1931
|
}
|
|
1946
1932
|
],
|
|
1947
1933
|
"condition": {
|
|
1948
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].
|
|
1934
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].id !== '0';"
|
|
1949
1935
|
}
|
|
1950
1936
|
}
|
|
1951
|
-
]
|
|
1952
|
-
"condition": {
|
|
1953
|
-
"functionBody": "return model.accounts[arrayIndices].ataDevices.length > 0;"
|
|
1954
|
-
}
|
|
1955
|
-
},
|
|
1956
|
-
{
|
|
1957
|
-
"key": "accounts[]",
|
|
1958
|
-
"type": "tabarray",
|
|
1959
|
-
"title": "{{ value.title }}",
|
|
1960
|
-
"items": [],
|
|
1961
|
-
"condition": {
|
|
1962
|
-
"functionBody": "return model.accounts[arrayIndices].ataDevices.length === 0;"
|
|
1963
|
-
}
|
|
1937
|
+
]
|
|
1964
1938
|
}
|
|
1965
1939
|
]
|
|
1966
1940
|
},
|
|
@@ -1973,113 +1947,105 @@
|
|
|
1973
1947
|
"type": "tabarray",
|
|
1974
1948
|
"title": "{{ value.name }}",
|
|
1975
1949
|
"items": [
|
|
1976
|
-
{
|
|
1977
|
-
"key": "accounts[].atwDevices[].id",
|
|
1978
|
-
"readonly": true
|
|
1979
|
-
},
|
|
1980
|
-
{
|
|
1981
|
-
"key": "accounts[].atwDevices[].typeString",
|
|
1982
|
-
"readonly": true
|
|
1983
|
-
},
|
|
1984
|
-
"accounts[].atwDevices[].displayMode",
|
|
1985
|
-
{
|
|
1986
|
-
"key": "accounts[].atwDevices[]",
|
|
1987
|
-
"type": "section",
|
|
1988
|
-
"title": "Settings",
|
|
1989
|
-
"expandable": true,
|
|
1990
|
-
"expanded": false,
|
|
1991
|
-
"items": [
|
|
1992
|
-
"accounts[].atwDevices[].hideZone",
|
|
1993
|
-
"accounts[].atwDevices[].name",
|
|
1994
|
-
"accounts[].atwDevices[].refreshInterval"
|
|
1995
|
-
],
|
|
1996
|
-
"condition": {
|
|
1997
|
-
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayMode > 0;"
|
|
1998
|
-
}
|
|
1999
|
-
},
|
|
2000
1950
|
{
|
|
2001
1951
|
"key": "accounts[].atwDevices[]",
|
|
2002
|
-
"title": "Temperature Sensors",
|
|
2003
|
-
"type": "section",
|
|
2004
|
-
"expandable": true,
|
|
2005
|
-
"expanded": false,
|
|
2006
|
-
"items": [
|
|
2007
|
-
"accounts[].atwDevices[].temperatureSensor",
|
|
2008
|
-
"accounts[].atwDevices[].temperatureSensorFlow",
|
|
2009
|
-
"accounts[].atwDevices[].temperatureSensorReturn",
|
|
2010
|
-
"accounts[].atwDevices[].temperatureSensorFlowZone1",
|
|
2011
|
-
"accounts[].atwDevices[].temperatureSensorReturnZone1",
|
|
2012
|
-
"accounts[].atwDevices[].temperatureSensorFlowWaterTank",
|
|
2013
|
-
"accounts[].atwDevices[].temperatureSensorReturnWaterTank",
|
|
2014
|
-
"accounts[].atwDevices[].temperatureSensorFlowZone2",
|
|
2015
|
-
"accounts[].atwDevices[].temperatureSensorReturnZone2"
|
|
2016
|
-
],
|
|
2017
|
-
"condition": {
|
|
2018
|
-
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayMode > 0;"
|
|
2019
|
-
}
|
|
2020
|
-
},
|
|
2021
|
-
{
|
|
2022
|
-
"key": "accounts[].atwDevices[].presets",
|
|
2023
|
-
"title": "Presets",
|
|
2024
|
-
"type": "section",
|
|
2025
|
-
"expandable": true,
|
|
2026
|
-
"expanded": false,
|
|
2027
1952
|
"items": [
|
|
2028
1953
|
{
|
|
2029
|
-
"key": "accounts[].atwDevices[].
|
|
2030
|
-
"
|
|
2031
|
-
|
|
1954
|
+
"key": "accounts[].atwDevices[].id",
|
|
1955
|
+
"readonly": true
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
"key": "accounts[].atwDevices[].typeString",
|
|
1959
|
+
"readonly": true
|
|
1960
|
+
},
|
|
1961
|
+
"accounts[].atwDevices[].displayType",
|
|
1962
|
+
{
|
|
1963
|
+
"type": "section",
|
|
1964
|
+
"title": "Settings",
|
|
1965
|
+
"expandable": true,
|
|
1966
|
+
"expanded": false,
|
|
1967
|
+
"items": [
|
|
1968
|
+
"accounts[].atwDevices[].hideZone",
|
|
1969
|
+
"accounts[].atwDevices[].name",
|
|
1970
|
+
"accounts[].atwDevices[].refreshInterval"
|
|
1971
|
+
],
|
|
1972
|
+
"condition": {
|
|
1973
|
+
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayType > 0;"
|
|
1974
|
+
}
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
"title": "Temperature Sensors",
|
|
1978
|
+
"type": "section",
|
|
1979
|
+
"expandable": true,
|
|
1980
|
+
"expanded": false,
|
|
1981
|
+
"items": [
|
|
1982
|
+
"accounts[].atwDevices[].temperatureSensor",
|
|
1983
|
+
"accounts[].atwDevices[].temperatureSensorFlow",
|
|
1984
|
+
"accounts[].atwDevices[].temperatureSensorReturn",
|
|
1985
|
+
"accounts[].atwDevices[].temperatureSensorFlowZone1",
|
|
1986
|
+
"accounts[].atwDevices[].temperatureSensorReturnZone1",
|
|
1987
|
+
"accounts[].atwDevices[].temperatureSensorFlowWaterTank",
|
|
1988
|
+
"accounts[].atwDevices[].temperatureSensorReturnWaterTank",
|
|
1989
|
+
"accounts[].atwDevices[].temperatureSensorFlowZone2",
|
|
1990
|
+
"accounts[].atwDevices[].temperatureSensorReturnZone2"
|
|
1991
|
+
],
|
|
1992
|
+
"condition": {
|
|
1993
|
+
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayType > 0;"
|
|
1994
|
+
}
|
|
1995
|
+
},
|
|
1996
|
+
{
|
|
1997
|
+
"title": "Presets",
|
|
1998
|
+
"type": "section",
|
|
1999
|
+
"expandable": true,
|
|
2000
|
+
"expanded": false,
|
|
2032
2001
|
"items": [
|
|
2033
2002
|
{
|
|
2034
|
-
"key": "accounts[].atwDevices[].presets
|
|
2035
|
-
"
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
"expanded": false,
|
|
2053
|
-
"items": [
|
|
2003
|
+
"key": "accounts[].atwDevices[].presets",
|
|
2004
|
+
"type": "tabarray",
|
|
2005
|
+
"title": "{{ value.name }}",
|
|
2006
|
+
"items": [
|
|
2007
|
+
{
|
|
2008
|
+
"key": "accounts[].atwDevices[].presets[].id",
|
|
2009
|
+
"readonly": true
|
|
2010
|
+
},
|
|
2011
|
+
"accounts[].atwDevices[].presets[].displayType",
|
|
2012
|
+
"accounts[].atwDevices[].presets[].name",
|
|
2013
|
+
"accounts[].atwDevices[].presets[].namePrefix"
|
|
2014
|
+
]
|
|
2015
|
+
}
|
|
2016
|
+
],
|
|
2017
|
+
"condition": {
|
|
2018
|
+
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayType > 0;"
|
|
2019
|
+
}
|
|
2020
|
+
},
|
|
2054
2021
|
{
|
|
2055
|
-
"
|
|
2056
|
-
"type": "
|
|
2057
|
-
"
|
|
2022
|
+
"title": "Buttons / Sensors",
|
|
2023
|
+
"type": "section",
|
|
2024
|
+
"expandable": true,
|
|
2025
|
+
"expanded": false,
|
|
2058
2026
|
"items": [
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2027
|
+
{
|
|
2028
|
+
"key": "accounts[].atwDevices[].buttonsSensors",
|
|
2029
|
+
"type": "tabarray",
|
|
2030
|
+
"title": "{{ value.name || 'button/sensor' }}",
|
|
2031
|
+
"items": [
|
|
2032
|
+
"accounts[].atwDevices[].buttonsSensors[].displayType",
|
|
2033
|
+
"accounts[].atwDevices[].buttonsSensors[].mode",
|
|
2034
|
+
"accounts[].atwDevices[].buttonsSensors[].name",
|
|
2035
|
+
"accounts[].atwDevices[].buttonsSensors[].namePrefix"
|
|
2036
|
+
]
|
|
2037
|
+
}
|
|
2038
|
+
],
|
|
2039
|
+
"condition": {
|
|
2040
|
+
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayType > 0;"
|
|
2041
|
+
}
|
|
2064
2042
|
}
|
|
2065
2043
|
],
|
|
2066
2044
|
"condition": {
|
|
2067
|
-
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].
|
|
2045
|
+
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].id !== '0';"
|
|
2068
2046
|
}
|
|
2069
2047
|
}
|
|
2070
|
-
]
|
|
2071
|
-
"condition": {
|
|
2072
|
-
"functionBody": "return model.accounts[arrayIndices].atwDevices.length > 0;"
|
|
2073
|
-
}
|
|
2074
|
-
},
|
|
2075
|
-
{
|
|
2076
|
-
"key": "accounts[]",
|
|
2077
|
-
"type": "tabarray",
|
|
2078
|
-
"title": "{{ value.title }}",
|
|
2079
|
-
"items": [],
|
|
2080
|
-
"condition": {
|
|
2081
|
-
"functionBody": "return model.accounts[arrayIndices].atwDevices.length === 0;"
|
|
2082
|
-
}
|
|
2048
|
+
]
|
|
2083
2049
|
}
|
|
2084
2050
|
]
|
|
2085
2051
|
},
|
|
@@ -2092,106 +2058,98 @@
|
|
|
2092
2058
|
"type": "tabarray",
|
|
2093
2059
|
"title": "{{ value.name }}",
|
|
2094
2060
|
"items": [
|
|
2095
|
-
{
|
|
2096
|
-
"key": "accounts[].ervDevices[].id",
|
|
2097
|
-
"readonly": true
|
|
2098
|
-
},
|
|
2099
|
-
{
|
|
2100
|
-
"key": "accounts[].ervDevices[].typeString",
|
|
2101
|
-
"readonly": true
|
|
2102
|
-
},
|
|
2103
|
-
"accounts[].ervDevices[].displayMode",
|
|
2104
|
-
{
|
|
2105
|
-
"key": "accounts[].ervDevices[]",
|
|
2106
|
-
"title": "Settings",
|
|
2107
|
-
"type": "section",
|
|
2108
|
-
"expandable": true,
|
|
2109
|
-
"expanded": false,
|
|
2110
|
-
"items": [
|
|
2111
|
-
"accounts[].ervDevices[].name",
|
|
2112
|
-
"accounts[].ervDevices[].refreshInterval"
|
|
2113
|
-
],
|
|
2114
|
-
"condition": {
|
|
2115
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayMode > 0;"
|
|
2116
|
-
}
|
|
2117
|
-
},
|
|
2118
2061
|
{
|
|
2119
2062
|
"key": "accounts[].ervDevices[]",
|
|
2120
|
-
"title": "Temperature Sensors",
|
|
2121
|
-
"type": "section",
|
|
2122
|
-
"expandable": true,
|
|
2123
|
-
"expanded": false,
|
|
2124
|
-
"items": [
|
|
2125
|
-
"accounts[].ervDevices[].temperatureSensor",
|
|
2126
|
-
"accounts[].ervDevices[].temperatureSensorOutdoor",
|
|
2127
|
-
"accounts[].ervDevices[].temperatureSensorSupply"
|
|
2128
|
-
],
|
|
2129
|
-
"condition": {
|
|
2130
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayMode > 0;"
|
|
2131
|
-
}
|
|
2132
|
-
},
|
|
2133
|
-
{
|
|
2134
|
-
"key": "accounts[].ervDevices[].presets",
|
|
2135
|
-
"title": "Presets",
|
|
2136
|
-
"type": "section",
|
|
2137
|
-
"expandable": true,
|
|
2138
|
-
"expanded": false,
|
|
2139
2063
|
"items": [
|
|
2140
2064
|
{
|
|
2141
|
-
"key": "accounts[].ervDevices[].
|
|
2142
|
-
"
|
|
2143
|
-
|
|
2065
|
+
"key": "accounts[].ervDevices[].id",
|
|
2066
|
+
"readonly": true
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
"key": "accounts[].ervDevices[].typeString",
|
|
2070
|
+
"readonly": true
|
|
2071
|
+
},
|
|
2072
|
+
"accounts[].ervDevices[].displayType",
|
|
2073
|
+
{
|
|
2074
|
+
"title": "Settings",
|
|
2075
|
+
"type": "section",
|
|
2076
|
+
"expandable": true,
|
|
2077
|
+
"expanded": false,
|
|
2078
|
+
"items": [
|
|
2079
|
+
"accounts[].ervDevices[].name",
|
|
2080
|
+
"accounts[].ervDevices[].refreshInterval"
|
|
2081
|
+
],
|
|
2082
|
+
"condition": {
|
|
2083
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayType > 0;"
|
|
2084
|
+
}
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
"title": "Temperature Sensors",
|
|
2088
|
+
"type": "section",
|
|
2089
|
+
"expandable": true,
|
|
2090
|
+
"expanded": false,
|
|
2091
|
+
"items": [
|
|
2092
|
+
"accounts[].ervDevices[].temperatureSensor",
|
|
2093
|
+
"accounts[].ervDevices[].temperatureSensorOutdoor",
|
|
2094
|
+
"accounts[].ervDevices[].temperatureSensorSupply"
|
|
2095
|
+
],
|
|
2096
|
+
"condition": {
|
|
2097
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayType > 0;"
|
|
2098
|
+
}
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
"title": "Presets",
|
|
2102
|
+
"type": "section",
|
|
2103
|
+
"expandable": true,
|
|
2104
|
+
"expanded": false,
|
|
2144
2105
|
"items": [
|
|
2145
2106
|
{
|
|
2146
|
-
"key": "accounts[].ervDevices[].presets
|
|
2147
|
-
"
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
"expanded": false,
|
|
2165
|
-
"items": [
|
|
2107
|
+
"key": "accounts[].ervDevices[].presets",
|
|
2108
|
+
"type": "tabarray",
|
|
2109
|
+
"title": "{{ value.name }}",
|
|
2110
|
+
"items": [
|
|
2111
|
+
{
|
|
2112
|
+
"key": "accounts[].ervDevices[].presets[].id",
|
|
2113
|
+
"readonly": true
|
|
2114
|
+
},
|
|
2115
|
+
"accounts[].ervDevices[].presets[].displayType",
|
|
2116
|
+
"accounts[].ervDevices[].presets[].name",
|
|
2117
|
+
"accounts[].ervDevices[].presets[].namePrefix"
|
|
2118
|
+
]
|
|
2119
|
+
}
|
|
2120
|
+
],
|
|
2121
|
+
"condition": {
|
|
2122
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayType > 0;"
|
|
2123
|
+
}
|
|
2124
|
+
},
|
|
2166
2125
|
{
|
|
2167
|
-
"
|
|
2168
|
-
"type": "
|
|
2169
|
-
"
|
|
2126
|
+
"title": "Buttons / Sensors",
|
|
2127
|
+
"type": "section",
|
|
2128
|
+
"expandable": true,
|
|
2129
|
+
"expanded": false,
|
|
2170
2130
|
"items": [
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2131
|
+
{
|
|
2132
|
+
"key": "accounts[].ervDevices[].buttonsSensors",
|
|
2133
|
+
"type": "tabarray",
|
|
2134
|
+
"title": "{{ value.name || 'button/sensor' }}",
|
|
2135
|
+
"items": [
|
|
2136
|
+
"accounts[].ervDevices[].buttonsSensors[].displayType",
|
|
2137
|
+
"accounts[].ervDevices[].buttonsSensors[].mode",
|
|
2138
|
+
"accounts[].ervDevices[].buttonsSensors[].name",
|
|
2139
|
+
"accounts[].ervDevices[].buttonsSensors[].namePrefix"
|
|
2140
|
+
]
|
|
2141
|
+
}
|
|
2142
|
+
],
|
|
2143
|
+
"condition": {
|
|
2144
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayType > 0;"
|
|
2145
|
+
}
|
|
2176
2146
|
}
|
|
2177
2147
|
],
|
|
2178
2148
|
"condition": {
|
|
2179
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].
|
|
2149
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].id !== '0';"
|
|
2180
2150
|
}
|
|
2181
2151
|
}
|
|
2182
|
-
]
|
|
2183
|
-
"condition": {
|
|
2184
|
-
"functionBody": "return model.accounts[arrayIndices].ervDevices.length > 0;"
|
|
2185
|
-
}
|
|
2186
|
-
},
|
|
2187
|
-
{
|
|
2188
|
-
"key": "accounts[]",
|
|
2189
|
-
"type": "tabarray",
|
|
2190
|
-
"title": "{{ value.title }}",
|
|
2191
|
-
"items": [],
|
|
2192
|
-
"condition": {
|
|
2193
|
-
"functionBody": "return model.accounts[arrayIndices].ervDevices.length === 0;"
|
|
2194
|
-
}
|
|
2152
|
+
]
|
|
2195
2153
|
}
|
|
2196
2154
|
]
|
|
2197
2155
|
}
|