homebridge-melcloud-control 3.3.12-beta.5 → 3.3.12-beta.6
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/deviceata.js +6 -7
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.3.12-beta.
|
|
4
|
+
"version": "3.3.12-beta.6",
|
|
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/deviceata.js
CHANGED
|
@@ -307,18 +307,17 @@ class DeviceAta extends EventEmitter {
|
|
|
307
307
|
this.accessory.targetOperationMode = this.autoDryFanMode === 3 ? 0 : this.heatDryFanMode === 3 ? 1 : this.coolDryFanMode === 3 ? 2 : this.accessory.targetOperationMode;
|
|
308
308
|
break;
|
|
309
309
|
case 8: //AUTO
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
const heatingToFan = roomTemperature > defaultHeatingSetTemperature + 1;
|
|
310
|
+
switch (this.accessory.currentOperationMode) {
|
|
311
|
+
case 2: //HEATING
|
|
312
|
+
const heatingToFan = roomTemperature >= (defaultHeatingSetTemperature + 1);
|
|
314
313
|
this.accessory.currentOperationMode = heatingToFan ? 1 : 2;
|
|
315
314
|
break;
|
|
316
|
-
case
|
|
317
|
-
const coolingToFan = roomTemperature
|
|
315
|
+
case 3: //COOLING
|
|
316
|
+
const coolingToFan = roomTemperature <= (defaultCoolingSetTemperature - 1);
|
|
318
317
|
this.accessory.currentOperationMode = coolingToFan ? 1 : 3;
|
|
319
318
|
break;
|
|
320
319
|
default: //FAN
|
|
321
|
-
this.accessory.currentOperationMode = roomTemperature
|
|
320
|
+
this.accessory.currentOperationMode = roomTemperature > defaultCoolingSetTemperature ? 3 : roomTemperature < defaultHeatingSetTemperature ? 2 : 1;
|
|
322
321
|
break;
|
|
323
322
|
};
|
|
324
323
|
this.accessory.targetOperationMode = 0;
|