homebridge-melcloud-control 3.3.19-beta.2 → 3.3.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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/constants.json +1 -0
- package/src/deviceata.js +6 -6
- package/src/melcloudata.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -16,6 +16,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
16
16
|
- do not configure it manually, always using Config UI X
|
|
17
17
|
- required Homebridge v2.0.0 and above
|
|
18
18
|
|
|
19
|
+
## [3.3.19] - (25.09.2024)
|
|
20
|
+
|
|
21
|
+
## Changes
|
|
22
|
+
|
|
23
|
+
- fix apply presets for ATA
|
|
24
|
+
- cleanup
|
|
25
|
+
|
|
19
26
|
## [3.3.18] - (25.09.2024)
|
|
20
27
|
|
|
21
28
|
## Changes
|
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.19
|
|
4
|
+
"version": "3.3.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/constants.json
CHANGED
package/src/deviceata.js
CHANGED
|
@@ -648,7 +648,7 @@ class DeviceAta extends EventEmitter {
|
|
|
648
648
|
switch (key) {
|
|
649
649
|
case 'Power':
|
|
650
650
|
deviceData.Device[key] = value;
|
|
651
|
-
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.
|
|
651
|
+
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.Power;
|
|
652
652
|
set = await this.melCloudAta.send(deviceData, this.displayMode);
|
|
653
653
|
break;
|
|
654
654
|
case 'OperationMode':
|
|
@@ -767,7 +767,7 @@ class DeviceAta extends EventEmitter {
|
|
|
767
767
|
.onSet(async (state) => {
|
|
768
768
|
try {
|
|
769
769
|
deviceData.Device.Power = [false, true][state];
|
|
770
|
-
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.
|
|
770
|
+
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.Power;
|
|
771
771
|
await this.melCloudAta.send(deviceData, this.displayMode);
|
|
772
772
|
const info = this.disableLogInfo ? false : this.emit('message', `Set power: ${state ? 'ON' : 'OFF'}`);
|
|
773
773
|
} catch (error) {
|
|
@@ -980,7 +980,7 @@ class DeviceAta extends EventEmitter {
|
|
|
980
980
|
switch (value) {
|
|
981
981
|
case 0: //OFF - POWER OFF
|
|
982
982
|
deviceData.Device.Power = false;
|
|
983
|
-
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.
|
|
983
|
+
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.Power;
|
|
984
984
|
break;
|
|
985
985
|
case 1: //HEAT - HEAT
|
|
986
986
|
deviceData.Device.Power = true;
|
|
@@ -1124,7 +1124,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1124
1124
|
deviceData.Device.VaneHorizontalDirection = presetData.VaneHorizontal;
|
|
1125
1125
|
deviceData.Device.VaneVerticalDirection = presetData.VaneVertical;
|
|
1126
1126
|
deviceData.Device.FanSpeed = presetData.FanSpeed;
|
|
1127
|
-
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.
|
|
1127
|
+
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.Presets;
|
|
1128
1128
|
break;
|
|
1129
1129
|
case false:
|
|
1130
1130
|
deviceData.Device.Power = preset.previousSettings.Power;
|
|
@@ -1133,7 +1133,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1133
1133
|
deviceData.Device.VaneHorizontalDirection = preset.previousSettings.VaneHorizontalDirection;
|
|
1134
1134
|
deviceData.Device.VaneVerticalDirection = preset.previousSettings.VaneVerticalDirection;
|
|
1135
1135
|
deviceData.Device.FanSpeed = preset.previousSettings.FanSpeed;
|
|
1136
|
-
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.
|
|
1136
|
+
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.Presets;
|
|
1137
1137
|
break;
|
|
1138
1138
|
};
|
|
1139
1139
|
|
|
@@ -1181,7 +1181,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1181
1181
|
switch (mode) {
|
|
1182
1182
|
case 0: //POWER ON,OFF
|
|
1183
1183
|
deviceData.Device.Power = state;
|
|
1184
|
-
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.
|
|
1184
|
+
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.Power;
|
|
1185
1185
|
break;
|
|
1186
1186
|
case 1: //OPERATING MODE HEAT
|
|
1187
1187
|
button.previousValue = state ? deviceData.Device.OperationMode : button.previousValue ?? deviceData.Device.OperationMode;
|
package/src/melcloudata.js
CHANGED
|
@@ -408,7 +408,6 @@ class MelCloudAta extends EventEmitter {
|
|
|
408
408
|
data: {
|
|
409
409
|
DeviceID: deviceData.Device.DeviceID,
|
|
410
410
|
EffectiveFlags: deviceData.Device.EffectiveFlags,
|
|
411
|
-
RoomTemperature: deviceData.Device.RoomTemperature,
|
|
412
411
|
SetTemperature: deviceData.Device.SetTemperature,
|
|
413
412
|
SetFanSpeed: deviceData.Device.FanSpeed,
|
|
414
413
|
OperationMode: deviceData.Device.OperationMode,
|
|
@@ -416,12 +415,10 @@ class MelCloudAta extends EventEmitter {
|
|
|
416
415
|
VaneVertical: deviceData.Device.VaneVerticalDirection,
|
|
417
416
|
DefaultHeatingSetTemperature: deviceData.Device.DefaultHeatingSetTemperature,
|
|
418
417
|
DefaultCoolingSetTemperature: deviceData.Device.DefaultCoolingSetTemperature,
|
|
419
|
-
InStandbyMode: deviceData.Device.InStandbyMode,
|
|
420
418
|
ProhibitSetTemperature: deviceData.Device.ProhibitSetTemperature,
|
|
421
419
|
ProhibitOperationMode: deviceData.Device.ProhibitOperationMode,
|
|
422
420
|
ProhibitPower: deviceData.Device.ProhibitPower,
|
|
423
421
|
Power: deviceData.Device.Power,
|
|
424
|
-
Offline: deviceData.Device.Offline,
|
|
425
422
|
HideVaneControls: deviceData.HideVaneControls,
|
|
426
423
|
HideDryModeControl: deviceData.HideDryModeControl,
|
|
427
424
|
HasPendingCommand: true
|