homebridge-melcloud-control 4.4.0-beta.2 → 4.4.0-beta.4
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 -1
- package/src/melcloudata.js +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.4.0-beta.
|
|
4
|
+
"version": "4.4.0-beta.4",
|
|
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
|
@@ -759,6 +759,7 @@ class DeviceAta extends EventEmitter {
|
|
|
759
759
|
.onSet(async (value) => {
|
|
760
760
|
try {
|
|
761
761
|
let { min, max } = await this.functions.normalizeFrostProtection(deviceData.FrostProtection.Min, value);
|
|
762
|
+
deviceData.FrostProtection.Min = min;
|
|
762
763
|
deviceData.FrostProtection.Max = max;
|
|
763
764
|
if (this.logInfo) this.emit('info', `Set frost protection max. temperature: ${max}${this.accessory.temperatureUnit}`);
|
|
764
765
|
await this.melCloudAta.send(this.accountType, this.displayType, deviceData, 'frostprotection');
|
|
@@ -780,7 +781,7 @@ class DeviceAta extends EventEmitter {
|
|
|
780
781
|
try {
|
|
781
782
|
let { min, max } = await this.functions.normalizeFrostProtection(value, deviceData.FrostProtection.Max);
|
|
782
783
|
deviceData.FrostProtection.Min = min;
|
|
783
|
-
;
|
|
784
|
+
deviceData.FrostProtection.Max = max;
|
|
784
785
|
if (this.logInfo) this.emit('info', `Set frost protection min. temperature: ${min}${this.accessory.temperatureUnit}`);
|
|
785
786
|
await this.melCloudAta.send(this.accountType, this.displayType, deviceData, 'frostprotection');
|
|
786
787
|
} catch (error) {
|
|
@@ -877,6 +878,7 @@ class DeviceAta extends EventEmitter {
|
|
|
877
878
|
.onSet(async (value) => {
|
|
878
879
|
try {
|
|
879
880
|
let { min, max } = await this.functions.normalizeOverheatProtection(deviceData.OverheatProtection.Min, value);
|
|
881
|
+
deviceData.OverheatProtection.Min = min;
|
|
880
882
|
deviceData.OverheatProtection.Max = max;
|
|
881
883
|
if (this.logInfo) this.emit('info', `Set overheat protection max. temperature: ${max}${this.accessory.temperatureUnit}`);
|
|
882
884
|
await this.melCloudAta.send(this.accountType, this.displayType, deviceData, 'overheatprotection');
|
|
@@ -898,6 +900,7 @@ class DeviceAta extends EventEmitter {
|
|
|
898
900
|
try {
|
|
899
901
|
let { min, max } = await this.functions.normalizeOverheatProtection(value, deviceData.OverheatProtection.Max);
|
|
900
902
|
deviceData.OverheatProtection.Min = min;
|
|
903
|
+
deviceData.OverheatProtection.Max = max;
|
|
901
904
|
if (this.logInfo) this.emit('info', `Set overheat protection min. temperature: ${min}${this.accessory.temperatureUnit}`);
|
|
902
905
|
await this.melCloudAta.send(this.accountType, this.displayType, deviceData, 'overheatprotection');
|
|
903
906
|
} catch (error) {
|
package/src/melcloudata.js
CHANGED
|
@@ -309,6 +309,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
309
309
|
//send payload
|
|
310
310
|
if (this.logDebug) this.emit('debug', `Send data: ${JSON.stringify(payload, null, 2)}`);
|
|
311
311
|
await this.client(path, { method: method, data: payload });
|
|
312
|
+
await this.updateState(null, deviceData);
|
|
312
313
|
|
|
313
314
|
return true;
|
|
314
315
|
default:
|