homebridge-melcloud-control 4.2.3-beta.10 → 4.2.3-beta.12

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": "4.2.3-beta.10",
4
+ "version": "4.2.3-beta.12",
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
@@ -334,8 +334,6 @@ class DeviceAta extends EventEmitter {
334
334
  return state;
335
335
  })
336
336
  .onSet(async (state) => {
337
- if (!!state === this.accessory.power) return;
338
-
339
337
  try {
340
338
  deviceData.Device.Power = state ? true : false;
341
339
  await this.melCloudAta.send(this.accountType, this.displayType, deviceData, AirConditioner.EffectiveFlags.Power);
package/src/deviceatw.js CHANGED
@@ -340,8 +340,6 @@ class DeviceAtw extends EventEmitter {
340
340
  return state;
341
341
  })
342
342
  .onSet(async (state) => {
343
- if (!!state === this.accessory.power) return;
344
-
345
343
  try {
346
344
  switch (i) {
347
345
  case 0: //Heat Pump
package/src/deviceerv.js CHANGED
@@ -305,8 +305,6 @@ class DeviceErv extends EventEmitter {
305
305
  return state;
306
306
  })
307
307
  .onSet(async (state) => {
308
- if (!!state === this.accessory.power) return;
309
-
310
308
  try {
311
309
  deviceData.Device.Power = state ? true : false;
312
310
  await this.melCloudErv.send(this.accountType, this.displayType, deviceData, Ventilation.EffectiveFlags.Power);
@@ -112,11 +112,6 @@ class MelCloudAta extends EventEmitter {
112
112
  this.emit('mqtt', 'State', deviceData.Device);
113
113
  }
114
114
 
115
- //check state changes
116
- const deviceDataHasNotChanged = JSON.stringify(deviceData) === JSON.stringify(this.deviceData);
117
- if (deviceDataHasNotChanged) return;
118
- this.deviceData = deviceData;
119
-
120
115
  //emit info
121
116
  this.emit('deviceInfo', manufacturer, indoor.model, outdoor.model, serialNumber, firmwareAppVersion);
122
117
 
@@ -103,11 +103,6 @@ class MelCloudAtw extends EventEmitter {
103
103
  this.emit('mqtt', 'State', deviceData.Device);
104
104
  }
105
105
 
106
- //check state changes
107
- const deviceDataHasNotChanged = JSON.stringify(devicesData) === JSON.stringify(this.devicesData);
108
- if (deviceDataHasNotChanged) return;
109
- this.devicesData = devicesData;
110
-
111
106
  //emit info
112
107
  this.emit('deviceInfo', manufacturer, indoor.model, outdoor.model, serialNumber, firmwareAppVersion, hasHotWaterTank, hasZone2);
113
108
 
@@ -106,11 +106,6 @@ class MelCloudErv extends EventEmitter {
106
106
  this.emit('mqtt', 'State', deviceData.Device);
107
107
  }
108
108
 
109
- //check state changes
110
- const deviceDataHasNotChanged = JSON.stringify(devicesData) === JSON.stringify(this.devicesData);
111
- if (deviceDataHasNotChanged) return;
112
- this.devicesData = devicesData;
113
-
114
109
  //emit info
115
110
  this.emit('deviceInfo', manufacturer, indoor.model, outdoor.model, serialNumber, firmwareAppVersion);
116
111