homebridge-melcloud-control 4.0.3-beta.1 → 4.0.3-beta.2

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.3-beta.1",
4
+ "version": "4.0.3-beta.2",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -64,6 +64,11 @@ class MelCloudErv extends EventEmitter {
64
64
  if (this.accountType === 'melcloudhome') {
65
65
  deviceData.SerialNumber = deviceData.DeviceID || '4.0.0';
66
66
  deviceData.Device.FirmwareAppVersion = deviceData.ConnectedInterfaceIdentifier || '4.0.0';
67
+
68
+ //read default temps
69
+ const temps = await this.functions.readData(this.defaultTempsFile, true);
70
+ deviceData.Device.DefaultHeatingSetTemperature = temps?.defaultHeatingSetTemperature ?? 20;
71
+ deviceData.Device.DefaultCoolingSetTemperature = temps?.defaultCoolingSetTemperature ?? 24;
67
72
  }
68
73
  if (this.logDebug) this.emit('debug', `Device Data: ${JSON.stringify(deviceData, null, 2)}`);
69
74
 
@@ -97,8 +102,8 @@ class MelCloudErv extends EventEmitter {
97
102
  const setFanSpeed = device.SetFanSpeed;
98
103
  const operationMode = device.OperationMode; //0, Heat, 2, Cool, 4, 5, 6, Fan, Auto
99
104
  const ventilationMode = device.VentilationMode; //Lossnay, Bypass, Auto
100
- const defaultCoolingSetTemperature = device.DefaultCoolingSetTemperature ?? 23;
101
- const defaultHeatingSetTemperature = device.DefaultHeatingSetTemperature ?? 21;
105
+ const defaultCoolingSetTemperature = device.DefaultCoolingSetTemperature;
106
+ const defaultHeatingSetTemperature = device.DefaultHeatingSetTemperature;
102
107
  const firmwareAppVersion = device.FirmwareAppVersion;
103
108
  const isInError = device[errorKey];
104
109