homebridge-melcloud-control 3.8.0-beta.7 → 3.8.0-beta.8
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 +6 -6
- package/index.js +3 -3
- package/package.json +1 -1
package/config.schema.json
CHANGED
|
@@ -1867,7 +1867,7 @@
|
|
|
1867
1867
|
}
|
|
1868
1868
|
],
|
|
1869
1869
|
"condition": {
|
|
1870
|
-
"functionBody": "return model.accounts[arrayIndices].ataDevices.length >=
|
|
1870
|
+
"functionBody": "return model.accounts[arrayIndices].ataDevices.length >= 1;"
|
|
1871
1871
|
}
|
|
1872
1872
|
},
|
|
1873
1873
|
{
|
|
@@ -1876,7 +1876,7 @@
|
|
|
1876
1876
|
"title": "{{ value.title }}",
|
|
1877
1877
|
"items": [],
|
|
1878
1878
|
"condition": {
|
|
1879
|
-
"functionBody": "return model.accounts[arrayIndices].ataDevices.length <
|
|
1879
|
+
"functionBody": "return model.accounts[arrayIndices].ataDevices.length < 1;"
|
|
1880
1880
|
}
|
|
1881
1881
|
}
|
|
1882
1882
|
]
|
|
@@ -1974,7 +1974,7 @@
|
|
|
1974
1974
|
}
|
|
1975
1975
|
],
|
|
1976
1976
|
"condition": {
|
|
1977
|
-
"functionBody": "return model.accounts[arrayIndices].atwDevices.length >=
|
|
1977
|
+
"functionBody": "return model.accounts[arrayIndices].atwDevices.length >= 1;"
|
|
1978
1978
|
}
|
|
1979
1979
|
},
|
|
1980
1980
|
{
|
|
@@ -1983,7 +1983,7 @@
|
|
|
1983
1983
|
"title": "{{ value.title }}",
|
|
1984
1984
|
"items": [],
|
|
1985
1985
|
"condition": {
|
|
1986
|
-
"functionBody": "return model.accounts[arrayIndices].atwDevices.length <
|
|
1986
|
+
"functionBody": "return model.accounts[arrayIndices].atwDevices.length < 1;"
|
|
1987
1987
|
}
|
|
1988
1988
|
}
|
|
1989
1989
|
]
|
|
@@ -2074,7 +2074,7 @@
|
|
|
2074
2074
|
}
|
|
2075
2075
|
],
|
|
2076
2076
|
"condition": {
|
|
2077
|
-
"functionBody": "return model.accounts[arrayIndices].ervDevices.length >=
|
|
2077
|
+
"functionBody": "return model.accounts[arrayIndices].ervDevices.length >= 1;"
|
|
2078
2078
|
}
|
|
2079
2079
|
},
|
|
2080
2080
|
{
|
|
@@ -2083,7 +2083,7 @@
|
|
|
2083
2083
|
"title": "{{ value.title }}",
|
|
2084
2084
|
"items": [],
|
|
2085
2085
|
"condition": {
|
|
2086
|
-
"functionBody": "return model.accounts[arrayIndices].ervDevices.length <
|
|
2086
|
+
"functionBody": "return model.accounts[arrayIndices].ervDevices.length < 1;"
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
2089
|
]
|
package/index.js
CHANGED
|
@@ -169,7 +169,7 @@ class MelCloudPlatform {
|
|
|
169
169
|
const stopImpulseGenerator = startDone ? await impulseGenerator.stop() : false;
|
|
170
170
|
|
|
171
171
|
//start impulse generator
|
|
172
|
-
const startImpulseGenerator =
|
|
172
|
+
const startImpulseGenerator = stopImpulseGenerator ? await airConditioner.startImpulseGenerator() : false
|
|
173
173
|
} catch (error) {
|
|
174
174
|
const emitLog = disableLogError ? false : log.error(`${accountName}, ${deviceTypeText}, ${deviceName}, ${error}, trying again.`);
|
|
175
175
|
};
|
|
@@ -235,7 +235,7 @@ class MelCloudPlatform {
|
|
|
235
235
|
const stopImpulseGenerator = startDone ? await impulseGenerator.stop() : false;
|
|
236
236
|
|
|
237
237
|
//start impulse generator
|
|
238
|
-
const startImpulseGenerator =
|
|
238
|
+
const startImpulseGenerator = stopImpulseGenerator ? await heatPump.startImpulseGenerator() : false
|
|
239
239
|
} catch (error) {
|
|
240
240
|
const emitLog = disableLogError ? false : log.error(`${accountName}, ${deviceTypeText}, ${deviceName}, ${error}, trying again.`);
|
|
241
241
|
};
|
|
@@ -301,7 +301,7 @@ class MelCloudPlatform {
|
|
|
301
301
|
const stopImpulseGenerator = startDone ? await impulseGenerator.stop() : false;
|
|
302
302
|
|
|
303
303
|
//start impulse generator
|
|
304
|
-
const startImpulseGenerator =
|
|
304
|
+
const startImpulseGenerator = stopImpulseGenerator ? await energyRecoveryVentilation.startImpulseGenerator() : false
|
|
305
305
|
} catch (error) {
|
|
306
306
|
const emitLog = disableLogError ? false : log.error(`${accountName}, ${deviceTypeText}, ${deviceName}, ${error}, trying again.`);
|
|
307
307
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.8.0-beta.
|
|
4
|
+
"version": "3.8.0-beta.8",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|