homebridge-melcloud-control 4.7.6-beta.1 → 4.7.6-beta.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.7.6-beta.1",
4
+ "version": "4.7.6-beta.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",
package/src/deviceata.js CHANGED
@@ -2035,7 +2035,7 @@ class DeviceAta extends EventEmitter {
2035
2035
  if (this.restFul.enable || this.mqtt.enable) await this.externalIntegrations();
2036
2036
 
2037
2037
  //check state
2038
- await this.melCloudAta.updateState(this.melcloudDevice);
2038
+ await this.melCloudAta.updateState('request', this.melcloudDevice);
2039
2039
 
2040
2040
  //prepare accessory
2041
2041
  const accessory = await this.prepareAccessory();
package/src/deviceatw.js CHANGED
@@ -2588,7 +2588,7 @@ class DeviceAtw extends EventEmitter {
2588
2588
  if (this.restFul.enable || this.mqtt.enable) await this.externalIntegrations();
2589
2589
 
2590
2590
  //check state
2591
- await this.melCloudAtw.updateState(this.melcloudDevice);
2591
+ await this.melCloudAtw.updateState('request', this.melcloudDevice);
2592
2592
 
2593
2593
  //prepare accessory
2594
2594
  const accessory = await this.prepareAccessory();
package/src/deviceerv.js CHANGED
@@ -1582,7 +1582,7 @@ class DeviceErv extends EventEmitter {
1582
1582
  if (this.restFul.enable || this.mqtt.enable) await this.externalIntegrations();
1583
1583
 
1584
1584
  //check state
1585
- await this.melCloudErv.updateState(this.melcloudDevice);
1585
+ await this.melCloudErv.updateState('request', this.melcloudDevice);
1586
1586
 
1587
1587
  //prepare accessory
1588
1588
  const accessory = await this.prepareAccessory();
@@ -244,7 +244,7 @@ class MelCloudAta extends EventEmitter {
244
244
 
245
245
  if (update) {
246
246
  setTimeout(() => {
247
- this.emit('deviceState', deviceData);
247
+ this.updateState('request', deviceData);
248
248
  }, 500);
249
249
  }
250
250
  return true;
@@ -326,7 +326,7 @@ class MelCloudAta extends EventEmitter {
326
326
 
327
327
  if (update) {
328
328
  setTimeout(() => {
329
- this.emit('deviceState', deviceData);
329
+ this.updateState('request', deviceData);
330
330
  }, 500);
331
331
  }
332
332
  return true;
@@ -221,7 +221,7 @@ class MelCloudAtw extends EventEmitter {
221
221
 
222
222
  if (update) {
223
223
  setTimeout(() => {
224
- this.emit('deviceState', deviceData);
224
+ this.updateState('request', deviceData);
225
225
  }, 500);
226
226
  }
227
227
  return true;
@@ -281,7 +281,7 @@ class MelCloudAtw extends EventEmitter {
281
281
 
282
282
  if (update) {
283
283
  setTimeout(() => {
284
- this.emit('deviceState', deviceData);
284
+ this.updateState('request', deviceData);
285
285
  }, 500);
286
286
  }
287
287
  return true;
@@ -236,9 +236,9 @@ class MelCloudErv extends EventEmitter {
236
236
 
237
237
  if (update) {
238
238
  setTimeout(() => {
239
- this.emit('deviceState', deviceData);
239
+ this.updateState('request', deviceData);
240
240
  }, 500);
241
- } this.emit('deviceState', deviceData);
241
+ }
242
242
  return true;
243
243
  case "melcloudhome":
244
244
  switch (flag) {
@@ -292,7 +292,7 @@ class MelCloudErv extends EventEmitter {
292
292
 
293
293
  if (update) {
294
294
  setTimeout(() => {
295
- this.emit('deviceState', deviceData);
295
+ this.updateState('request', deviceData);
296
296
  }, 500);
297
297
  }
298
298
  return true;