homebridge-melcloud-control 3.3.12-beta.18 → 3.3.12-beta.19
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 +7 -4
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.19",
|
|
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
|
@@ -944,12 +944,15 @@ class DeviceAta extends EventEmitter {
|
|
|
944
944
|
})
|
|
945
945
|
.onSet(async (value) => {
|
|
946
946
|
try {
|
|
947
|
-
if (this.accessory.operationMode
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
const info = this.disableLogInfo ? false : this.emit('message', `Set heat temperature: ${value}${this.accessory.temperatureUnit}`);
|
|
947
|
+
if (this.accessory.operationMode !== 1) {
|
|
948
|
+
this.melCloudService.updateCharacteristic(Characteristic.HeatingThresholdTemperature, 10)
|
|
949
|
+
return;
|
|
951
950
|
};
|
|
952
951
|
|
|
952
|
+
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.SetTemperature;
|
|
953
|
+
await this.melCloudAta.send(deviceData);
|
|
954
|
+
const info = this.disableLogInfo ? false : this.emit('message', `Set heat temperature: ${value}${this.accessory.temperatureUnit}`);
|
|
955
|
+
|
|
953
956
|
} catch (error) {
|
|
954
957
|
this.emit('warn', `Set heating threshold temperature error: ${error}`);
|
|
955
958
|
};
|