homebridge-melcloud-control 3.3.12-beta.19 → 3.3.12-beta.20
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 +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": "3.3.12-beta.
|
|
4
|
+
"version": "3.3.12-beta.20",
|
|
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
|
@@ -376,7 +376,7 @@ class DeviceAta extends EventEmitter {
|
|
|
376
376
|
.updateCharacteristic(Characteristic.LockPhysicalControls, this.accessory.lockPhysicalControl)
|
|
377
377
|
.updateCharacteristic(Characteristic.TemperatureDisplayUnits, this.accessory.useFahrenheit);
|
|
378
378
|
const updateDefCool = modelSupportsCool ? this.melCloudService.updateCharacteristic(Characteristic.CoolingThresholdTemperature, setTemperature) : false;
|
|
379
|
-
const updateDefHeat = modelSupportsHeat ? this.melCloudService.updateCharacteristic(Characteristic.HeatingThresholdTemperature, this.accessory.
|
|
379
|
+
const updateDefHeat = modelSupportsHeat ? this.melCloudService.updateCharacteristic(Characteristic.HeatingThresholdTemperature, this.accessory.targetOperationMode !== 1 ? 10 : setTemperature) : false;
|
|
380
380
|
const updateRS = modelSupportsFanSpeed ? this.melCloudService.updateCharacteristic(Characteristic.RotationSpeed, this.accessory.fanSpeed) : false;
|
|
381
381
|
const updateSM = swingFunction ? this.melCloudService.updateCharacteristic(Characteristic.SwingMode, this.accessory.swingMode) : false;
|
|
382
382
|
};
|
|
@@ -939,12 +939,12 @@ class DeviceAta extends EventEmitter {
|
|
|
939
939
|
minStep: this.accessory.temperatureIncrement
|
|
940
940
|
})
|
|
941
941
|
.onGet(async () => {
|
|
942
|
-
const value = this.accessory.
|
|
942
|
+
const value = this.accessory.targetOperationMode !== 1 ? 10 : this.accessory.setTemperature;
|
|
943
943
|
return value;
|
|
944
944
|
})
|
|
945
945
|
.onSet(async (value) => {
|
|
946
946
|
try {
|
|
947
|
-
if (this.accessory.
|
|
947
|
+
if (this.accessory.targetOperationMode !== 1) {
|
|
948
948
|
this.melCloudService.updateCharacteristic(Characteristic.HeatingThresholdTemperature, 10)
|
|
949
949
|
return;
|
|
950
950
|
};
|