homebridge-melcloud-control 3.8.4-beta.2 → 3.8.4-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 +1 -1
- package/src/deviceata.js +1 -27
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.8.4-beta.
|
|
4
|
+
"version": "3.8.4-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
|
@@ -1043,7 +1043,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1043
1043
|
swingMode: swingFunction && vaneHorizontalDirection === 12 && vaneVerticalDirection === 7 ? 1 : 0,
|
|
1044
1044
|
lockPhysicalControl: prohibitSetTemperature && prohibitOperationMode && prohibitPower ? 1 : 0,
|
|
1045
1045
|
temperatureIncrement: temperatureIncrement,
|
|
1046
|
-
temperatureUnit: TemperatureDisplayUnits[this.accessory.useFahrenheit]
|
|
1046
|
+
temperatureUnit: TemperatureDisplayUnits[this.accessory.useFahrenheit],
|
|
1047
1047
|
};
|
|
1048
1048
|
|
|
1049
1049
|
//operating mode 0, HEAT, DRY, COOL, 4, 5, 6, FAN, AUTO, ISEE HEAT, ISEE DRY, ISEE COOL
|
|
@@ -1092,32 +1092,6 @@ class DeviceAta extends EventEmitter {
|
|
|
1092
1092
|
this.accessory.operationModeSetPropsMaxValue = 2
|
|
1093
1093
|
this.accessory.operationModeSetPropsValidValues = modelSupportsAuto && modelSupportsHeat ? [0, 1, 2] : !modelSupportsAuto && modelSupportsHeat ? [1, 2] : modelSupportsAuto && !modelSupportsHeat ? [0, 2] : [2];
|
|
1094
1094
|
|
|
1095
|
-
//fan speed mode
|
|
1096
|
-
if (modelSupportsFanSpeed) {
|
|
1097
|
-
switch (numberOfFanSpeeds) {
|
|
1098
|
-
case 2: //Fan speed mode 2
|
|
1099
|
-
this.accessory.fanSpeed = hasAutomaticFanSpeed ? [3, 1, 2][fanSpeed] : [0, 1, 2][fanSpeed];
|
|
1100
|
-
this.accessory.fanSpeedSetPropsMaxValue = hasAutomaticFanSpeed ? 3 : 2;
|
|
1101
|
-
break;
|
|
1102
|
-
case 3: //Fan speed mode 3
|
|
1103
|
-
this.accessory.fanSpeed = hasAutomaticFanSpeed ? [4, 1, 2, 3][fanSpeed] : [0, 1, 2, 3][fanSpeed];
|
|
1104
|
-
this.accessory.fanSpeedSetPropsMaxValue = hasAutomaticFanSpeed ? 4 : 3;
|
|
1105
|
-
break;
|
|
1106
|
-
case 4: //Fan speed mode 4
|
|
1107
|
-
this.accessory.fanSpeed = hasAutomaticFanSpeed ? [5, 1, 2, 3, 4][fanSpeed] : [0, 1, 2, 3, 4][fanSpeed];
|
|
1108
|
-
this.accessory.fanSpeedSetPropsMaxValue = hasAutomaticFanSpeed ? 5 : 4;
|
|
1109
|
-
break;
|
|
1110
|
-
case 5: //Fan speed mode 5
|
|
1111
|
-
this.accessory.fanSpeed = hasAutomaticFanSpeed ? [6, 1, 2, 3, 4, 5][fanSpeed] : [0, 1, 2, 3, 4, 5][fanSpeed];
|
|
1112
|
-
this.accessory.fanSpeedSetPropsMaxValue = hasAutomaticFanSpeed ? 6 : 5;
|
|
1113
|
-
break;
|
|
1114
|
-
case 6: //Fan speed mode 6
|
|
1115
|
-
this.accessory.fanSpeed = hasAutomaticFanSpeed ? [7, 1, 2, 3, 4, 5, 6][fanSpeed] : [0, 1, 2, 3, 4, 5, 6][fanSpeed];
|
|
1116
|
-
this.accessory.fanSpeedSetPropsMaxValue = hasAutomaticFanSpeed ? 7 : 6;
|
|
1117
|
-
break;
|
|
1118
|
-
};
|
|
1119
|
-
};
|
|
1120
|
-
|
|
1121
1095
|
//update characteristics
|
|
1122
1096
|
if (this.melCloudService) {
|
|
1123
1097
|
this.melCloudService
|