homebridge-melcloud-control 4.10.20-beta.6 → 4.10.20-beta.7
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/melcloudata.js +0 -12
- package/src/melclouderv.js +0 -12
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.20-beta.
|
|
4
|
+
"version": "4.10.20-beta.7",
|
|
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/melcloudata.js
CHANGED
|
@@ -211,12 +211,6 @@ class MelCloudAta extends EventEmitter {
|
|
|
211
211
|
//compare against the API wrapper's own live-polled state, not the caller's closure-captured (possibly stale) deviceData
|
|
212
212
|
const changes = this.functions.filterChanges(payload, this.deviceData.Device);
|
|
213
213
|
|
|
214
|
-
//Apple Home always resends its own remembered (non-zero) fan speed together with Active when powering on from off
|
|
215
|
-
//Auto (0) can't be represented on that dial, so ignore this phantom value while the unit is off and currently in Auto
|
|
216
|
-
if (changes.setFanSpeed !== undefined && changes.setFanSpeed !== 0 && this.deviceData.Device.Power === false && this.deviceData.Device.SetFanSpeed === 0) {
|
|
217
|
-
delete changes.setFanSpeed;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
214
|
if (Object.keys(changes).length === 0) {
|
|
221
215
|
if (this.logDebug) this.emit('debug', `Ignore send, no changes: ${JSON.stringify(payload)}`);
|
|
222
216
|
return true;
|
|
@@ -319,12 +313,6 @@ class MelCloudAta extends EventEmitter {
|
|
|
319
313
|
//compare against the API wrapper's own live-polled state, not the caller's closure-captured (possibly stale) deviceData
|
|
320
314
|
const changes = this.functions.filterChanges(payload, this.deviceData.Device);
|
|
321
315
|
|
|
322
|
-
//Apple Home always resends its own remembered (non-zero) fan speed together with Active when powering on from off
|
|
323
|
-
//Auto (0) can't be represented on that dial, so ignore this phantom value while the unit is off and currently in Auto
|
|
324
|
-
if (changes.setFanSpeed !== undefined && changes.setFanSpeed !== 0 && this.deviceData.Device.Power === false && this.deviceData.Device.SetFanSpeed === 0) {
|
|
325
|
-
delete changes.setFanSpeed;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
316
|
if (Object.keys(changes).length === 0) {
|
|
329
317
|
if (this.logDebug) this.emit('debug', `Ignore send, no changes: ${JSON.stringify(payload)}`);
|
|
330
318
|
return true;
|
package/src/melclouderv.js
CHANGED
|
@@ -186,12 +186,6 @@ class MelCloudErv extends EventEmitter {
|
|
|
186
186
|
//compare against the API wrapper's own live-polled state, not the caller's closure-captured (possibly stale) deviceData
|
|
187
187
|
const changes = this.functions.filterChanges(payload, this.deviceData.Device);
|
|
188
188
|
|
|
189
|
-
//Apple Home always resends its own remembered (non-zero) fan speed together with Active when powering on from off
|
|
190
|
-
//Auto (0) can't be represented on that dial, so ignore this phantom value while the unit is off and currently in Auto
|
|
191
|
-
if (changes.setFanSpeed !== undefined && changes.setFanSpeed !== 0 && this.deviceData.Device.Power === false && this.deviceData.Device.SetFanSpeed === 0) {
|
|
192
|
-
delete changes.setFanSpeed;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
189
|
if (Object.keys(changes).length === 0) {
|
|
196
190
|
if (this.logDebug) this.emit('debug', `Ignore send, no changes: ${JSON.stringify(payload)}`);
|
|
197
191
|
return true;
|
|
@@ -284,12 +278,6 @@ class MelCloudErv extends EventEmitter {
|
|
|
284
278
|
//compare against the API wrapper's own live-polled state, not the caller's closure-captured (possibly stale) deviceData
|
|
285
279
|
const changes = this.functions.filterChanges(payload, this.deviceData.Device);
|
|
286
280
|
|
|
287
|
-
//Apple Home always resends its own remembered (non-zero) fan speed together with Active when powering on from off
|
|
288
|
-
//Auto (0) can't be represented on that dial, so ignore this phantom value while the unit is off and currently in Auto
|
|
289
|
-
if (changes.setFanSpeed !== undefined && changes.setFanSpeed !== 0 && this.deviceData.Device.Power === false && this.deviceData.Device.SetFanSpeed === 0) {
|
|
290
|
-
delete changes.setFanSpeed;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
281
|
if (Object.keys(changes).length === 0) {
|
|
294
282
|
if (this.logDebug) this.emit('debug', `Ignore send, no changes: ${JSON.stringify(payload)}`);
|
|
295
283
|
return true;
|