homebridge-melcloud-control 4.5.7-beta.1 → 4.5.8

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
@@ -22,6 +22,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
22
22
 
23
23
  - Do not use Homebridge UI > v5.5.0 because of break config.json
24
24
 
25
+ # [4.5.7] - (24.12.2025)
26
+
27
+ ## Changes
28
+
29
+ - fix [#229](https://github.com/grzegorz914/homebridge-melcloud-control/issues/229)
30
+ - cleanup
31
+
25
32
  # [4.5.6] - (22.12.2025)
26
33
 
27
34
  ## 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.5.7-beta.1",
4
+ "version": "4.5.8",
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
@@ -1535,7 +1535,7 @@ class DeviceAta extends EventEmitter {
1535
1535
  const supportsHeat = this.heatDryFanMode >= 1 && supportsHeat1;
1536
1536
  const supportsDry = deviceData.Device[supportDryKey];
1537
1537
  const supportsCool1 = deviceData.Device[supportCoolKey];
1538
- const supportsCool = this.coolDryFanMode >= 1 && supportsCool1;
1538
+ const supportsCool = this.coolDryFanMode >= 1;
1539
1539
  const numberOfFanSpeeds = deviceData.Device.NumberOfFanSpeeds;
1540
1540
  const minTempHeat = deviceData.Device.MinTempHeat ?? 10;
1541
1541
  const maxTempHeat = deviceData.Device.MaxTempHeat ?? 31;
@@ -1666,7 +1666,7 @@ class DeviceAta extends EventEmitter {
1666
1666
 
1667
1667
  if (supportsAuto) operationModevalidValues.push(0);
1668
1668
  if (supportsHeat) operationModevalidValues.push(1);
1669
- if (supportsCool) operationModevalidValues.push(2);
1669
+ operationModevalidValues.push(2);
1670
1670
 
1671
1671
  obj.operationModeSetPropsMinValue = operationModevalidValues[0];
1672
1672
  obj.operationModeSetPropsMaxValue = operationModevalidValues.at(-1);
@@ -1750,7 +1750,7 @@ class DeviceAta extends EventEmitter {
1750
1750
 
1751
1751
  operationModevalidValues.push(0);
1752
1752
  if (supportsHeat) operationModevalidValues.push(1);
1753
- if (supportsCool) operationModevalidValues.push(2);
1753
+ operationModevalidValues.push(2);
1754
1754
  if (supportsAuto) operationModevalidValues.push(3);
1755
1755
 
1756
1756
  obj.operationModeSetPropsMinValue = operationModevalidValues[0];
@@ -330,7 +330,7 @@ class MelCloudHome extends EventEmitter {
330
330
  })
331
331
  .on('message', (message) => {
332
332
  const parsedMessage = JSON.parse(message);
333
- if (!this.logDebug) this.emit('debug', `Incoming message: ${JSON.stringify(parsedMessage, null, 2)}`);
333
+ if (this.logDebug) this.emit('debug', `Incoming message: ${JSON.stringify(parsedMessage, null, 2)}`);
334
334
  if (parsedMessage.message === 'Forbidden') return;
335
335
 
336
336
  this.emit('webSocket', parsedMessage);