homebridge-melcloud-control 4.0.0-beta.31 → 4.0.0-beta.310
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 +9 -0
- package/README.md +12 -11
- package/config.schema.json +296 -310
- package/homebridge-ui/public/index.html +103 -51
- package/homebridge-ui/server.js +4 -3
- package/index.js +39 -20
- package/package.json +5 -2
- 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 +18 -3
- package/src/melcloud.js +264 -84
- package/src/melcloudata.js +139 -308
- package/src/melcloudatw.js +3 -228
- package/src/melclouderv.js +5 -162
- package/src/melcloudhometoken.js +179 -0
package/config.schema.json
CHANGED
|
@@ -201,6 +201,32 @@
|
|
|
201
201
|
}
|
|
202
202
|
]
|
|
203
203
|
},
|
|
204
|
+
"type": {
|
|
205
|
+
"title": "Account Type",
|
|
206
|
+
"type": "string",
|
|
207
|
+
"default": "disabled",
|
|
208
|
+
"description": "Here select the MELCloud account type.",
|
|
209
|
+
"oneOf": [
|
|
210
|
+
{
|
|
211
|
+
"title": "None/Disabled",
|
|
212
|
+
"enum": [
|
|
213
|
+
"disabled"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"title": "MELCLoud",
|
|
218
|
+
"enum": [
|
|
219
|
+
"melcloud"
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"title": "MELCLoud Home",
|
|
224
|
+
"enum": [
|
|
225
|
+
"melcloudhome"
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
},
|
|
204
230
|
"ataDevices": {
|
|
205
231
|
"title": "Devices ATA",
|
|
206
232
|
"type": "array",
|
|
@@ -209,28 +235,25 @@
|
|
|
209
235
|
"properties": {
|
|
210
236
|
"id": {
|
|
211
237
|
"title": "ID",
|
|
212
|
-
"type": "
|
|
213
|
-
"default": 0
|
|
214
|
-
"readonly": true
|
|
238
|
+
"type": "string",
|
|
239
|
+
"default": "0"
|
|
215
240
|
},
|
|
216
241
|
"type": {
|
|
217
242
|
"title": "Type",
|
|
218
243
|
"type": "integer",
|
|
219
|
-
"default": 0
|
|
220
|
-
"readonly": true
|
|
244
|
+
"default": 0
|
|
221
245
|
},
|
|
222
246
|
"typeString": {
|
|
223
247
|
"title": "Type",
|
|
224
248
|
"type": "string",
|
|
225
|
-
"default": "Air Conditioner"
|
|
226
|
-
"readonly": true
|
|
249
|
+
"default": "Air Conditioner"
|
|
227
250
|
},
|
|
228
|
-
"
|
|
251
|
+
"displayType": {
|
|
229
252
|
"title": "Display Type",
|
|
230
253
|
"type": "integer",
|
|
231
254
|
"minimum": 0,
|
|
232
255
|
"maximum": 2,
|
|
233
|
-
"default":
|
|
256
|
+
"default": 0,
|
|
234
257
|
"description": "Select accessory control type displayed in HomeKit app.",
|
|
235
258
|
"oneOf": [
|
|
236
259
|
{
|
|
@@ -760,14 +783,11 @@
|
|
|
760
783
|
}
|
|
761
784
|
},
|
|
762
785
|
"required": [
|
|
763
|
-
"
|
|
786
|
+
"displayType",
|
|
764
787
|
"heatDryFanMode",
|
|
765
788
|
"coolDryFanMode",
|
|
766
789
|
"autoDryFanMode"
|
|
767
790
|
]
|
|
768
|
-
},
|
|
769
|
-
"condition": {
|
|
770
|
-
"functionBody": "const accounts = model.accounts[arrayIndices]?.ataDevices || []; return accounts.length > 0 && accounts.every(device => device.id != null);"
|
|
771
791
|
}
|
|
772
792
|
},
|
|
773
793
|
"atwDevices": {
|
|
@@ -778,33 +798,30 @@
|
|
|
778
798
|
"properties": {
|
|
779
799
|
"id": {
|
|
780
800
|
"title": "ID",
|
|
781
|
-
"type": "
|
|
782
|
-
"default": 0
|
|
783
|
-
"readonly": true
|
|
801
|
+
"type": "string",
|
|
802
|
+
"default": "0"
|
|
784
803
|
},
|
|
785
804
|
"type": {
|
|
786
805
|
"title": "Type",
|
|
787
806
|
"type": "integer",
|
|
788
|
-
"default": 1
|
|
789
|
-
"readonly": true
|
|
807
|
+
"default": 1
|
|
790
808
|
},
|
|
791
809
|
"typeString": {
|
|
792
810
|
"title": "Type",
|
|
793
811
|
"type": "string",
|
|
794
|
-
"default": "Heat Pump"
|
|
795
|
-
"readonly": true
|
|
812
|
+
"default": "Heat Pump"
|
|
796
813
|
},
|
|
797
814
|
"name": {
|
|
798
815
|
"title": "Name",
|
|
799
816
|
"type": "string",
|
|
800
817
|
"default": "Heat Pump"
|
|
801
818
|
},
|
|
802
|
-
"
|
|
819
|
+
"displayType": {
|
|
803
820
|
"title": "Display Type",
|
|
804
821
|
"type": "integer",
|
|
805
822
|
"minimum": 0,
|
|
806
823
|
"maximum": 2,
|
|
807
|
-
"default":
|
|
824
|
+
"default": 0,
|
|
808
825
|
"description": "Select accessory control type displayed in HomeKit app.",
|
|
809
826
|
"oneOf": [
|
|
810
827
|
{
|
|
@@ -1297,12 +1314,9 @@
|
|
|
1297
1314
|
}
|
|
1298
1315
|
},
|
|
1299
1316
|
"required": [
|
|
1300
|
-
"
|
|
1317
|
+
"displayType",
|
|
1301
1318
|
"hideZone"
|
|
1302
1319
|
]
|
|
1303
|
-
},
|
|
1304
|
-
"condition": {
|
|
1305
|
-
"functionBody": "const accounts = model.accounts[arrayIndices]?.atwDevices || []; return accounts.length > 0 && accounts.every(device => device.id != null);"
|
|
1306
1320
|
}
|
|
1307
1321
|
},
|
|
1308
1322
|
"ervDevices": {
|
|
@@ -1313,33 +1327,30 @@
|
|
|
1313
1327
|
"properties": {
|
|
1314
1328
|
"id": {
|
|
1315
1329
|
"title": "ID",
|
|
1316
|
-
"type": "
|
|
1317
|
-
"default": 0
|
|
1318
|
-
"readonly": true
|
|
1330
|
+
"type": "string",
|
|
1331
|
+
"default": "0"
|
|
1319
1332
|
},
|
|
1320
1333
|
"type": {
|
|
1321
1334
|
"title": "Type",
|
|
1322
1335
|
"type": "integer",
|
|
1323
|
-
"default": 3
|
|
1324
|
-
"readonly": true
|
|
1336
|
+
"default": 3
|
|
1325
1337
|
},
|
|
1326
1338
|
"typeString": {
|
|
1327
1339
|
"title": "Type",
|
|
1328
1340
|
"type": "string",
|
|
1329
|
-
"default": "Ventilation"
|
|
1330
|
-
"readonly": true
|
|
1341
|
+
"default": "Ventilation"
|
|
1331
1342
|
},
|
|
1332
1343
|
"name": {
|
|
1333
1344
|
"title": "Name",
|
|
1334
1345
|
"type": "string",
|
|
1335
1346
|
"default": "Ventilation"
|
|
1336
1347
|
},
|
|
1337
|
-
"
|
|
1348
|
+
"displayType": {
|
|
1338
1349
|
"title": "Display Type",
|
|
1339
1350
|
"type": "integer",
|
|
1340
1351
|
"minimum": 0,
|
|
1341
1352
|
"maximum": 2,
|
|
1342
|
-
"default":
|
|
1353
|
+
"default": 0,
|
|
1343
1354
|
"description": "Select accessory control type displayed in HomeKit app.",
|
|
1344
1355
|
"oneOf": [
|
|
1345
1356
|
{
|
|
@@ -1646,11 +1657,8 @@
|
|
|
1646
1657
|
}
|
|
1647
1658
|
},
|
|
1648
1659
|
"required": [
|
|
1649
|
-
"
|
|
1660
|
+
"displayType"
|
|
1650
1661
|
]
|
|
1651
|
-
},
|
|
1652
|
-
"condition": {
|
|
1653
|
-
"functionBody": "const accounts = model.accounts[arrayIndices]?.ervDevices || []; return accounts.length > 0 && accounts.every(device => device.id != null);"
|
|
1654
1662
|
}
|
|
1655
1663
|
},
|
|
1656
1664
|
"refreshInterval": {
|
|
@@ -1798,7 +1806,8 @@
|
|
|
1798
1806
|
"name",
|
|
1799
1807
|
"user",
|
|
1800
1808
|
"passwd",
|
|
1801
|
-
"language"
|
|
1809
|
+
"language",
|
|
1810
|
+
"type"
|
|
1802
1811
|
]
|
|
1803
1812
|
}
|
|
1804
1813
|
}
|
|
@@ -1817,6 +1826,7 @@
|
|
|
1817
1826
|
"type": "password"
|
|
1818
1827
|
},
|
|
1819
1828
|
"accounts[].language",
|
|
1829
|
+
"accounts[].type",
|
|
1820
1830
|
{
|
|
1821
1831
|
"key": "accounts[]",
|
|
1822
1832
|
"type": "tabarray",
|
|
@@ -1831,108 +1841,100 @@
|
|
|
1831
1841
|
"type": "tabarray",
|
|
1832
1842
|
"title": "{{ value.name }}",
|
|
1833
1843
|
"items": [
|
|
1834
|
-
{
|
|
1835
|
-
"key": "accounts[].ataDevices[].id",
|
|
1836
|
-
"readonly": true
|
|
1837
|
-
},
|
|
1838
|
-
{
|
|
1839
|
-
"key": "accounts[].ataDevices[].typeString",
|
|
1840
|
-
"readonly": true
|
|
1841
|
-
},
|
|
1842
|
-
"accounts[].ataDevices[].displayMode",
|
|
1843
|
-
{
|
|
1844
|
-
"key": "accounts[].ataDevices[]",
|
|
1845
|
-
"title": "Settings",
|
|
1846
|
-
"type": "section",
|
|
1847
|
-
"expandable": true,
|
|
1848
|
-
"expanded": false,
|
|
1849
|
-
"items": [
|
|
1850
|
-
"accounts[].ataDevices[].name",
|
|
1851
|
-
"accounts[].ataDevices[].heatDryFanMode",
|
|
1852
|
-
"accounts[].ataDevices[].coolDryFanMode",
|
|
1853
|
-
"accounts[].ataDevices[].autoDryFanMode",
|
|
1854
|
-
"accounts[].ataDevices[].refreshInterval"
|
|
1855
|
-
],
|
|
1856
|
-
"condition": {
|
|
1857
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayMode > 0;"
|
|
1858
|
-
}
|
|
1859
|
-
},
|
|
1860
1844
|
{
|
|
1861
1845
|
"key": "accounts[].ataDevices[]",
|
|
1862
|
-
"title": "Temperature Sensors",
|
|
1863
|
-
"type": "section",
|
|
1864
|
-
"expandable": true,
|
|
1865
|
-
"expanded": false,
|
|
1866
|
-
"items": [
|
|
1867
|
-
"accounts[].ataDevices[].temperatureSensor",
|
|
1868
|
-
"accounts[].ataDevices[].temperatureSensorOutdoor"
|
|
1869
|
-
],
|
|
1870
|
-
"condition": {
|
|
1871
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayMode > 0;"
|
|
1872
|
-
}
|
|
1873
|
-
},
|
|
1874
|
-
{
|
|
1875
|
-
"key": "accounts[].ataDevices[].presets",
|
|
1876
|
-
"title": "Presets",
|
|
1877
|
-
"type": "section",
|
|
1878
|
-
"expandable": true,
|
|
1879
|
-
"expanded": false,
|
|
1880
1846
|
"items": [
|
|
1881
1847
|
{
|
|
1882
|
-
"key": "accounts[].ataDevices[].
|
|
1883
|
-
"
|
|
1884
|
-
|
|
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,
|
|
1885
1890
|
"items": [
|
|
1886
1891
|
{
|
|
1887
|
-
"key": "accounts[].ataDevices[].presets
|
|
1888
|
-
"
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
"expanded": false,
|
|
1906
|
-
"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
|
+
},
|
|
1907
1910
|
{
|
|
1908
|
-
"
|
|
1909
|
-
"type": "
|
|
1910
|
-
"
|
|
1911
|
+
"title": "Buttons / Sensors",
|
|
1912
|
+
"type": "section",
|
|
1913
|
+
"expandable": true,
|
|
1914
|
+
"expanded": false,
|
|
1911
1915
|
"items": [
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
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
|
+
}
|
|
1917
1931
|
}
|
|
1918
1932
|
],
|
|
1919
1933
|
"condition": {
|
|
1920
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].
|
|
1934
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].id !== '0';"
|
|
1921
1935
|
}
|
|
1922
1936
|
}
|
|
1923
|
-
]
|
|
1924
|
-
"condition": {
|
|
1925
|
-
"functionBody": "return model.accounts[arrayIndices].ataDevices.length > 0;"
|
|
1926
|
-
}
|
|
1927
|
-
},
|
|
1928
|
-
{
|
|
1929
|
-
"key": "accounts[]",
|
|
1930
|
-
"type": "tabarray",
|
|
1931
|
-
"title": "{{ value.title }}",
|
|
1932
|
-
"items": [],
|
|
1933
|
-
"condition": {
|
|
1934
|
-
"functionBody": "return model.accounts[arrayIndices].ataDevices.length === 0;"
|
|
1935
|
-
}
|
|
1937
|
+
]
|
|
1936
1938
|
}
|
|
1937
1939
|
]
|
|
1938
1940
|
},
|
|
@@ -1945,113 +1947,105 @@
|
|
|
1945
1947
|
"type": "tabarray",
|
|
1946
1948
|
"title": "{{ value.name }}",
|
|
1947
1949
|
"items": [
|
|
1948
|
-
{
|
|
1949
|
-
"key": "accounts[].atwDevices[].id",
|
|
1950
|
-
"readonly": true
|
|
1951
|
-
},
|
|
1952
|
-
{
|
|
1953
|
-
"key": "accounts[].atwDevices[].typeString",
|
|
1954
|
-
"readonly": true
|
|
1955
|
-
},
|
|
1956
|
-
"accounts[].atwDevices[].displayMode",
|
|
1957
1950
|
{
|
|
1958
1951
|
"key": "accounts[].atwDevices[]",
|
|
1959
|
-
"type": "section",
|
|
1960
|
-
"title": "Settings",
|
|
1961
|
-
"expandable": true,
|
|
1962
|
-
"expanded": false,
|
|
1963
|
-
"items": [
|
|
1964
|
-
"accounts[].atwDevices[].hideZone",
|
|
1965
|
-
"accounts[].atwDevices[].name",
|
|
1966
|
-
"accounts[].atwDevices[].refreshInterval"
|
|
1967
|
-
],
|
|
1968
|
-
"condition": {
|
|
1969
|
-
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayMode > 0;"
|
|
1970
|
-
}
|
|
1971
|
-
},
|
|
1972
|
-
{
|
|
1973
|
-
"key": "accounts[].atwDevices[]",
|
|
1974
|
-
"title": "Temperature Sensors",
|
|
1975
|
-
"type": "section",
|
|
1976
|
-
"expandable": true,
|
|
1977
|
-
"expanded": false,
|
|
1978
|
-
"items": [
|
|
1979
|
-
"accounts[].atwDevices[].temperatureSensor",
|
|
1980
|
-
"accounts[].atwDevices[].temperatureSensorFlow",
|
|
1981
|
-
"accounts[].atwDevices[].temperatureSensorReturn",
|
|
1982
|
-
"accounts[].atwDevices[].temperatureSensorFlowZone1",
|
|
1983
|
-
"accounts[].atwDevices[].temperatureSensorReturnZone1",
|
|
1984
|
-
"accounts[].atwDevices[].temperatureSensorFlowWaterTank",
|
|
1985
|
-
"accounts[].atwDevices[].temperatureSensorReturnWaterTank",
|
|
1986
|
-
"accounts[].atwDevices[].temperatureSensorFlowZone2",
|
|
1987
|
-
"accounts[].atwDevices[].temperatureSensorReturnZone2"
|
|
1988
|
-
],
|
|
1989
|
-
"condition": {
|
|
1990
|
-
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].displayMode > 0;"
|
|
1991
|
-
}
|
|
1992
|
-
},
|
|
1993
|
-
{
|
|
1994
|
-
"key": "accounts[].atwDevices[].presets",
|
|
1995
|
-
"title": "Presets",
|
|
1996
|
-
"type": "section",
|
|
1997
|
-
"expandable": true,
|
|
1998
|
-
"expanded": false,
|
|
1999
1952
|
"items": [
|
|
2000
1953
|
{
|
|
2001
|
-
"key": "accounts[].atwDevices[].
|
|
2002
|
-
"
|
|
2003
|
-
|
|
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,
|
|
2004
2001
|
"items": [
|
|
2005
2002
|
{
|
|
2006
|
-
"key": "accounts[].atwDevices[].presets
|
|
2007
|
-
"
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
"expanded": false,
|
|
2025
|
-
"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
|
+
},
|
|
2026
2021
|
{
|
|
2027
|
-
"
|
|
2028
|
-
"type": "
|
|
2029
|
-
"
|
|
2022
|
+
"title": "Buttons / Sensors",
|
|
2023
|
+
"type": "section",
|
|
2024
|
+
"expandable": true,
|
|
2025
|
+
"expanded": false,
|
|
2030
2026
|
"items": [
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
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
|
+
}
|
|
2036
2042
|
}
|
|
2037
2043
|
],
|
|
2038
2044
|
"condition": {
|
|
2039
|
-
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].
|
|
2045
|
+
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].id !== '0';"
|
|
2040
2046
|
}
|
|
2041
2047
|
}
|
|
2042
|
-
]
|
|
2043
|
-
"condition": {
|
|
2044
|
-
"functionBody": "return model.accounts[arrayIndices].atwDevices.length > 0;"
|
|
2045
|
-
}
|
|
2046
|
-
},
|
|
2047
|
-
{
|
|
2048
|
-
"key": "accounts[]",
|
|
2049
|
-
"type": "tabarray",
|
|
2050
|
-
"title": "{{ value.title }}",
|
|
2051
|
-
"items": [],
|
|
2052
|
-
"condition": {
|
|
2053
|
-
"functionBody": "return model.accounts[arrayIndices].atwDevices.length === 0;"
|
|
2054
|
-
}
|
|
2048
|
+
]
|
|
2055
2049
|
}
|
|
2056
2050
|
]
|
|
2057
2051
|
},
|
|
@@ -2064,106 +2058,98 @@
|
|
|
2064
2058
|
"type": "tabarray",
|
|
2065
2059
|
"title": "{{ value.name }}",
|
|
2066
2060
|
"items": [
|
|
2067
|
-
{
|
|
2068
|
-
"key": "accounts[].ervDevices[].id",
|
|
2069
|
-
"readonly": true
|
|
2070
|
-
},
|
|
2071
|
-
{
|
|
2072
|
-
"key": "accounts[].ervDevices[].typeString",
|
|
2073
|
-
"readonly": true
|
|
2074
|
-
},
|
|
2075
|
-
"accounts[].ervDevices[].displayMode",
|
|
2076
2061
|
{
|
|
2077
2062
|
"key": "accounts[].ervDevices[]",
|
|
2078
|
-
"title": "Settings",
|
|
2079
|
-
"type": "section",
|
|
2080
|
-
"expandable": true,
|
|
2081
|
-
"expanded": false,
|
|
2082
|
-
"items": [
|
|
2083
|
-
"accounts[].ervDevices[].name",
|
|
2084
|
-
"accounts[].ervDevices[].refreshInterval"
|
|
2085
|
-
],
|
|
2086
|
-
"condition": {
|
|
2087
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayMode > 0;"
|
|
2088
|
-
}
|
|
2089
|
-
},
|
|
2090
|
-
{
|
|
2091
|
-
"key": "accounts[].ervDevices[]",
|
|
2092
|
-
"title": "Temperature Sensors",
|
|
2093
|
-
"type": "section",
|
|
2094
|
-
"expandable": true,
|
|
2095
|
-
"expanded": false,
|
|
2096
|
-
"items": [
|
|
2097
|
-
"accounts[].ervDevices[].temperatureSensor",
|
|
2098
|
-
"accounts[].ervDevices[].temperatureSensorOutdoor",
|
|
2099
|
-
"accounts[].ervDevices[].temperatureSensorSupply"
|
|
2100
|
-
],
|
|
2101
|
-
"condition": {
|
|
2102
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].displayMode > 0;"
|
|
2103
|
-
}
|
|
2104
|
-
},
|
|
2105
|
-
{
|
|
2106
|
-
"key": "accounts[].ervDevices[].presets",
|
|
2107
|
-
"title": "Presets",
|
|
2108
|
-
"type": "section",
|
|
2109
|
-
"expandable": true,
|
|
2110
|
-
"expanded": false,
|
|
2111
2063
|
"items": [
|
|
2112
2064
|
{
|
|
2113
|
-
"key": "accounts[].ervDevices[].
|
|
2114
|
-
"
|
|
2115
|
-
|
|
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,
|
|
2116
2105
|
"items": [
|
|
2117
2106
|
{
|
|
2118
|
-
"key": "accounts[].ervDevices[].presets
|
|
2119
|
-
"
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
"expanded": false,
|
|
2137
|
-
"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
|
+
},
|
|
2138
2125
|
{
|
|
2139
|
-
"
|
|
2140
|
-
"type": "
|
|
2141
|
-
"
|
|
2126
|
+
"title": "Buttons / Sensors",
|
|
2127
|
+
"type": "section",
|
|
2128
|
+
"expandable": true,
|
|
2129
|
+
"expanded": false,
|
|
2142
2130
|
"items": [
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
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
|
+
}
|
|
2148
2146
|
}
|
|
2149
2147
|
],
|
|
2150
2148
|
"condition": {
|
|
2151
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].
|
|
2149
|
+
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].id !== '0';"
|
|
2152
2150
|
}
|
|
2153
2151
|
}
|
|
2154
|
-
]
|
|
2155
|
-
"condition": {
|
|
2156
|
-
"functionBody": "return model.accounts[arrayIndices].ervDevices.length > 0;"
|
|
2157
|
-
}
|
|
2158
|
-
},
|
|
2159
|
-
{
|
|
2160
|
-
"key": "accounts[]",
|
|
2161
|
-
"type": "tabarray",
|
|
2162
|
-
"title": "{{ value.title }}",
|
|
2163
|
-
"items": [],
|
|
2164
|
-
"condition": {
|
|
2165
|
-
"functionBody": "return model.accounts[arrayIndices].ervDevices.length === 0;"
|
|
2166
|
-
}
|
|
2152
|
+
]
|
|
2167
2153
|
}
|
|
2168
2154
|
]
|
|
2169
2155
|
}
|