homebridge-melcloud-control 3.8.0-beta.12 → 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/index.js +1 -1
- package/package.json +1 -1
- package/src/deviceatw.js +5 -11
package/index.js
CHANGED
|
@@ -247,7 +247,7 @@ class MelCloudPlatform {
|
|
|
247
247
|
await impulseGenerator.start([{ name: 'start', sampling: 45000 }]);
|
|
248
248
|
};
|
|
249
249
|
} catch (error) {
|
|
250
|
-
const emitLog = disableLogError ? false : log.error(`${accountName},
|
|
250
|
+
const emitLog = disableLogError ? false : log.error(`${accountName}, ATW did finish launching error: ${error}.`);
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
//Energy Recovery Ventilation 3
|
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
|
|
@@ -1708,7 +1702,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1708
1702
|
.updateCharacteristic(Characteristic.CurrentTemperature, returnTemperature)
|
|
1709
1703
|
};
|
|
1710
1704
|
break;
|
|
1711
|
-
case
|
|
1705
|
+
case caseZone1: //Zone 1
|
|
1712
1706
|
if (this.roomTemperatureZone1SensorService) {
|
|
1713
1707
|
this.roomTemperatureZone1SensorService
|
|
1714
1708
|
.updateCharacteristic(Characteristic.CurrentTemperature, roomTemperature)
|
|
@@ -1771,7 +1765,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1771
1765
|
this.emit('message', `${heatPumpName}, Temperature display unit: ${this.accessory.temperatureUnit}`);
|
|
1772
1766
|
this.emit('message', `${heatPumpName}, Lock physical controls: ${lockPhysicalControl ? 'LOCKED' : 'UNLOCKED'}`);
|
|
1773
1767
|
break;
|
|
1774
|
-
case
|
|
1768
|
+
case caseZone1: //Zone 1 - HEAT THERMOSTAT, HEAT FLOW, HEAT CURVE, COOL THERMOSTAT, COOL FLOW, FLOOR DRY UP
|
|
1775
1769
|
operationModeText = idleZone1 ? HeatPump.ZoneOperation[6] : HeatPump.ZoneOperation[operationModeZone1];
|
|
1776
1770
|
this.emit('message', `${zone1Name}, Operation mode: ${operationModeText}`);
|
|
1777
1771
|
this.emit('message', `${zone1Name}, Temperature: ${roomTemperature}${this.accessory.temperatureUnit}`);
|