homebridge-melcloud-control 3.3.19-beta.3 → 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 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-beta.3",
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",
@@ -112,6 +112,7 @@
112
112
  "VaneHorizontal": 256,
113
113
  "PowerVaneHorizontal": 257,
114
114
  "VaneVerticalVaneHorizontal": 272,
115
+ "Presets": 287,
115
116
  "HolidayMode": 131072,
116
117
  "All": 281483566710825
117
118
  }
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.PowerSetTemperature;
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.PowerSetTemperature;
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.PowerSetTemperature;
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.Power;
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.Power;
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.PowerSetTemperature;
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;