homebridge-melcloud-control 4.0.0-beta.121 → 4.0.0-beta.122
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 +5 -1
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.122",
|
|
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,6 +302,7 @@ 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));
|
|
305
306
|
switch (displayMode) {
|
|
306
307
|
case 1: //Heather/Cooler
|
|
307
308
|
switch (deviceData.Device.OperationMode) {
|
|
@@ -329,6 +330,9 @@ class MelCloudAta extends EventEmitter {
|
|
|
329
330
|
case 11: //ISEE COOL
|
|
330
331
|
deviceData.Device.SetTemperature = deviceData.Device.DefaultCoolingSetTemperature;
|
|
331
332
|
break;
|
|
333
|
+
default:
|
|
334
|
+
deviceData.Device.SetTemperature = deviceData.Device.SetTemperature;
|
|
335
|
+
break;
|
|
332
336
|
};
|
|
333
337
|
case 2: //Thermostat
|
|
334
338
|
deviceData.Device.SetTemperature = deviceData.Device.SetTemperature;
|
|
@@ -347,8 +351,8 @@ class MelCloudAta extends EventEmitter {
|
|
|
347
351
|
}
|
|
348
352
|
}
|
|
349
353
|
|
|
350
|
-
this.emit('warn', JSON.stringify(deviceData.Device, null, 2));
|
|
351
354
|
this.emit('warn', JSON.stringify(payload, null, 2));
|
|
355
|
+
|
|
352
356
|
const path = ApiUrlsHome.SetAta.replace('deviceid', deviceData.DeviceID);
|
|
353
357
|
await axiosInstancePut(path, payload);
|
|
354
358
|
return true;
|