homebridge-melcloud-control 4.0.0-beta.121 → 4.0.0-beta.123
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 +7 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.123",
|
|
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
|
@@ -302,9 +302,11 @@ class MelCloudAta extends EventEmitter {
|
|
|
302
302
|
});
|
|
303
303
|
|
|
304
304
|
//set target temp based on display mode and operation mode
|
|
305
|
+
this.emit('warn', JSON.stringify(deviceData.Device, null, 2));
|
|
306
|
+
const operationMode = deviceData.Device.OperationMode;
|
|
305
307
|
switch (displayMode) {
|
|
306
308
|
case 1: //Heather/Cooler
|
|
307
|
-
switch (
|
|
309
|
+
switch (operationMode) {
|
|
308
310
|
case 1: //HEAT
|
|
309
311
|
deviceData.Device.SetTemperature = deviceData.Device.DefaultHeatingSetTemperature;
|
|
310
312
|
break;
|
|
@@ -329,6 +331,9 @@ class MelCloudAta extends EventEmitter {
|
|
|
329
331
|
case 11: //ISEE COOL
|
|
330
332
|
deviceData.Device.SetTemperature = deviceData.Device.DefaultCoolingSetTemperature;
|
|
331
333
|
break;
|
|
334
|
+
default:
|
|
335
|
+
deviceData.Device.SetTemperature = deviceData.Device.SetTemperature;
|
|
336
|
+
break;
|
|
332
337
|
};
|
|
333
338
|
case 2: //Thermostat
|
|
334
339
|
deviceData.Device.SetTemperature = deviceData.Device.SetTemperature;
|
|
@@ -347,8 +352,8 @@ class MelCloudAta extends EventEmitter {
|
|
|
347
352
|
}
|
|
348
353
|
}
|
|
349
354
|
|
|
350
|
-
this.emit('warn', JSON.stringify(deviceData.Device, null, 2));
|
|
351
355
|
this.emit('warn', JSON.stringify(payload, null, 2));
|
|
356
|
+
|
|
352
357
|
const path = ApiUrlsHome.SetAta.replace('deviceid', deviceData.DeviceID);
|
|
353
358
|
await axiosInstancePut(path, payload);
|
|
354
359
|
return true;
|