homebridge-melcloud-control 4.6.7-beta.2 → 4.6.7-beta.3
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 +4 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.6.7-beta.
|
|
4
|
+
"version": "4.6.7-beta.3",
|
|
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
|
@@ -1669,6 +1669,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1669
1669
|
const supportStandbyKey = accountTypeMelcloud ? 'ModelSupportsStandbyMode' : 'HasStandby';
|
|
1670
1670
|
const supportHeatKey = accountTypeMelcloud ? 'CanHeat' : 'HasHeatMode';
|
|
1671
1671
|
const supportCoolKey = accountTypeMelcloud ? 'CanCool' : 'HasCoolingMode';
|
|
1672
|
+
const supportHotWaterKey = accountTypeMelcloud ? 'HasHotWaterTank' : 'HasHotWater';
|
|
1672
1673
|
|
|
1673
1674
|
//presets schedule
|
|
1674
1675
|
const presetsOnServer = deviceData.Presets ?? [];
|
|
@@ -1684,10 +1685,10 @@ class DeviceAtw extends EventEmitter {
|
|
|
1684
1685
|
const supportsStanbyMode = deviceData.Device[supportStandbyKey];
|
|
1685
1686
|
const supportsHeatPump = ![1, 2, 3, 4, 5, 6, 7, 15].includes(this.hideZone);
|
|
1686
1687
|
const supportsZone1 = ![2, 3, 4, 8, 9, 10, 11, 15].includes(this.hideZone);
|
|
1687
|
-
const supportsHotWaterTank = ![3, 5, 6, 9, 10, 12, 13, 15].includes(this.hideZone) && deviceData.Device
|
|
1688
|
+
const supportsHotWaterTank = ![3, 5, 6, 9, 10, 12, 13, 15].includes(this.hideZone) && deviceData.Device[supportHotWaterKey];
|
|
1688
1689
|
const supportsZone2 = ![4, 6, 7, 10, 11, 13, 14, 15].includes(this.hideZone) && deviceData.Device.HasZone2;
|
|
1689
|
-
const canHeat = deviceData.Device[
|
|
1690
|
-
const canCool = deviceData.Device[
|
|
1690
|
+
const canHeat = deviceData.Device[supportHeatKey] ?? true;
|
|
1691
|
+
const canCool = deviceData.Device[supportCoolKey] ?? false;
|
|
1691
1692
|
const heatCoolModes = canHeat && canCool ? 0 : canHeat ? 1 : canCool ? 2 : 3;
|
|
1692
1693
|
const temperatureIncrement = deviceData.Device[tempStepKey] ?? 1;
|
|
1693
1694
|
const minSetTemperature = deviceData.Device.MinSetTemperature ?? 10;
|