homebridge-melcloud-control 4.10.19 → 4.10.20-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/package.json +2 -2
- package/src/deviceata.js +6 -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.10.
|
|
4
|
+
"version": "4.10.20-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",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@homebridge/plugin-ui-utils": "^2.2.6",
|
|
39
|
-
"mqtt": "^5.
|
|
39
|
+
"mqtt": "^5.16.0",
|
|
40
40
|
"axios": "^1.20.0",
|
|
41
41
|
"axios-cookiejar-support": "^7.0.0",
|
|
42
42
|
"tough-cookie": "^6.0.2",
|
package/src/deviceata.js
CHANGED
|
@@ -316,6 +316,12 @@ class DeviceAta extends EventEmitter {
|
|
|
316
316
|
})
|
|
317
317
|
.onSet(async (value) => {
|
|
318
318
|
try {
|
|
319
|
+
//ignore fan speed pushed by Apple Home together with powering the unit on from off, it's the dial's rest position, not user intent
|
|
320
|
+
if (!this.accessory.power) {
|
|
321
|
+
if (this.logDebug) this.emit('debug', `Ignore set fan speed while unit is off: ${value}`);
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
|
|
319
325
|
const max = numberOfFanSpeeds;
|
|
320
326
|
const minValue = supportsAutomaticFanSpeed ? 0 : 1;
|
|
321
327
|
const clampedValue = Math.min(Math.max(value, minValue), max);
|