homebridge-melcloud-control 4.6.7-beta.3 → 4.6.7-beta.5
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 +2 -2
- package/src/melcloudata.js +0 -2
- package/src/melcloudatw.js +3 -4
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.5",
|
|
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
|
@@ -2062,7 +2062,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
2062
2062
|
if (this.accountType === 'melcloudhome') this.emit('info', `Signal strength: ${deviceData.Rssi}dBm`);
|
|
2063
2063
|
break;
|
|
2064
2064
|
case caseZone1: //Zone 1 - HEAT THERMOSTAT, HEAT FLOW, HEAT CURVE, COOL THERMOSTAT, COOL FLOW, FLOOR DRY UP
|
|
2065
|
-
operationModeText = idleZone1 ? HeatPump.
|
|
2065
|
+
operationModeText = idleZone1 ? HeatPump.OperationModeZoneMapEnumToString[6] : HeatPump.OperationModeZoneMapEnumToString[operationModeZone1];
|
|
2066
2066
|
this.emit('info', `Operation mode: ${operationModeText}`);
|
|
2067
2067
|
this.emit('info', `Temperature: ${roomTemperature}${obj.temperatureUnit}`);
|
|
2068
2068
|
this.emit('info', `Target temperature: ${setTemperature}${obj.temperatureUnit}`)
|
|
@@ -2078,7 +2078,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
2078
2078
|
this.emit('info', `Lock physical controls: ${lockPhysicalControl ? 'Locked' : 'Unlocked'}`);
|
|
2079
2079
|
break;
|
|
2080
2080
|
case caseZone2: //Zone 2 - HEAT THERMOSTAT, HEAT FLOW, HEAT CURVE, COOL THERMOSTAT, COOL FLOW, FLOOR DRY UP
|
|
2081
|
-
operationModeText = idleZone2 ? HeatPump.
|
|
2081
|
+
operationModeText = idleZone2 ? HeatPump.OperationModeZoneMapEnumToString[6] : HeatPump.OperationModeZoneMapEnumToString[operationModeZone2];
|
|
2082
2082
|
this.emit('info', `Operation mode: ${operationModeText}`);
|
|
2083
2083
|
this.emit('info', `Temperature: ${roomTemperature}${obj.temperatureUnit}`);
|
|
2084
2084
|
this.emit('info', `Target temperature: ${setTemperature}${obj.temperatureUnit}`)
|
package/src/melcloudata.js
CHANGED
|
@@ -161,8 +161,6 @@ class MelCloudAta extends EventEmitter {
|
|
|
161
161
|
|
|
162
162
|
//units
|
|
163
163
|
const units = Array.isArray(deviceData.Device?.Units) ? deviceData.Device?.Units : [];
|
|
164
|
-
const unitsCount = units.length;
|
|
165
|
-
|
|
166
164
|
const { indoor, outdoor } = units.reduce((acc, unit) => {
|
|
167
165
|
const target = unit.IsIndoor ? 'indoor' : 'outdoor';
|
|
168
166
|
acc[target] = {
|
package/src/melcloudatw.js
CHANGED
|
@@ -122,19 +122,18 @@ class MelCloudAtw extends EventEmitter {
|
|
|
122
122
|
deviceData.Device.OperationMode = HeatPump.OperationModeMapStringToEnum[deviceData.Device.OperationMode] ?? deviceData.Device.OperationMode;
|
|
123
123
|
deviceData.Device.OperationModeZone1 = HeatPump.OperationModeZoneMapStringToEnum[deviceData.Device.OperationModeZone1] ?? deviceData.Device.OperationModeZone1;
|
|
124
124
|
deviceData.Device.OperationModeZone2 = HeatPump.OperationModeZoneMapStringToEnum[deviceData.Device.OperationModeZone2] ?? deviceData.Device.OperationModeZone2;
|
|
125
|
+
deviceData.Device.HasHotWaterTank = deviceData.Device.HasHotWater ?? false;
|
|
125
126
|
}
|
|
126
127
|
if (this.logDebug) this.emit('debug', `Device Data: ${JSON.stringify(deviceData, null, 2)}`);
|
|
127
128
|
|
|
128
129
|
//device
|
|
129
130
|
const serialNumber = deviceData.SerialNumber || '4.0.0';
|
|
130
131
|
const firmwareAppVersion = deviceData.Device?.FirmwareAppVersion || '4.0.0';
|
|
131
|
-
const hasHotWaterTank = deviceData.Device?.HasHotWaterTank;
|
|
132
|
-
const hasZone2 = deviceData.Device?.HasZone2;
|
|
132
|
+
const hasHotWaterTank = deviceData.Device?.HasHotWaterTank || false;
|
|
133
|
+
const hasZone2 = deviceData.Device?.HasZone2 || false;
|
|
133
134
|
|
|
134
135
|
//units
|
|
135
136
|
const units = Array.isArray(deviceData.Device?.Units) ? deviceData.Device?.Units : [];
|
|
136
|
-
const unitsCount = units.length;
|
|
137
|
-
|
|
138
137
|
const { indoor, outdoor } = units.reduce((acc, unit) => {
|
|
139
138
|
const target = unit.IsIndoor ? 'indoor' : 'outdoor';
|
|
140
139
|
acc[target] = {
|