homebridge-melcloud-control 4.0.0-beta.111 → 4.0.0-beta.113
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 +2 -1
- package/src/melcloudata.js +1 -0
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.113",
|
|
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
|
@@ -943,6 +943,7 @@ class DeviceAta extends EventEmitter {
|
|
|
943
943
|
this.informationService?.setCharacteristic(Characteristic.FirmwareRevision, firmwareAppVersion);
|
|
944
944
|
})
|
|
945
945
|
.on('deviceState', async (deviceData) => {
|
|
946
|
+
if (this.accountDisplayType === 'melcloudhome') deviceData.Device.OperationMode = AirConditioner.OperationModeMapStringToEnum[deviceData.Device.OperationMode];
|
|
946
947
|
this.deviceData = deviceData;
|
|
947
948
|
|
|
948
949
|
//presets
|
|
@@ -980,7 +981,7 @@ class DeviceAta extends EventEmitter {
|
|
|
980
981
|
const actualFanSpeed = deviceData.Device.ActualFanSpeed;
|
|
981
982
|
const automaticFanSpeed = deviceData.Device.AutomaticFanSpeed;
|
|
982
983
|
const fanSpeed = this.accountMelcloud ? deviceData.Device.FanSpeed : deviceData.Device.SetFanSpeed;
|
|
983
|
-
const operationMode =
|
|
984
|
+
const operationMode = deviceData.Device.OperationMode;
|
|
984
985
|
const vaneVerticalDirection = deviceData.Device.VaneVerticalDirection;
|
|
985
986
|
const vaneVerticalSwing = deviceData.Device.VaneVerticalSwing;
|
|
986
987
|
const vaneHorizontalDirection = deviceData.Device.VaneHorizontalDirection;
|
package/src/melcloudata.js
CHANGED
|
@@ -340,6 +340,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
340
340
|
break;
|
|
341
341
|
};
|
|
342
342
|
|
|
343
|
+
deviceData.Device.SetTemperature = setTemperature;
|
|
343
344
|
deviceData.Device.OperationMode = AirConditioner.OperationModeMapEnumToString[deviceData.Device.OperationMode];
|
|
344
345
|
const payload = {
|
|
345
346
|
data: {
|