homebridge-melcloud-control 2.3.0-beta.17 → 2.3.0-beta.19
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 +4 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "2.3.0-beta.
|
|
4
|
+
"version": "2.3.0-beta.19",
|
|
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
|
@@ -629,10 +629,8 @@ class DeviceAta extends EventEmitter {
|
|
|
629
629
|
|
|
630
630
|
switch (displayMode) {
|
|
631
631
|
case 0: //Heater Cooler
|
|
632
|
-
const debug = this.enableDebugMode ? this.emit('debug', `Prepare
|
|
632
|
+
const debug = this.enableDebugMode ? this.emit('debug', `Prepare heater/cooler service`) : false;
|
|
633
633
|
this.melCloudService = new Service.HeaterCooler(serviceName, `HeaterCooler ${deviceId}`);
|
|
634
|
-
this.melCloudService.removeCharacteristic(Characteristic.TargetHeaterCoolerState);
|
|
635
|
-
this.melCloudService.addCharacteristic(Characteristic.CustomTargetHeaterCoolerState);
|
|
636
634
|
this.melCloudService.getCharacteristic(Characteristic.Active)
|
|
637
635
|
.onGet(async () => {
|
|
638
636
|
const state = this.power;
|
|
@@ -654,7 +652,8 @@ class DeviceAta extends EventEmitter {
|
|
|
654
652
|
const value = this.currentOperationMode;
|
|
655
653
|
return value;
|
|
656
654
|
});
|
|
657
|
-
|
|
655
|
+
this.melCloudService.removeCharacteristic(Characteristic.TargetHeaterCoolerState)
|
|
656
|
+
this.melCloudService.addCharacteristic(Characteristic.CustomTargetHeaterCoolerState)
|
|
658
657
|
.setProps({
|
|
659
658
|
minValue: this.operationModeSetPropsMinValue,
|
|
660
659
|
maxValue: this.operationModeSetPropsMaxValue,
|
|
@@ -840,7 +839,7 @@ class DeviceAta extends EventEmitter {
|
|
|
840
839
|
this.emit('warn', `Set temperature display unit error: ${error}`);
|
|
841
840
|
};
|
|
842
841
|
});
|
|
843
|
-
|
|
842
|
+
accessory.addService(this.melCloudService);
|
|
844
843
|
break;
|
|
845
844
|
case 1: //Thermostat
|
|
846
845
|
const debug1 = this.enableDebugMode ? this.emit('debug', `Prepare thermostat service`) : false;
|