homebridge-melcloud-control 4.2.6-beta.6 → 4.2.6-beta.8
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 +1 -1
- package/src/deviceata.js +5 -5
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.
|
|
4
|
+
"version": "4.2.6-beta.8",
|
|
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,18 +1536,17 @@ 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
|
|
1543
1542
|
?.updateCharacteristic(Characteristic.Active, power)
|
|
1544
1543
|
.updateCharacteristic(Characteristic.CurrentHeaterCoolerState, obj.currentOperationMode)
|
|
1545
1544
|
.updateCharacteristic(Characteristic.TargetHeaterCoolerState, obj.targetOperationMode)
|
|
1546
|
-
.updateCharacteristic(Characteristic.CurrentTemperature,
|
|
1545
|
+
.updateCharacteristic(Characteristic.CurrentTemperature, roomTemperature)
|
|
1547
1546
|
.updateCharacteristic(Characteristic.LockPhysicalControls, obj.lockPhysicalControl)
|
|
1548
1547
|
.updateCharacteristic(Characteristic.TemperatureDisplayUnits, obj.useFahrenheit)
|
|
1549
|
-
.updateCharacteristic(Characteristic.CoolingThresholdTemperature, operationMode === 8 ?
|
|
1550
|
-
if (supportsHeat) this.melCloudService?.updateCharacteristic(Characteristic.HeatingThresholdTemperature, operationMode === 8 ?
|
|
1548
|
+
.updateCharacteristic(Characteristic.CoolingThresholdTemperature, operationMode === 8 ? defaultCoolingSetTemperature : setTemperature);
|
|
1549
|
+
if (supportsHeat) this.melCloudService?.updateCharacteristic(Characteristic.HeatingThresholdTemperature, operationMode === 8 ? defaultHeatingSetTemperature : setTemperature);
|
|
1551
1550
|
if (supportsFanSpeed) this.melCloudService?.updateCharacteristic(Characteristic.RotationSpeed, obj.currentFanSpeed);
|
|
1552
1551
|
if (supportsSwingFunction) this.melCloudService?.updateCharacteristic(Characteristic.SwingMode, obj.currentSwingMode);
|
|
1553
1552
|
break;
|
|
@@ -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, 2000));
|
|
1871
1871
|
|
|
1872
1872
|
//prepare accessory
|
|
1873
1873
|
const accessory = await this.prepareAccessory();
|