homebridge-melcloud-control 4.7.3-beta.3 → 4.7.3-beta.4
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 +1 -1
- package/package.json +1 -1
- package/src/deviceatw.js +6 -6
- package/src/melcloudhome.js +2 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.7.3-beta.
|
|
4
|
+
"version": "4.7.3-beta.4",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
package/src/deviceatw.js
CHANGED
|
@@ -1841,7 +1841,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1841
1841
|
break;
|
|
1842
1842
|
case caseZone1: //Zone 1 - HEAT THERMOSTAT, HEAT FLOW, HEAT CURVE, COOL THERMOSTAT, COOL FLOW, FLOOR DRY UP
|
|
1843
1843
|
name = zone1Name;
|
|
1844
|
-
operationModeZone =
|
|
1844
|
+
operationModeZone = operationModeZone1;
|
|
1845
1845
|
currentOperationMode = !power ? 0 : (idleZone1 ? 1 : [2, 2, 2, 3, 3, 2][operationModeZone1]); //INACTIVE, IDLE, HEATING, COOLING
|
|
1846
1846
|
targetOperationMode = [1, 2, 0, 1, 2, 1][operationModeZone1]; //AUTO, HEAT, COOL
|
|
1847
1847
|
|
|
@@ -1873,7 +1873,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1873
1873
|
break;
|
|
1874
1874
|
case caseHotWater: //Hot Water - NORMAL, HEAT NOW
|
|
1875
1875
|
name = hotWaterName;
|
|
1876
|
-
operationModeZone =
|
|
1876
|
+
operationModeZone = forcedHotWaterMode;
|
|
1877
1877
|
currentOperationMode = !power ? 0 : (operationMode === 1 ? 2 : [1, 2][forcedHotWaterMode]); //INACTIVE, IDLE, HEATING, COOLING
|
|
1878
1878
|
targetOperationMode = [0, 1][forcedHotWaterMode] //AUTO, HEAT, COOL
|
|
1879
1879
|
roomTemperature = tankWaterTemperature;
|
|
@@ -1888,7 +1888,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1888
1888
|
break;
|
|
1889
1889
|
case caseZone2: //Zone 2 - HEAT THERMOSTAT, HEAT FLOW, HEAT CURVE, COOL THERMOSTAT, COOL FLOW, FLOOR DRY UP
|
|
1890
1890
|
name = zone2Name;
|
|
1891
|
-
operationModeZone =
|
|
1891
|
+
operationModeZone = operationModeZone2;
|
|
1892
1892
|
currentOperationMode = !power ? 0 : (idleZone2 ? 1 : [2, 2, 2, 3, 3, 2][operationModeZone2]); //INACTIVE, IDLE, HEATING, COOLING
|
|
1893
1893
|
targetOperationMode = [1, 2, 0, 1, 2, 1][operationModeZone2]; //AUTO, HEAT, COOL
|
|
1894
1894
|
|
|
@@ -1951,7 +1951,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1951
1951
|
break;
|
|
1952
1952
|
case caseZone1: //Zone 1 - HEAT THERMOSTAT, HEAT FLOW, HEAT CURVE, COOL THERMOSTAT, COOL FLOW, FLOOR DRY UP
|
|
1953
1953
|
name = zone1Name;
|
|
1954
|
-
operationModeZone =
|
|
1954
|
+
operationModeZone = operationModeZone1;
|
|
1955
1955
|
currentOperationMode = !power ? 0 : idleZone1 ? 0 : [1, 1, 1, 2, 2, 1][operationModeZone1]; //OFF, HEAT, COOL
|
|
1956
1956
|
targetOperationMode = [1, 2, 3, 1, 2, 1][operationModeZone1]; //OFF, HEAT, COOL, AUTO
|
|
1957
1957
|
|
|
@@ -1982,7 +1982,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1982
1982
|
break;
|
|
1983
1983
|
case caseHotWater: //Hot Water - NORMAL, HEAT NOW
|
|
1984
1984
|
name = hotWaterName;
|
|
1985
|
-
operationModeZone =
|
|
1985
|
+
operationModeZone = forcedHotWaterMode;
|
|
1986
1986
|
currentOperationMode = !power ? 0 : (operationMode === 1 ? 1 : [0, 1][forcedHotWaterMode]); //OFF, HEAT, COOL
|
|
1987
1987
|
targetOperationMode = [3, 1][forcedHotWaterMode] //OFF, HEAT, COOL, AUTO
|
|
1988
1988
|
roomTemperature = tankWaterTemperature;
|
|
@@ -1996,7 +1996,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1996
1996
|
break;
|
|
1997
1997
|
case caseZone2: //Zone 2 - HEAT THERMOSTAT, HEAT FLOW, HEAT CURVE, COOL THERMOSTAT, COOL FLOW, FLOOR DRY UP
|
|
1998
1998
|
name = zone2Name;
|
|
1999
|
-
operationModeZone =
|
|
1999
|
+
operationModeZone = operationModeZone2;
|
|
2000
2000
|
currentOperationMode = !power ? 0 : (idleZone2 ? 0 : [1, 1, 1, 2, 2, 1][operationModeZone2]); //OFF, HEAT, COOL
|
|
2001
2001
|
targetOperationMode = [1, 2, 3, 1, 2, 1][operationModeZone2]; //OFF, HEAT, COOL, AUTO
|
|
2002
2002
|
|
package/src/melcloudhome.js
CHANGED
|
@@ -326,11 +326,11 @@ class MelCloudHome extends EventEmitter {
|
|
|
326
326
|
}, 30000);
|
|
327
327
|
})
|
|
328
328
|
.on('pong', () => {
|
|
329
|
-
if (this.logDebug) this.emit('debug', `
|
|
329
|
+
if (this.logDebug) this.emit('debug', `Web socket received heartbeat`);
|
|
330
330
|
})
|
|
331
331
|
.on('message', (message) => {
|
|
332
332
|
const parsedMessage = JSON.parse(message);
|
|
333
|
-
if (this.logDebug) this.emit('debug', `
|
|
333
|
+
if (this.logDebug) this.emit('debug', `Web socket incoming message: ${JSON.stringify(parsedMessage, null, 2)}`);
|
|
334
334
|
if (parsedMessage.message === 'Forbidden') return;
|
|
335
335
|
|
|
336
336
|
this.emit('webSocket', parsedMessage);
|