homebridge-melcloud-control 4.6.7-beta.4 → 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/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/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] = {
|