homebridge-melcloud-control 4.8.3 → 4.8.4-beta.1
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 +4 -4
- package/src/melcloudata.js +5 -5
- package/src/melcloudatw.js +3 -3
- package/src/melclouderv.js +3 -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.8.
|
|
4
|
+
"version": "4.8.4-beta.1",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"node": "^20 || ^22 || ^24 || ^25"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@homebridge/plugin-ui-utils": "^2.2.
|
|
38
|
+
"@homebridge/plugin-ui-utils": "^2.2.2",
|
|
39
39
|
"mqtt": "^5.15.0",
|
|
40
40
|
"axios": "^1.13.6",
|
|
41
41
|
"express": "^5.2.1",
|
|
42
|
-
"puppeteer": "^24.
|
|
43
|
-
"ws": "^8.
|
|
42
|
+
"puppeteer": "^24.40.0",
|
|
43
|
+
"ws": "^8.20.0"
|
|
44
44
|
},
|
|
45
45
|
"keywords": [
|
|
46
46
|
"homebridge",
|
package/src/melcloudata.js
CHANGED
|
@@ -301,10 +301,10 @@ class MelCloudAta extends EventEmitter {
|
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
if (payload.setFanSpeed
|
|
305
|
-
if (payload.operationMode
|
|
306
|
-
if (payload.vaneHorizontalDirection
|
|
307
|
-
if (payload.vaneVerticalDirection
|
|
304
|
+
if (payload.setFanSpeed !== null) payload.setFanSpeed = String(payload.setFanSpeed);
|
|
305
|
+
if (payload.operationMode !== null) payload.operationMode = AirConditioner.OperationModeMapEnumToString[payload.operationMode];
|
|
306
|
+
if (payload.vaneHorizontalDirection !== null) payload.vaneHorizontalDirection = AirConditioner.VaneHorizontalDirectionMapEnumToString[payload.vaneHorizontalDirection];
|
|
307
|
+
if (payload.vaneVerticalDirection !== null) payload.vaneVerticalDirection = AirConditioner.VaneVerticalDirectionMapEnumToString[payload.vaneVerticalDirection];
|
|
308
308
|
|
|
309
309
|
deviceData.Device = { ...deviceData.Device, ...payload };
|
|
310
310
|
method = 'PUT';
|
|
@@ -313,7 +313,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
//send payload
|
|
316
|
-
if (this.logDebug) this.emit('debug', `Send data: ${JSON.stringify(payload, null, 2)}`);
|
|
316
|
+
if (!this.logDebug) this.emit('debug', `Send data: ${JSON.stringify(payload, null, 2)}`);
|
|
317
317
|
await this.client(path, { method: method, data: payload });
|
|
318
318
|
return true;
|
|
319
319
|
default:
|
package/src/melcloudatw.js
CHANGED
|
@@ -252,9 +252,9 @@ class MelCloudAtw extends EventEmitter {
|
|
|
252
252
|
payload = {};
|
|
253
253
|
break;
|
|
254
254
|
default:
|
|
255
|
-
if (payload.operationMode
|
|
256
|
-
if (payload.operationModeZone1
|
|
257
|
-
if (payload.operationModeZone2
|
|
255
|
+
if (payload.operationMode !== null) payload.operationMode = HeatPump.OperationModeMapEnumToString[payload.operationMode];
|
|
256
|
+
if (payload.operationModeZone1 !== null) payload.operationModeZone1 = HeatPump.OperationModeZoneMapEnumToString[payload.operationModeZone1];
|
|
257
|
+
if (payload.operationModeZone2 !== null) payload.operationModeZone2 = HeatPump.OperationModeZoneMapEnumToString[payload.operationModeZone2];
|
|
258
258
|
|
|
259
259
|
method = 'PUT';
|
|
260
260
|
path = ApiUrls.Home.Put.Atw.replace('deviceid', deviceData.DeviceID);
|
package/src/melclouderv.js
CHANGED
|
@@ -269,9 +269,9 @@ class MelCloudErv extends EventEmitter {
|
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
if (payload.setFanSpeed
|
|
273
|
-
if (payload.operationMode
|
|
274
|
-
if (payload.ventilationMode
|
|
272
|
+
if (payload.setFanSpeed !== null) payload.setFanSpeed = String(payload.setFanSpeed);
|
|
273
|
+
if (payload.operationMode !== null) payload.operationMode = Ventilation.OperationModeMapEnumToString[payload.operationMode];
|
|
274
|
+
if (payload.ventilationMode !== null) payload.ventilationMode = Ventilation.VentilationModeMapEnumToString[payload.ventilationMode];
|
|
275
275
|
|
|
276
276
|
deviceData.Device = { ...deviceData.Device, ...payload };
|
|
277
277
|
method = 'PUT';
|