homebridge-melcloud-control 4.0.0-beta.176 → 4.0.0-beta.177
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 +5 -5
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.177",
|
|
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
|
@@ -976,9 +976,9 @@ class DeviceAta extends EventEmitter {
|
|
|
976
976
|
const power = deviceData.Device.Power ?? false;
|
|
977
977
|
const inStandbyMode = deviceData.Device.InStandbyMode ?? false;
|
|
978
978
|
const roomTemperature = deviceData.Device.RoomTemperature;
|
|
979
|
-
const setTemperature = deviceData.Device.SetTemperature
|
|
980
|
-
const defaultHeatingSetTemperature = deviceData.Device.DefaultHeatingSetTemperature
|
|
981
|
-
const defaultCoolingSetTemperature = deviceData.Device.DefaultCoolingSetTemperature
|
|
979
|
+
const setTemperature = deviceData.Device.SetTemperature;
|
|
980
|
+
const defaultHeatingSetTemperature = deviceData.Device.DefaultHeatingSetTemperature;
|
|
981
|
+
const defaultCoolingSetTemperature = deviceData.Device.DefaultCoolingSetTemperature;
|
|
982
982
|
const actualFanSpeed = deviceData.Device.ActualFanSpeed;
|
|
983
983
|
const automaticFanSpeed = deviceData.Device.AutomaticFanSpeed;
|
|
984
984
|
const setFanSpeed = deviceData.Device[fanKey];
|
|
@@ -1108,8 +1108,8 @@ class DeviceAta extends EventEmitter {
|
|
|
1108
1108
|
.updateCharacteristic(Characteristic.CurrentTemperature, roomTemperature)
|
|
1109
1109
|
.updateCharacteristic(Characteristic.LockPhysicalControls, obj.lockPhysicalControl)
|
|
1110
1110
|
.updateCharacteristic(Characteristic.TemperatureDisplayUnits, obj.useFahrenheit)
|
|
1111
|
-
.updateCharacteristic(Characteristic.CoolingThresholdTemperature, defaultCoolingSetTemperature);
|
|
1112
|
-
if (supportsHeat) this.melCloudService?.updateCharacteristic(Characteristic.HeatingThresholdTemperature, defaultHeatingSetTemperature);
|
|
1111
|
+
.updateCharacteristic(Characteristic.CoolingThresholdTemperature, obj.targetOperationMode === 0 ? defaultCoolingSetTemperature : setTemperature);
|
|
1112
|
+
if (supportsHeat) this.melCloudService?.updateCharacteristic(Characteristic.HeatingThresholdTemperature, obj.targetOperationMode === 0 ? defaultHeatingSetTemperature : setTemperature);
|
|
1113
1113
|
if (supportsFanSpeed) this.melCloudService?.updateCharacteristic(Characteristic.RotationSpeed, obj.currentFanSpeed);
|
|
1114
1114
|
if (supportsSwingFunction) this.melCloudService?.updateCharacteristic(Characteristic.SwingMode, obj.currentSwingMode);
|
|
1115
1115
|
break;
|