homebridge-melcloud-control 4.8.4-beta.4 → 4.8.4

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
@@ -24,6 +24,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
24
24
  - For plugin < v4.6.0 use Homebridge UI <= v5.5.0
25
25
  - For plugin >= v4.6.0 use Homebridge UI >= v5.13.0
26
26
 
27
+ # [4.8.4] - (22.03.2026)
28
+
29
+ ## Changes
30
+
31
+ - fix report correct fan mode fter power ON with HK
32
+ - fix wide vane support
33
+ - cleanup payload before send
34
+ - bump dependencies
35
+ - cleanup
36
+
27
37
  # [4.8.3] - (17.03.2026)
28
38
 
29
39
  ## Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.8.4-beta.4",
4
+ "version": "4.8.4",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -31,7 +31,7 @@
31
31
  "LICENSE"
32
32
  ],
33
33
  "engines": {
34
- "homebridge": "^1.8.0 || ^2.0.0 || ^2.0.0-beta.68 || ^2.0.0-alpha.81",
34
+ "homebridge": "^1.8.0 || ^2.0.0 || ^2.0.0-beta.79 || ^2.0.0-alpha.81",
35
35
  "node": "^20 || ^22 || ^24 || ^25"
36
36
  },
37
37
  "dependencies": {
package/src/deviceata.js CHANGED
@@ -298,7 +298,7 @@ class DeviceAta extends EventEmitter {
298
298
  const supportsOutdoorTemperature = this.accessory.supportsOutdoorTemperature;
299
299
  const numberOfFanSpeeds = this.accessory.numberOfFanSpeeds;
300
300
  const supportsSwingFunction = this.accessory.supportsSwingFunction;
301
- const supportsVideWane = this.accessory.supportsVideWane;
301
+ const supportsWideVane = this.accessory.supportsWideVane;
302
302
  const autoDryFanMode = [this.accessory.operationMode, 8, supportsDry ? 2 : 8, 7][this.autoDryFanMode]; //NONE, AUTO - 8, DRY - 2, FAN - 7
303
303
  const heatDryFanMode = [this.accessory.operationMode, 1, supportsDry ? 2 : 1, 7][this.heatDryFanMode]; //NONE, HEAT - 1, DRY - 2, FAN - 7
304
304
  const coolDryFanMode = [this.accessory.operationMode, 3, supportsDry ? 2 : 3, 7][this.coolDryFanMode]; //NONE, COOL - 3, DRY - 2, FAN - 7
@@ -419,7 +419,7 @@ class DeviceAta extends EventEmitter {
419
419
  .onSet(async (value) => {
420
420
  try {
421
421
  const payload = {};
422
- if (supportsVideWane) payload.vaneHorizontalDirection = value ? 12 : 0;
422
+ if (supportsWideVane) payload.vaneHorizontalDirection = value ? 12 : 0;
423
423
  payload.vaneVerticalDirection = value ? 7 : 0;
424
424
  if (this.logInfo) this.emit('info', `Set air direction mode: ${AirConditioner.AirDirectionMapEnumToString[value]}`);
425
425
  await this.melCloudAta.send(this.accountType, this.displayType, deviceData, payload, AirConditioner.EffectiveFlags.VaneVerticalVaneHorizontal);
@@ -1460,7 +1460,7 @@ class DeviceAta extends EventEmitter {
1460
1460
  const errorKey = accountTypeMelCloud ? 'HasError' : 'IsInError';
1461
1461
  const supportAirDirectionKey = accountTypeMelCloud ? 'AirDirectionFunction' : 'HasAirDirectionFunction';
1462
1462
  const supportSwingKey = accountTypeMelCloud ? 'SwingFunction' : 'HasSwing';
1463
- const supportVideWaneKey = accountTypeMelCloud ? 'ModelSupportsWideVane' : 'SupportsWideVane';
1463
+ const supportWideVaneKey = accountTypeMelCloud ? 'ModelSupportsWideVane' : 'SupportsWideVane';
1464
1464
  const supportAutoKey = accountTypeMelCloud ? 'ModelSupportsAuto' : 'HasAutoOperationMode';
1465
1465
  const supportHeatKey = accountTypeMelCloud ? 'ModelSupportsHeat' : 'HasHeatOperationMode';
1466
1466
  const supportDryKey = accountTypeMelCloud ? 'ModelSupportsDry' : 'HasDryOperationMode';
@@ -1490,7 +1490,7 @@ class DeviceAta extends EventEmitter {
1490
1490
  const supportsAutomaticFanSpeed = !!deviceData.Device.HasAutomaticFanSpeed;
1491
1491
  const supportsAirDirectionFunction = !!deviceData.Device[supportAirDirectionKey];
1492
1492
  const supportsSwingFunction = !!deviceData.Device[supportSwingKey];
1493
- const supportsWideVane = !!deviceData.Device[supportVideWaneKey];
1493
+ const supportsWideVane = !!deviceData.Device[supportWideVaneKey];
1494
1494
  const supportsOutdoorTemperature = !!deviceData.Device.HasOutdoorTemperature && this.functions.isValidValue(deviceData.Device.OutdoorTemperature);
1495
1495
  const supportsFanSpeed = accountTypeMelCloud ? !!deviceData.Device.ModelSupportsFanSpeed : deviceData.Device.NumberOfFanSpeeds > 0;
1496
1496
  const supportsAuto1 = !!deviceData.Device[supportAutoKey];
@@ -320,7 +320,7 @@ class MelCloudAta extends EventEmitter {
320
320
  }
321
321
 
322
322
  //send payload
323
- if (!this.logDebug) this.emit('debug', `Send data: ${JSON.stringify(payload, null, 2)}`);
323
+ if (this.logDebug) this.emit('debug', `Send data: ${JSON.stringify(payload, null, 2)}`);
324
324
  await this.client(path, { method: method, data: payload });
325
325
 
326
326
  //update state