homebridge-melcloud-control 2.3.0-beta.4 → 2.3.0-beta.5
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 +3 -2
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.5",
|
|
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
|
@@ -631,7 +631,7 @@ class DeviceAta extends EventEmitter {
|
|
|
631
631
|
switch (displayMode) {
|
|
632
632
|
case 0: //Heater Cooler
|
|
633
633
|
const debug = this.enableDebugMode ? this.emit('debug', `Prepare heather/cooler service`) : false;
|
|
634
|
-
this.melCloudService =
|
|
634
|
+
this.melCloudService = new Service.HeaterCooler(serviceName, `HeaterCooler ${deviceId}`);
|
|
635
635
|
this.melCloudService.getCharacteristic(Characteristic.Active)
|
|
636
636
|
.onGet(async () => {
|
|
637
637
|
const state = this.power;
|
|
@@ -657,7 +657,7 @@ class DeviceAta extends EventEmitter {
|
|
|
657
657
|
.setProps({
|
|
658
658
|
minValue: this.operationModeSetPropsMinValue,
|
|
659
659
|
maxValue: this.operationModeSetPropsMaxValue,
|
|
660
|
-
validValues:
|
|
660
|
+
validValues: this.operationModeSetPropsValidValues
|
|
661
661
|
})
|
|
662
662
|
.onGet(async () => {
|
|
663
663
|
const value = this.targetOperationMode; //1 = HEAT, 2 = DRY 3 = COOL, 7 = FAN, 8 = AUTO
|
|
@@ -839,6 +839,7 @@ class DeviceAta extends EventEmitter {
|
|
|
839
839
|
this.emit('warn', `Set temperature display unit error: ${error}`);
|
|
840
840
|
};
|
|
841
841
|
});
|
|
842
|
+
accessory.addService(this.melCloudService);
|
|
842
843
|
break;
|
|
843
844
|
case 1: //Thermostat
|
|
844
845
|
const debug1 = this.enableDebugMode ? this.emit('debug', `Prepare thermostat service`) : false;
|