homebridge-melcloud-control 3.3.20-beta.1 → 3.3.21-beta.0
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/deviceata.js +8 -8
- package/src/deviceerv.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -16,6 +16,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
16
16
|
- do not configure it manually, always using Config UI X
|
|
17
17
|
- required Homebridge v2.0.0 and above
|
|
18
18
|
|
|
19
|
+
## [3.3.20] - (25.09.2024)
|
|
20
|
+
|
|
21
|
+
## Changes
|
|
22
|
+
|
|
23
|
+
- fix ATA characteristics warning after plugin restart if device in DRY or FAN mode
|
|
24
|
+
- cleanup
|
|
25
|
+
|
|
19
26
|
## [3.3.19] - (25.09.2024)
|
|
20
27
|
|
|
21
28
|
## Changes
|
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.
|
|
4
|
+
"version": "3.3.21-beta.0",
|
|
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
|
@@ -296,7 +296,7 @@ class DeviceAta extends EventEmitter {
|
|
|
296
296
|
break;
|
|
297
297
|
case 2: //DRY
|
|
298
298
|
this.accessory.currentOperationMode = 1;
|
|
299
|
-
this.accessory.targetOperationMode = this.autoDryFanMode === 2 ? 0 : this.heatDryFanMode === 2 ? 1 : this.coolDryFanMode === 2 ? 2 : this.accessory.targetOperationMode;
|
|
299
|
+
this.accessory.targetOperationMode = this.autoDryFanMode === 2 ? 0 : this.heatDryFanMode === 2 ? 1 : this.coolDryFanMode === 2 ? 2 : this.accessory.targetOperationMode ?? 0;
|
|
300
300
|
break;
|
|
301
301
|
case 3: //COOL
|
|
302
302
|
this.accessory.currentOperationMode = roomTemperature < setTemperature ? 1 : 3;
|
|
@@ -304,7 +304,7 @@ class DeviceAta extends EventEmitter {
|
|
|
304
304
|
break;
|
|
305
305
|
case 7: //FAN
|
|
306
306
|
this.accessory.currentOperationMode = 1;
|
|
307
|
-
this.accessory.targetOperationMode = this.autoDryFanMode === 3 ? 0 : this.heatDryFanMode === 3 ? 1 : this.coolDryFanMode === 3 ? 2 : this.accessory.targetOperationMode;
|
|
307
|
+
this.accessory.targetOperationMode = this.autoDryFanMode === 3 ? 0 : this.heatDryFanMode === 3 ? 1 : this.coolDryFanMode === 3 ? 2 : this.accessory.targetOperationMode ?? 0;
|
|
308
308
|
break;
|
|
309
309
|
case 8: //AUTO
|
|
310
310
|
this.accessory.currentOperationMode = roomTemperature < setTemperature ? 2 : roomTemperature > setTemperature ? 3 : 1;
|
|
@@ -316,7 +316,7 @@ class DeviceAta extends EventEmitter {
|
|
|
316
316
|
break;
|
|
317
317
|
case 10: //ISEE DRY
|
|
318
318
|
this.accessory.currentOperationMode = 1;
|
|
319
|
-
this.accessory.targetOperationMode = this.autoDryFanMode === 2 ? 0 : this.heatDryFanMode === 2 ? 1 : this.coolDryFanMode === 2 ? 2 : this.accessory.targetOperationMode;
|
|
319
|
+
this.accessory.targetOperationMode = this.autoDryFanMode === 2 ? 0 : this.heatDryFanMode === 2 ? 1 : this.coolDryFanMode === 2 ? 2 : this.accessory.targetOperationMode ?? 0;
|
|
320
320
|
break;
|
|
321
321
|
case 11: //ISEE COOL;
|
|
322
322
|
this.accessory.currentOperationMode = roomTemperature < setTemperature ? 1 : 3;
|
|
@@ -381,7 +381,7 @@ class DeviceAta extends EventEmitter {
|
|
|
381
381
|
break;
|
|
382
382
|
case 2: //DRY
|
|
383
383
|
this.accessory.currentOperationMode = 0;
|
|
384
|
-
this.accessory.targetOperationMode = this.autoDryFanMode === 2 ? 3 : this.heatDryFanMode === 2 ? 1 : this.coolDryFanMode === 2 ? 2 : this.accessory.targetOperationMode;
|
|
384
|
+
this.accessory.targetOperationMode = this.autoDryFanMode === 2 ? 3 : this.heatDryFanMode === 2 ? 1 : this.coolDryFanMode === 2 ? 2 : this.accessory.targetOperationMode ?? 0;
|
|
385
385
|
break;
|
|
386
386
|
case 3: //COOL
|
|
387
387
|
this.accessory.currentOperationMode = roomTemperature < setTemperature ? 0 : 2;
|
|
@@ -389,7 +389,7 @@ class DeviceAta extends EventEmitter {
|
|
|
389
389
|
break;
|
|
390
390
|
case 7: //FAN
|
|
391
391
|
this.accessory.currentOperationMode = 0;
|
|
392
|
-
this.accessory.targetOperationMode = this.autoDryFanMode === 3 ? 3 : this.heatDryFanMode === 3 ? 1 : this.coolDryFanMode === 3 ? 2 : this.accessory.targetOperationMode;
|
|
392
|
+
this.accessory.targetOperationMode = this.autoDryFanMode === 3 ? 3 : this.heatDryFanMode === 3 ? 1 : this.coolDryFanMode === 3 ? 2 : this.accessory.targetOperationMode ?? 0;
|
|
393
393
|
break;
|
|
394
394
|
case 8: //AUTO
|
|
395
395
|
this.accessory.currentOperationMode = roomTemperature < setTemperature ? 1 : roomTemperature > setTemperature ? 2 : 0;
|
|
@@ -401,7 +401,7 @@ class DeviceAta extends EventEmitter {
|
|
|
401
401
|
break;
|
|
402
402
|
case 10: //ISEE DRY
|
|
403
403
|
this.accessory.currentOperationMode = 0;
|
|
404
|
-
this.accessory.targetOperationMode = this.autoDryFanMode === 2 ? 3 : this.heatDryFanMode === 2 ? 1 : this.coolDryFanMode === 2 ? 2 : this.accessory.targetOperationMode;
|
|
404
|
+
this.accessory.targetOperationMode = this.autoDryFanMode === 2 ? 3 : this.heatDryFanMode === 2 ? 1 : this.coolDryFanMode === 2 ? 2 : this.accessory.targetOperationMode ?? 0;
|
|
405
405
|
break;
|
|
406
406
|
case 11: //ISEE COOL;
|
|
407
407
|
this.accessory.currentOperationMode = roomTemperature < setTemperature ? 0 : 2;
|
|
@@ -785,7 +785,7 @@ class DeviceAta extends EventEmitter {
|
|
|
785
785
|
validValues: this.accessory.operationModeSetPropsValidValues
|
|
786
786
|
})
|
|
787
787
|
.onGet(async () => {
|
|
788
|
-
const value = this.accessory.targetOperationMode
|
|
788
|
+
const value = this.accessory.targetOperationMode; //1 = HEAT, 2 = DRY 3 = COOL, 7 = FAN, 8 = AUTO
|
|
789
789
|
return value;
|
|
790
790
|
})
|
|
791
791
|
.onSet(async (value) => {
|
|
@@ -961,7 +961,7 @@ class DeviceAta extends EventEmitter {
|
|
|
961
961
|
this.melCloudService = new Service.Thermostat(serviceName, `Thermostat ${deviceId}`);
|
|
962
962
|
this.melCloudService.getCharacteristic(Characteristic.CurrentHeatingCoolingState)
|
|
963
963
|
.onGet(async () => {
|
|
964
|
-
const value = this.accessory.currentOperationMode
|
|
964
|
+
const value = this.accessory.currentOperationMode;
|
|
965
965
|
return value;
|
|
966
966
|
});
|
|
967
967
|
this.melCloudService.getCharacteristic(Characteristic.TargetHeatingCoolingState)
|
package/src/deviceerv.js
CHANGED
|
@@ -717,7 +717,7 @@ class DeviceErv extends EventEmitter {
|
|
|
717
717
|
validValues: this.accessory.operationModeSetPropsValidValues
|
|
718
718
|
})
|
|
719
719
|
.onGet(async () => {
|
|
720
|
-
const value = this.accessory.targetOperationMode; //LOSSNAY, BYPASS, AUTO
|
|
720
|
+
const value = this.accessory.targetOperationMode ?? 0; //LOSSNAY, BYPASS, AUTO
|
|
721
721
|
return value;
|
|
722
722
|
})
|
|
723
723
|
.onSet(async (value) => {
|
|
@@ -877,7 +877,7 @@ class DeviceErv extends EventEmitter {
|
|
|
877
877
|
validValues: this.accessory.operationModeSetPropsValidValues
|
|
878
878
|
})
|
|
879
879
|
.onGet(async () => {
|
|
880
|
-
const value = this.accessory.targetOperationMode; //LOSSNAY, BYPASS, AUTO
|
|
880
|
+
const value = this.accessory.targetOperationMode ?? 0; //LOSSNAY, BYPASS, AUTO
|
|
881
881
|
return value;
|
|
882
882
|
})
|
|
883
883
|
.onSet(async (value) => {
|