homebridge-melcloud-control 4.0.0-beta.194 → 4.0.0-beta.195

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.0.0-beta.194",
4
+ "version": "4.0.0-beta.195",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -289,14 +289,6 @@ class MelCloudAta extends EventEmitter {
289
289
  return;
290
290
  };
291
291
 
292
- if (this.deviceState.DefaultCoolingSetTemperature !== deviceData.Device.DefaultCoolingSetTemperature || this.deviceState.DefaultHeatingSetTemperature !== deviceData.Device.DefaultHeatingSetTemperature) {
293
- const temps = {
294
- defaultCoolingSetTemperature: deviceData.Device.DefaultCoolingSetTemperature,
295
- defaultHeatingSetTemperature: deviceData.Device.DefaultHeatingSetTemperature
296
- };
297
- await this.functions.saveData(this.defaultTempsFile, temps);
298
- }
299
-
300
292
  break
301
293
  case 2: //Thermostat
302
294
  deviceData.Device.SetTemperature = deviceData.Device.SetTemperature;
@@ -306,6 +298,15 @@ class MelCloudAta extends EventEmitter {
306
298
  return;
307
299
  };
308
300
 
301
+ if (this.deviceState.SetTemperature !== deviceData.Device.SetTemperature || this.deviceState.DefaultCoolingSetTemperature !== deviceData.Device.DefaultCoolingSetTemperature || this.deviceState.DefaultHeatingSetTemperature !== deviceData.Device.DefaultHeatingSetTemperature) {
302
+ const temps = {
303
+ setTemperature: deviceData.Device.SetTemperature,
304
+ defaultCoolingSetTemperature: deviceData.Device.DefaultCoolingSetTemperature,
305
+ defaultHeatingSetTemperature: deviceData.Device.DefaultHeatingSetTemperature
306
+ };
307
+ await this.functions.saveData(this.defaultTempsFile, temps);
308
+ }
309
+
309
310
  const settings = {
310
311
  data: {
311
312
  Power: deviceData.Device.Power,