homebridge-melcloud-control 3.8.0-beta.13 → 3.8.0-beta.14
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/package.json +1 -1
- package/src/deviceatw.js +3 -9
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.14",
|
|
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
|
@@ -1338,9 +1338,9 @@ class DeviceAtw extends EventEmitter {
|
|
|
1338
1338
|
const presetsOnServer = deviceData.Presets ?? [];
|
|
1339
1339
|
|
|
1340
1340
|
//device info
|
|
1341
|
-
const hasZone1 = this.hideZone
|
|
1342
|
-
const hasHotWaterTank =
|
|
1343
|
-
const hasZone2 =
|
|
1341
|
+
const hasZone1 = this.hideZone === 1 || this.hideZone === 3 || this.hideZone === 5 || this.hideZone === 7 ? false : true;
|
|
1342
|
+
const hasHotWaterTank = this.hideZone === 4 || this.hideZone === 5 || this.hideZone === 6 || this.hideZone === 7 || !deviceData.Device.HasHotWaterTank ? false : true;
|
|
1343
|
+
const hasZone2 = this.hideZone === 2 || this.hideZone === 3 || this.hideZone === 6 || this.hideZone === 7 || !deviceData.Device.HasZone2 ? false : true;
|
|
1344
1344
|
const canHeat = deviceData.Device.CanHeat ?? false;
|
|
1345
1345
|
const canCool = deviceData.Device.CanCool ?? false;
|
|
1346
1346
|
const heatCoolModes = canHeat && canCool ? 0 : canHeat ? 1 : canCool ? 2 : 3;
|
|
@@ -1543,9 +1543,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
1543
1543
|
operationModeSetPropsMaxValue = [2, 2, 2, 0][heatCoolModes];
|
|
1544
1544
|
operationModeSetPropsValidValues = [[0, 1, 2], [0, 1, 2], [1, 2], [0]][heatCoolModes];
|
|
1545
1545
|
break;
|
|
1546
|
-
default: //unknown zone detected
|
|
1547
|
-
this.emit('message', `Unknown zone: ${i} detected`);
|
|
1548
|
-
break;
|
|
1549
1546
|
};
|
|
1550
1547
|
|
|
1551
1548
|
//update characteristics
|
|
@@ -1653,9 +1650,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
1653
1650
|
operationModeSetPropsMaxValue = [3, 3, 2, 0][heatCoolModes];
|
|
1654
1651
|
operationModeSetPropsValidValues = [[1, 2, 3], [1, 2, 3], [1, 2], [0]][heatCoolModes];
|
|
1655
1652
|
break;
|
|
1656
|
-
default: //unknown zone detected
|
|
1657
|
-
this.emit('message', `Unknown zone: ${i} detected`);
|
|
1658
|
-
break;
|
|
1659
1653
|
};
|
|
1660
1654
|
|
|
1661
1655
|
//update characteristics
|