homebridge-melcloud-control 3.8.4-beta.7 → 3.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.8.4-beta.7",
4
+ "version": "3.8.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
@@ -1091,7 +1091,6 @@ class DeviceAta extends EventEmitter {
1091
1091
  };
1092
1092
 
1093
1093
  obj.currentOperationMode = !power ? 0 : inStandbyMode ? 1 : obj.currentOperationMode;
1094
- obj.targetOperationMode = obj.targetOperationMode;
1095
1094
  obj.operationModeSetPropsMinValue = modelSupportsAuto && modelSupportsHeat ? 0 : !modelSupportsAuto && modelSupportsHeat ? 1 : modelSupportsAuto && !modelSupportsHeat ? 0 : 2;
1096
1095
  obj.operationModeSetPropsMaxValue = 2
1097
1096
  obj.operationModeSetPropsValidValues = modelSupportsAuto && modelSupportsHeat ? [0, 1, 2] : !modelSupportsAuto && modelSupportsHeat ? [1, 2] : modelSupportsAuto && !modelSupportsHeat ? [0, 2] : [2];
@@ -336,6 +336,7 @@ class MelCloudAta extends EventEmitter {
336
336
  //check state changes
337
337
  const deviceDataHasNotChanged = JSON.stringify(deviceState) === JSON.stringify(this.deviceState);
338
338
  if (deviceDataHasNotChanged) {
339
+ const debug = this.enableDebugMode ? this.emit('debug', `Device state not changed`) : false;
339
340
  return;
340
341
  }
341
342
  this.deviceState = deviceState;
@@ -400,6 +400,7 @@ class MelCloudAtw extends EventEmitter {
400
400
  //check state changes
401
401
  const deviceDataHasNotChanged = JSON.stringify(deviceState) === JSON.stringify(this.deviceState);
402
402
  if (deviceDataHasNotChanged) {
403
+ const debug = this.enableDebugMode ? this.emit('debug', `Device state not changed`) : false;
403
404
  return;
404
405
  }
405
406
  this.deviceState = deviceState;
@@ -324,6 +324,7 @@ class MelCloudErv extends EventEmitter {
324
324
  //check state changes
325
325
  const deviceDataHasNotChanged = JSON.stringify(deviceState) === JSON.stringify(this.deviceState);
326
326
  if (deviceDataHasNotChanged) {
327
+ const debug = this.enableDebugMode ? this.emit('debug', `Device state not changed`) : false;
327
328
  return;
328
329
  }
329
330
  this.deviceState = deviceState;