homebridge-melcloud-control 4.0.0-beta.183 → 4.0.0-beta.185

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.183",
4
+ "version": "4.0.0-beta.185",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -264,6 +264,7 @@ class MelCloudAta extends EventEmitter {
264
264
  });
265
265
 
266
266
  // Calculate temp
267
+ this.emit('warn', JSON.stringify(deviceData, null, 2));
267
268
  switch (displayMode) {
268
269
  case 1: //Heather/Cooler
269
270
  switch (deviceData.Device.OperationMode) {
@@ -285,10 +286,16 @@ class MelCloudAta extends EventEmitter {
285
286
  this.defaultCoolingSetTemperature = deviceData.Device.DefaultCoolingSetTemperature;
286
287
  this.defaultHeatingSetTemperature = deviceData.Device.DefaultHeatingSetTemperature;
287
288
  break;
289
+ default:
290
+ if (this.logWarn) this.emit('warn', `Unknown operation mode: ${deviceData.Device.OperationMode}`);
291
+ break;
288
292
  };
289
293
  case 2: //Thermostat
290
294
  deviceData.Device.SetTemperature = deviceData.Device.SetTemperature;
291
295
  break;
296
+ default:
297
+ if (this.logWarn) this.emit('warn', `Unknown display mode: ${displayMode}`);
298
+ break;
292
299
  };
293
300
 
294
301
  // Convert values to strings
@@ -308,7 +315,6 @@ class MelCloudAta extends EventEmitter {
308
315
  }
309
316
  };
310
317
 
311
- this.emit('warn', JSON.stringify(deviceData, null, 2));
312
318
  this.emit('warn', JSON.stringify(settings, null, 2));
313
319
 
314
320
  const path = ApiUrlsHome.SetAta.replace('deviceid', deviceData.DeviceID);