homebridge-melcloud-control 4.5.0 → 4.5.3

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,12 @@ 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.3] - (19.12.2025)
26
+
27
+ ## Changes
28
+
29
+ - fix[#227](https://github.com/grzegorz914/homebridge-melcloud-control/issues/227)
30
+
25
31
  # [4.5.0] - (19.12.2025)
26
32
 
27
33
  ## 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.0",
4
+ "version": "4.5.3",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -79,7 +79,7 @@ class MelCloudAta extends EventEmitter {
79
79
 
80
80
  //update device settings
81
81
  for (const [key, value] of Object.entries(settings)) {
82
- if (!this.functions.isValidValue(value)) continue;
82
+ if (!this.functions.isValidValue(value) || key === 'SetTemperature') continue;
83
83
 
84
84
  if (key in deviceData.Device) {
85
85
  deviceData.Device[key] = value;
@@ -93,7 +93,7 @@ class MelCloudAta extends EventEmitter {
93
93
 
94
94
  //update device settings
95
95
  for (const [key, value] of Object.entries(settings)) {
96
- if (!this.functions.isValidValue(value)) continue;
96
+ if (!this.functions.isValidValue(value) || key === 'SetTemperature') continue;
97
97
 
98
98
  if (key in deviceData.Device) {
99
99
  deviceData.Device[key] = value;
@@ -78,7 +78,7 @@ class MelCloudAtw extends EventEmitter {
78
78
 
79
79
  //update device settings
80
80
  for (const [key, value] of Object.entries(settings)) {
81
- if (!this.functions.isValidValue(value)) continue;
81
+ if (!this.functions.isValidValue(value) || key === 'SetTemperature') continue;
82
82
 
83
83
  if (key in deviceData.Device) {
84
84
  deviceData.Device[key] = value;
@@ -78,7 +78,7 @@ class MelCloudErv extends EventEmitter {
78
78
 
79
79
  //update device settings
80
80
  for (const [key, value] of Object.entries(settings)) {
81
- if (!this.functions.isValidValue(value)) continue;
81
+ if (!this.functions.isValidValue(value) || key === 'SetTemperature') continue;
82
82
 
83
83
  if (key in deviceData.Device) {
84
84
  deviceData.Device[key] = value;
@@ -233,7 +233,7 @@ class MelCloudHome extends EventEmitter {
233
233
 
234
234
  // If path is found, use it
235
235
  if (chromiumPath) {
236
- if (!this.logDebug) this.emit('debug', `Using Chromium for ${system} (${arch}) at ${chromiumPath}`);
236
+ if (this.logDebug) this.emit('debug', `Using Chromium for ${system} (${arch}) at ${chromiumPath}`);
237
237
  } else {
238
238
  if (arch === 'arm') {
239
239
  accountInfo.Info = `No Chromium found for ${system} (${arch}). Please install it manually and try again.`;
@@ -241,7 +241,7 @@ class MelCloudHome extends EventEmitter {
241
241
  } else {
242
242
  try {
243
243
  chromiumPath = puppeteer.executablePath();
244
- if (!this.logDebug) this.emit('debug', `Using Puppeteer Chromium for ${system} (${arch}) at ${chromiumPath}`);
244
+ if (this.logDebug) this.emit('debug', `Using Puppeteer Chromium for ${system} (${arch}) at ${chromiumPath}`);
245
245
  } catch (error) {
246
246
  accountInfo.Info = `No Puppeteer Chromium for ${system} (${arch}), error: ${error.message}`;
247
247
  return accountInfo;
@@ -252,7 +252,7 @@ class MelCloudHome extends EventEmitter {
252
252
  // Verify Chromium executable
253
253
  try {
254
254
  const { stdout } = await execPromise(`"${chromiumPath}" --version`);
255
- if (!this.logDebug) this.emit('debug', `Chromium for ${system} (${arch}) detected: ${stdout.trim()}`);
255
+ if (this.logDebug) this.emit('debug', `Chromium for ${system} (${arch}) detected: ${stdout.trim()}`);
256
256
  } catch (error) {
257
257
  accountInfo.Info = `Chromium for ${system} (${arch}) found at ${chromiumPath}, but execute error: ${error.message}. Please install it manually and try again.`;
258
258
  return accountInfo;
@@ -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);