homebridge-melcloud-control 4.2.6-beta.5 → 4.2.6-beta.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/deviceata.js +2 -2
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.6-beta.5",
4
+ "version": "4.2.6-beta.7",
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
@@ -1536,7 +1536,6 @@ class DeviceAta extends EventEmitter {
1536
1536
  obj.currentFanSpeed = speeds[setFanSpeed];
1537
1537
  obj.fanSpeedSetPropsMaxValue = supportsAutomaticFanSpeed ? max + 1 : max;
1538
1538
  }
1539
- this.accessory = obj;
1540
1539
 
1541
1540
  //update characteristics
1542
1541
  this.melCloudService
@@ -1608,7 +1607,6 @@ class DeviceAta extends EventEmitter {
1608
1607
  obj.operationModeSetPropsMinValue = 0
1609
1608
  obj.operationModeSetPropsMaxValue = supportsAuto && supportsHeat ? 3 : !supportsAuto && supportsHeat ? 2 : supportsAuto && !supportsHeat ? 3 : 2;
1610
1609
  obj.operationModeSetPropsValidValues = supportsAuto && supportsHeat ? [0, 1, 2, 3] : !supportsAuto && supportsHeat ? [0, 1, 2] : supportsAuto && !supportsHeat ? [0, 2, 3] : [0, 2];
1611
- this.accessory = obj;
1612
1610
 
1613
1611
  //update characteristics
1614
1612
  this.melCloudService
@@ -1619,6 +1617,7 @@ class DeviceAta extends EventEmitter {
1619
1617
  .updateCharacteristic(Characteristic.TemperatureDisplayUnits, obj.useFahrenheit);
1620
1618
  break;
1621
1619
  };
1620
+ this.accessory = obj;
1622
1621
 
1623
1622
  //other sensors
1624
1623
  this.roomTemperatureSensorService?.updateCharacteristic(Characteristic.CurrentTemperature, roomTemperature);
@@ -1868,6 +1867,7 @@ class DeviceAta extends EventEmitter {
1868
1867
 
1869
1868
  //check state
1870
1869
  await this.melCloudAta.checkState();
1870
+ await new Promise(r => setTimeout(r, 1000));
1871
1871
 
1872
1872
  //prepare accessory
1873
1873
  const accessory = await this.prepareAccessory();