homebridge-melcloud-control 3.3.12-beta.21 → 3.3.12-beta.23
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 -49
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.3.12-beta.
|
|
4
|
+
"version": "3.3.12-beta.23",
|
|
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
|
@@ -306,7 +306,7 @@ class DeviceAta extends EventEmitter {
|
|
|
306
306
|
this.accessory.targetOperationMode = this.autoDryFanMode === 3 ? 0 : this.heatDryFanMode === 3 ? 1 : this.coolDryFanMode === 3 ? 2 : this.accessory.targetOperationMode;
|
|
307
307
|
break;
|
|
308
308
|
case 8: //AUTO
|
|
309
|
-
this.accessory.currentOperationMode =
|
|
309
|
+
this.accessory.currentOperationMode = 1;
|
|
310
310
|
this.accessory.targetOperationMode = 0;
|
|
311
311
|
break;
|
|
312
312
|
case 9: //ISEE HEAT
|
|
@@ -456,8 +456,6 @@ class DeviceAta extends EventEmitter {
|
|
|
456
456
|
.updateCharacteristic(Characteristic.CurrentTemperature, roomTemperature)
|
|
457
457
|
.updateCharacteristic(Characteristic.TargetTemperature, setTemperature)
|
|
458
458
|
.updateCharacteristic(Characteristic.TemperatureDisplayUnits, this.accessory.useFahrenheit);
|
|
459
|
-
const updateDefHeat = modelSupportsAuto && modelSupportsHeat ? this.melCloudService.updateCharacteristic(Characteristic.HeatingThresholdTemperature, defaultHeatingSetTemperature) : false;
|
|
460
|
-
const updateDefCool = modelSupportsAuto && modelSupportsCool ? this.melCloudService.updateCharacteristic(Characteristic.CoolingThresholdTemperature, defaultCoolingSetTemperature) : false;
|
|
461
459
|
};
|
|
462
460
|
break;
|
|
463
461
|
};
|
|
@@ -1066,52 +1064,6 @@ class DeviceAta extends EventEmitter {
|
|
|
1066
1064
|
this.emit('warn', `Set temperature error: ${error}`);
|
|
1067
1065
|
};
|
|
1068
1066
|
});
|
|
1069
|
-
if (modelSupportsAuto) {
|
|
1070
|
-
if (modelSupportsHeat) {
|
|
1071
|
-
this.melCloudService.getCharacteristic(Characteristic.HeatingThresholdTemperature)
|
|
1072
|
-
.setProps({
|
|
1073
|
-
minValue: 10,
|
|
1074
|
-
maxValue: 31,
|
|
1075
|
-
minStep: this.accessory.temperatureIncrement
|
|
1076
|
-
})
|
|
1077
|
-
.onGet(async () => {
|
|
1078
|
-
const value = this.accessory.defaultHeatingSetTemperature;
|
|
1079
|
-
return value;
|
|
1080
|
-
})
|
|
1081
|
-
.onSet(async (value) => {
|
|
1082
|
-
try {
|
|
1083
|
-
deviceData.Device.DefaultHeatingSetTemperature = value;
|
|
1084
|
-
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.SetTemperature;
|
|
1085
|
-
await this.melCloudAta.send(deviceData);
|
|
1086
|
-
const info = this.disableLogInfo ? false : this.emit('message', `Set heating threshold temperature: ${value}${this.accessory.temperatureUnit}`);
|
|
1087
|
-
} catch (error) {
|
|
1088
|
-
this.emit('warn', `Set heating threshold temperature error: ${error}`);
|
|
1089
|
-
};
|
|
1090
|
-
});
|
|
1091
|
-
};
|
|
1092
|
-
if (modelSupportsCool) {
|
|
1093
|
-
this.melCloudService.getCharacteristic(Characteristic.CoolingThresholdTemperature)
|
|
1094
|
-
.setProps({
|
|
1095
|
-
minValue: 16,
|
|
1096
|
-
maxValue: 31,
|
|
1097
|
-
minStep: this.accessory.temperatureIncrement
|
|
1098
|
-
})
|
|
1099
|
-
.onGet(async () => {
|
|
1100
|
-
const value = this.accessory.defaultCoolingSetTemperature;
|
|
1101
|
-
return value;
|
|
1102
|
-
})
|
|
1103
|
-
.onSet(async (value) => {
|
|
1104
|
-
try {
|
|
1105
|
-
deviceData.Device.DefaultCoolingSetTemperature = value;
|
|
1106
|
-
deviceData.Device.EffectiveFlags = CONSTANTS.AirConditioner.EffectiveFlags.SetTemperature;
|
|
1107
|
-
await this.melCloudAta.send(deviceData);
|
|
1108
|
-
const info = this.disableLogInfo ? false : this.emit('message', `Set cooling threshold temperature: ${value}${this.accessory.temperatureUnit}`);
|
|
1109
|
-
} catch (error) {
|
|
1110
|
-
this.emit('warn', `Set cooling threshold temperature error: ${error}`);
|
|
1111
|
-
};
|
|
1112
|
-
});
|
|
1113
|
-
};
|
|
1114
|
-
};
|
|
1115
1067
|
this.melCloudService.getCharacteristic(Characteristic.TemperatureDisplayUnits)
|
|
1116
1068
|
.onGet(async () => {
|
|
1117
1069
|
const value = this.accessory.useFahrenheit;
|