homebridge-melcloud-control 4.5.4-beta.0 → 4.5.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
@@ -22,11 +22,17 @@ 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.4] - (19.12.2025)
26
+
27
+ ## Changes
28
+
29
+ - MELCLoud, fix[#227](https://github.com/grzegorz914/homebridge-melcloud-control/issues/227)
30
+
25
31
  # [4.5.3] - (19.12.2025)
26
32
 
27
33
  ## Changes
28
34
 
29
- - fix[#227](https://github.com/grzegorz914/homebridge-melcloud-control/issues/227)
35
+ - MELCLoud Home, fix[#227](https://github.com/grzegorz914/homebridge-melcloud-control/issues/227)
30
36
 
31
37
  # [4.5.0] - (19.12.2025)
32
38
 
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.4-beta.0",
4
+ "version": "4.5.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",
package/src/deviceata.js CHANGED
@@ -460,7 +460,7 @@ class DeviceAta extends EventEmitter {
460
460
  .onSet(async (value) => {
461
461
  try {
462
462
  const tempKey = this.accessory.operationMode === 8 ? 'DefaultCoolingSetTemperature' : 'SetTemperature';
463
- deviceData.Device[tempKey] = value;
463
+ deviceData.Device[tempKey] = value < 16 ? 16 : value;
464
464
  if (this.logInfo) this.emit('info', `Set cooling threshold temperature: ${value}${this.accessory.temperatureUnit}`);
465
465
  await this.melCloudAta.send(this.accountType, this.displayType, deviceData, AirConditioner.EffectiveFlags.SetTemperature);
466
466
  } catch (error) {
@@ -1533,7 +1533,7 @@ class DeviceAta extends EventEmitter {
1533
1533
  const numberOfFanSpeeds = deviceData.Device.NumberOfFanSpeeds;
1534
1534
  const minTempHeat = deviceData.Device.MinTempHeat ?? 10;
1535
1535
  const maxTempHeat = deviceData.Device.MaxTempHeat ?? 31;
1536
- const minTempCoolDryAuto = deviceData.Device.MinTempAutomatic ?? 16;
1536
+ const minTempCoolDryAuto = accountTypeMelcloud ? 4 : deviceData.Device.MinTempAutomatic ?? 16;
1537
1537
  const maxTempCoolDryAuto = deviceData.Device.MaxTempAutomatic ?? 31;
1538
1538
 
1539
1539
  //device state
@@ -122,7 +122,6 @@ class MelCloudAta extends EventEmitter {
122
122
  }
123
123
  break;
124
124
  default:
125
- if (this.logDebug) this.emit('debug', `Incoming unknown unit id: ${parsedMessage}`);
126
125
  return;
127
126
  }
128
127
 
@@ -137,7 +136,6 @@ class MelCloudAta extends EventEmitter {
137
136
  async updateState(type, deviceData) {
138
137
  try {
139
138
  if (this.accountType === 'melcloudhome') {
140
-
141
139
  if (type === 'ws') {
142
140
  deviceData.Device.OperationMode = AirConditioner.OperationModeMapEnumToEnumWs[deviceData.Device.OperationMode] ?? deviceData.Device.OperationMode;
143
141
  deviceData.Device.VaneHorizontalDirection = AirConditioner.VaneHorizontalDirectionMapEnumToEnumWs[deviceData.Device.VaneHorizontalDirection] ?? deviceData.Device.VaneHorizontalDirection;
@@ -106,7 +106,6 @@ class MelCloudAtw extends EventEmitter {
106
106
  }
107
107
  break;
108
108
  default:
109
- if (this.logDebug) this.emit('debug', `Incoming unknown unit id: ${parsedMessage}`);
110
109
  return;
111
110
  }
112
111
 
@@ -106,7 +106,6 @@ class MelCloudErv extends EventEmitter {
106
106
  }
107
107
  break;
108
108
  default:
109
- if (this.logDebug) this.emit('debug', `Incoming unknown unit id: ${parsedMessage}`);
110
109
  return;
111
110
  }
112
111
 
@@ -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);