homebridge-melcloud-control 4.10.17-beta.0 → 4.10.18
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 +6 -6
- package/src/deviceata.js +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -24,6 +24,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
24
24
|
- For plugin < v4.6.0 use Homebridge UI <= v5.5.0
|
|
25
25
|
- For plugin >= v4.6.0 use Homebridge UI >= v5.13.0
|
|
26
26
|
|
|
27
|
+
## [4.10.18] - (17.06.2026)
|
|
28
|
+
|
|
29
|
+
### Changes
|
|
30
|
+
|
|
31
|
+
- fix: [#256](https://github.com/grzegorz914/homebridge-melcloud-control/issues/256)
|
|
32
|
+
- bump dependencies
|
|
33
|
+
|
|
27
34
|
## [4.10.14] - (17.06.2026)
|
|
28
35
|
|
|
29
36
|
### Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.10.
|
|
4
|
+
"version": "4.10.18",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"node": "^20 || ^22 || ^24 || ^25 || ^26"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@homebridge/plugin-ui-utils": "^2.2.
|
|
39
|
-
"mqtt": "^5.15.
|
|
40
|
-
"axios": "^1.18.
|
|
38
|
+
"@homebridge/plugin-ui-utils": "^2.2.5",
|
|
39
|
+
"mqtt": "^5.15.2",
|
|
40
|
+
"axios": "^1.18.1",
|
|
41
41
|
"axios-cookiejar-support": "^7.0.0",
|
|
42
|
-
"tough-cookie": "^6.0.
|
|
42
|
+
"tough-cookie": "^6.0.2",
|
|
43
43
|
"express": "^5.2.1",
|
|
44
|
-
"ws": "^8.21.
|
|
44
|
+
"ws": "^8.21.1"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
47
47
|
"homebridge",
|
package/src/deviceata.js
CHANGED
|
@@ -135,7 +135,7 @@ class DeviceAta extends EventEmitter {
|
|
|
135
135
|
flag = AirConditioner.EffectiveFlags.SetTemperature;
|
|
136
136
|
break;
|
|
137
137
|
case 'FanSpeed':
|
|
138
|
-
key =
|
|
138
|
+
key = 'setFanSpeed';
|
|
139
139
|
payload[key] = value;
|
|
140
140
|
flag = AirConditioner.EffectiveFlags.SetFanSpeed;
|
|
141
141
|
break;
|
|
@@ -455,25 +455,30 @@ class DeviceAta extends EventEmitter {
|
|
|
455
455
|
.onSet(async (value) => {
|
|
456
456
|
try {
|
|
457
457
|
let flag = null;
|
|
458
|
+
let power = null;
|
|
458
459
|
switch (value) {
|
|
459
460
|
case 0: //OFF - POWER OFF
|
|
461
|
+
power = false;
|
|
460
462
|
value = deviceData.Device.OperationMode;
|
|
461
463
|
break;
|
|
462
464
|
case 1: //HEAT - HEAT
|
|
465
|
+
power = true;
|
|
463
466
|
value = heatDryFanMode;
|
|
464
467
|
flag = AirConditioner.EffectiveFlags.OperationModeSetTemperature;
|
|
465
468
|
break;
|
|
466
469
|
case 2: //COOL - COOL
|
|
470
|
+
power = true;
|
|
467
471
|
value = coolDryFanMode;
|
|
468
472
|
flag = AirConditioner.EffectiveFlags.OperationModeSetTemperature
|
|
469
473
|
break;
|
|
470
474
|
case 3: //AUTO - AUTO
|
|
475
|
+
power = true;
|
|
471
476
|
value = autoDryFanMode;
|
|
472
477
|
flag = AirConditioner.EffectiveFlags.OperationModeSetTemperature;
|
|
473
478
|
break;
|
|
474
479
|
};
|
|
475
480
|
|
|
476
|
-
const payload = { power
|
|
481
|
+
const payload = { power, operationMode: value };
|
|
477
482
|
if (this.logInfo) this.emit('info', `Set operation mode: ${AirConditioner.OperationModeMapEnumToString[value]}`);
|
|
478
483
|
await this.melCloudAta.send(this.accountType, this.displayType, deviceData, payload, flag);
|
|
479
484
|
} catch (error) {
|
|
@@ -1138,7 +1143,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1138
1143
|
.onSet(async (state) => {
|
|
1139
1144
|
try {
|
|
1140
1145
|
const fanKey = accountTypeMelCloud ? 'FanSpeed' : 'SetFanSpeed';
|
|
1141
|
-
const fanKeySet =
|
|
1146
|
+
const fanKeySet = 'setFanSpeed';
|
|
1142
1147
|
let payload = {};
|
|
1143
1148
|
let flag = null;
|
|
1144
1149
|
switch (mode) {
|