homebridge-melcloud-control 4.2.5-beta.23 → 4.2.5-beta.25

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,16 @@ 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.2.5] - (16.11.2025)
26
+
27
+ ## Changes
28
+
29
+ - fix device control stop working after some time
30
+ - stability and performance improvements
31
+ - config schema updated
32
+ - readme updated
33
+ - cleanup
34
+
25
35
  ## [4.2.3] - (15.11.2025)
26
36
 
27
37
  ## 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.2.5-beta.23",
4
+ "version": "4.2.5-beta.25",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -257,24 +257,26 @@ class MelCloudAta extends EventEmitter {
257
257
  headers: this.headers,
258
258
  data: payload
259
259
  });
260
+
261
+ this.lock = true;
260
262
  this.updateData(deviceData);
261
263
  return true;
262
264
  default:
263
265
  return;
264
266
  }
265
267
  } catch (error) {
268
+ this.lock = false;
266
269
  if (error.response?.status === 500) return true; // Return 500 for schedule hovewer working correct
267
270
  throw new Error(`Send data error: ${error.message}`);
268
271
  }
269
272
  }
270
273
 
271
274
  updateData(deviceData) {
272
- this.lock = true;
273
275
  this.emit('deviceState', deviceData);
274
276
 
275
277
  setTimeout(() => {
276
278
  this.lock = false
277
- }, 2500);
279
+ }, 5000);
278
280
  }
279
281
  };
280
282
  export default MelCloudAta;
@@ -251,7 +251,7 @@ class MelCloudAtw extends EventEmitter {
251
251
 
252
252
  setTimeout(() => {
253
253
  this.lock = false
254
- }, 2500);
254
+ }, 5000);
255
255
  }
256
256
  };
257
257
  export default MelCloudAtw;
@@ -258,7 +258,7 @@ class MelCloudErv extends EventEmitter {
258
258
 
259
259
  setTimeout(() => {
260
260
  this.lock = false
261
- }, 2500);
261
+ }, 5000);
262
262
  }
263
263
  };
264
264
  export default MelCloudErv;