homebridge-melcloud-control 3.7.0-beta.4 → 3.7.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config.schema.json +3 -30
- package/index.js +3 -21
- package/package.json +1 -1
package/config.schema.json
CHANGED
|
@@ -232,13 +232,6 @@
|
|
|
232
232
|
"required": false,
|
|
233
233
|
"readonly": true
|
|
234
234
|
},
|
|
235
|
-
"disableAccessory": {
|
|
236
|
-
"title": "Disable Accessory",
|
|
237
|
-
"type": "boolean",
|
|
238
|
-
"default": false,
|
|
239
|
-
"description": "Here You can disable this accessory.",
|
|
240
|
-
"required": false
|
|
241
|
-
},
|
|
242
235
|
"name": {
|
|
243
236
|
"title": "Name",
|
|
244
237
|
"type": "string",
|
|
@@ -766,9 +759,6 @@
|
|
|
766
759
|
"required": false
|
|
767
760
|
}
|
|
768
761
|
}
|
|
769
|
-
},
|
|
770
|
-
"condition": {
|
|
771
|
-
"functionBody": "return model.accounts[arrayIndices].ataDevices[arrayIndices].disableAccessory === false;"
|
|
772
762
|
}
|
|
773
763
|
}
|
|
774
764
|
}
|
|
@@ -804,13 +794,6 @@
|
|
|
804
794
|
"required": false,
|
|
805
795
|
"readonly": true
|
|
806
796
|
},
|
|
807
|
-
"disableAccessory": {
|
|
808
|
-
"title": "Disable Accessory",
|
|
809
|
-
"type": "boolean",
|
|
810
|
-
"default": false,
|
|
811
|
-
"description": "Here You can disable this accessory.",
|
|
812
|
-
"required": false
|
|
813
|
-
},
|
|
814
797
|
"name": {
|
|
815
798
|
"title": "Name",
|
|
816
799
|
"type": "string",
|
|
@@ -1239,13 +1222,6 @@
|
|
|
1239
1222
|
"required": false,
|
|
1240
1223
|
"readonly": true
|
|
1241
1224
|
},
|
|
1242
|
-
"disableAccessory": {
|
|
1243
|
-
"title": "Disable Accessory",
|
|
1244
|
-
"type": "boolean",
|
|
1245
|
-
"default": false,
|
|
1246
|
-
"description": "Here You can disable this accessory.",
|
|
1247
|
-
"required": false
|
|
1248
|
-
},
|
|
1249
1225
|
"name": {
|
|
1250
1226
|
"title": "Name",
|
|
1251
1227
|
"type": "string",
|
|
@@ -1761,7 +1737,7 @@
|
|
|
1761
1737
|
"key": "accounts[].ataDevices[].typeString",
|
|
1762
1738
|
"readonly": true
|
|
1763
1739
|
},
|
|
1764
|
-
"accounts[].ataDevices[].
|
|
1740
|
+
"accounts[].ataDevices[].displayMode",
|
|
1765
1741
|
{
|
|
1766
1742
|
"key": "accounts[].ataDevices[]",
|
|
1767
1743
|
"type": "section",
|
|
@@ -1770,7 +1746,6 @@
|
|
|
1770
1746
|
"expanded": false,
|
|
1771
1747
|
"items": [
|
|
1772
1748
|
"accounts[].ataDevices[].name",
|
|
1773
|
-
"accounts[].ataDevices[].displayMode",
|
|
1774
1749
|
"accounts[].ataDevices[].heatDryFanMode",
|
|
1775
1750
|
"accounts[].ataDevices[].coolDryFanMode",
|
|
1776
1751
|
"accounts[].ataDevices[].autoDryFanMode",
|
|
@@ -1864,7 +1839,7 @@
|
|
|
1864
1839
|
"key": "accounts[].atwDevices[].typeString",
|
|
1865
1840
|
"readonly": true
|
|
1866
1841
|
},
|
|
1867
|
-
"accounts[].
|
|
1842
|
+
"accounts[].atwDevices[].displayMode",
|
|
1868
1843
|
{
|
|
1869
1844
|
"key": "accounts[].atwDevices[]",
|
|
1870
1845
|
"type": "section",
|
|
@@ -1873,7 +1848,6 @@
|
|
|
1873
1848
|
"expanded": false,
|
|
1874
1849
|
"items": [
|
|
1875
1850
|
"accounts[].atwDevices[].name",
|
|
1876
|
-
"accounts[].atwDevices[].displayMode",
|
|
1877
1851
|
"accounts[].atwDevices[].refreshInterval"
|
|
1878
1852
|
],
|
|
1879
1853
|
"condition": {
|
|
@@ -1971,7 +1945,7 @@
|
|
|
1971
1945
|
"key": "accounts[].ervDevices[].typeString",
|
|
1972
1946
|
"readonly": true
|
|
1973
1947
|
},
|
|
1974
|
-
"accounts[].
|
|
1948
|
+
"accounts[].ervDevices[].displayMode",
|
|
1975
1949
|
{
|
|
1976
1950
|
"key": "accounts[].ervDevices[]",
|
|
1977
1951
|
"type": "section",
|
|
@@ -1980,7 +1954,6 @@
|
|
|
1980
1954
|
"expanded": false,
|
|
1981
1955
|
"items": [
|
|
1982
1956
|
"accounts[].ervDevices[].name",
|
|
1983
|
-
"accounts[].ervDevices[].displayMode",
|
|
1984
1957
|
"accounts[].ervDevices[].refreshInterval"
|
|
1985
1958
|
],
|
|
1986
1959
|
"condition": {
|
package/index.js
CHANGED
|
@@ -124,15 +124,9 @@ class MelCloudPlatform {
|
|
|
124
124
|
const emitLog = !enableDebugMode ? false : log.info(`Found configured ATA devices: ${ataDevices.length}.`);
|
|
125
125
|
for (const device of ataDevices) {
|
|
126
126
|
|
|
127
|
-
//check accessory is enabled
|
|
128
|
-
const disableAccessory = device.disableAccessory || false;
|
|
129
|
-
if (disableAccessory) {
|
|
130
|
-
continue;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
127
|
//chack device from config exist on melcloud
|
|
134
128
|
const deviceId = device.id;
|
|
135
|
-
const displayMode = device.displayMode > 0
|
|
129
|
+
const displayMode = device.displayMode > 0;
|
|
136
130
|
const deviceExistInMelCloud = devices.some(dev => dev.DeviceID === deviceId);
|
|
137
131
|
if (!deviceExistInMelCloud || !displayMode) {
|
|
138
132
|
continue;
|
|
@@ -196,15 +190,9 @@ class MelCloudPlatform {
|
|
|
196
190
|
const emitLog = !enableDebugMode ? false : log.info(`Found configured ATW devices: ${atwDevices.length}.`);
|
|
197
191
|
for (const device of atwDevices) {
|
|
198
192
|
|
|
199
|
-
//check accessory is enabled
|
|
200
|
-
const disableAccessory = device.disableAccessory || false;
|
|
201
|
-
if (disableAccessory) {
|
|
202
|
-
continue;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
193
|
//chack device from config exist on melcloud
|
|
206
194
|
const deviceId = device.id;
|
|
207
|
-
const displayMode = device.displayMode > 0
|
|
195
|
+
const displayMode = device.displayMode > 0;
|
|
208
196
|
const deviceExistInMelCloud = devices.some(dev => dev.DeviceID === deviceId);
|
|
209
197
|
if (!deviceExistInMelCloud || !displayMode) {
|
|
210
198
|
continue;
|
|
@@ -268,15 +256,9 @@ class MelCloudPlatform {
|
|
|
268
256
|
const emitLog = !enableDebugMode ? false : log.info(`Found configured ERV devices: ${ervDevices.length}.`);
|
|
269
257
|
for (const device of ervDevices) {
|
|
270
258
|
|
|
271
|
-
//check accessory is enabled
|
|
272
|
-
const disableAccessory = device.disableAccessory || false;
|
|
273
|
-
if (disableAccessory) {
|
|
274
|
-
continue;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
259
|
//chack device from config exist on melcloud
|
|
278
260
|
const deviceId = device.id;
|
|
279
|
-
const displayMode = device.displayMode > 0
|
|
261
|
+
const displayMode = device.displayMode > 0;
|
|
280
262
|
const deviceExistInMelCloud = devices.some(dev => dev.DeviceID === deviceId);
|
|
281
263
|
if (!deviceExistInMelCloud || !displayMode) {
|
|
282
264
|
continue;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.7.
|
|
4
|
+
"version": "3.7.1-beta.0",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|