homebridge-melcloud-control 3.1.4-beta.11 → 3.1.4-beta.12
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 -2
- package/src/deviceatw.js +1 -2
- package/src/deviceerv.js +1 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.1.4-beta.
|
|
4
|
+
"version": "3.1.4-beta.12",
|
|
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
|
@@ -339,7 +339,7 @@ class DeviceAta extends EventEmitter {
|
|
|
339
339
|
//update characteristics
|
|
340
340
|
if (this.melCloudService) {
|
|
341
341
|
this.melCloudService
|
|
342
|
-
.updateCharacteristic(Characteristic.Active, power)
|
|
342
|
+
.updateCharacteristic(Characteristic.Active, power ? 1 : 0)
|
|
343
343
|
.updateCharacteristic(Characteristic.CurrentHeaterCoolerState, this.accessory.currentOperationMode)
|
|
344
344
|
.updateCharacteristic(Characteristic.TargetHeaterCoolerState, this.accessory.targetOperationMode)
|
|
345
345
|
.updateCharacteristic(Characteristic.CurrentTemperature, roomTemperature)
|
|
@@ -752,7 +752,6 @@ class DeviceAta extends EventEmitter {
|
|
|
752
752
|
const info = this.disableLogInfo ? false : this.emit('message', `Set power: ${state ? 'ON' : 'OFF'}`);
|
|
753
753
|
} catch (error) {
|
|
754
754
|
this.emit('warn', `Set power error: ${error}`);
|
|
755
|
-
melCloudService.updateCharacteristic(Characteristic.Active, false)
|
|
756
755
|
};
|
|
757
756
|
});
|
|
758
757
|
this.melCloudService.getCharacteristic(Characteristic.CurrentHeaterCoolerState)
|
package/src/deviceatw.js
CHANGED
|
@@ -361,7 +361,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
361
361
|
//update characteristics
|
|
362
362
|
if (this.melCloudServices && currentOperationMode !== undefined && targetOperationMode !== undefined) {
|
|
363
363
|
this.melCloudServices[i]
|
|
364
|
-
.updateCharacteristic(Characteristic.Active, power)
|
|
364
|
+
.updateCharacteristic(Characteristic.Active, power ? 1 : 0)
|
|
365
365
|
.updateCharacteristic(Characteristic.CurrentHeaterCoolerState, currentOperationMode)
|
|
366
366
|
.updateCharacteristic(Characteristic.TargetHeaterCoolerState, targetOperationMode)
|
|
367
367
|
.updateCharacteristic(Characteristic.CurrentTemperature, roomTemperature)
|
|
@@ -883,7 +883,6 @@ class DeviceAtw extends EventEmitter {
|
|
|
883
883
|
};
|
|
884
884
|
} catch (error) {
|
|
885
885
|
this.emit('warn', `Set power error: ${error}`);
|
|
886
|
-
melCloudService.updateCharacteristic(Characteristic.Active, false)
|
|
887
886
|
};
|
|
888
887
|
});
|
|
889
888
|
melCloudService.getCharacteristic(Characteristic.CurrentHeaterCoolerState)
|
package/src/deviceerv.js
CHANGED
|
@@ -334,7 +334,7 @@ class DeviceErv extends EventEmitter {
|
|
|
334
334
|
//update characteristics
|
|
335
335
|
if (this.melCloudService) {
|
|
336
336
|
this.melCloudService
|
|
337
|
-
.updateCharacteristic(Characteristic.Active, power)
|
|
337
|
+
.updateCharacteristic(Characteristic.Active, power ? 1 : 0)
|
|
338
338
|
.updateCharacteristic(Characteristic.CurrentHeaterCoolerState, this.accessory.currentOperationMode)
|
|
339
339
|
.updateCharacteristic(Characteristic.TargetHeaterCoolerState, this.accessory.targetOperationMode)
|
|
340
340
|
.updateCharacteristic(Characteristic.CurrentTemperature, roomTemperature)
|
|
@@ -691,7 +691,6 @@ class DeviceErv extends EventEmitter {
|
|
|
691
691
|
const info = this.disableLogInfo ? false : this.emit('message', `Set power: ${state ? 'ON' : 'OFF'}`);
|
|
692
692
|
} catch (error) {
|
|
693
693
|
this.emit('warn', `Set power error: ${error}`);
|
|
694
|
-
melCloudService.updateCharacteristic(Characteristic.Active, false)
|
|
695
694
|
};
|
|
696
695
|
});
|
|
697
696
|
this.melCloudService.getCharacteristic(Characteristic.CurrentHeaterCoolerState)
|