homebridge-melcloud-control 3.3.21 → 3.3.23

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.3.21",
4
+ "version": "3.3.23",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -35,7 +35,7 @@
35
35
  "@homebridge/plugin-ui-utils": "^1.0.3",
36
36
  "async-mqtt": "^2.6.3",
37
37
  "axios": "^1.7.7",
38
- "express": "^4.21.0"
38
+ "express": "^4.21.1"
39
39
  },
40
40
  "keywords": [
41
41
  "homebridge",
package/src/deviceata.js CHANGED
@@ -227,10 +227,10 @@ class DeviceAta extends EventEmitter {
227
227
  const modelSupportsHeat = this.heatDryFanMode >= 1 && modelSupportsHeat1;
228
228
  const modelSupportsDry = deviceData.Device.ModelSupportsDry ?? false;
229
229
  const modelSupportsCool = this.coolDryFanMode >= 1;
230
- const minTempHeat = deviceData.Device.MinTempHeat ?? 10;
231
- const maxTempHeat = deviceData.Device.MaxTempHeat ?? 31;
232
- const minTempCoolDry = deviceData.Device.MinTempCoolDry ?? 16;
233
- const maxTempCoolDry = deviceData.Device.MaxTempCoolDry ?? 31;
230
+ const minTempHeat = 10;
231
+ const maxTempHeat = 31;
232
+ const minTempCoolDry = 16;
233
+ const maxTempCoolDry = 31;
234
234
 
235
235
  //device state
236
236
  const power = deviceData.Device.Power ?? false;
@@ -466,7 +466,6 @@ class DeviceAta extends EventEmitter {
466
466
  for (let i = 0; i < this.buttonsConfiguredCount; i++) {
467
467
  const button = this.buttonsConfigured[i];
468
468
  const mode = button.mode;
469
- let setPreviousValue = false;
470
469
  switch (mode) {
471
470
  case 0: //POWER ON,OFF
472
471
  button.state = (power === true);
package/src/deviceerv.js CHANGED
@@ -139,7 +139,7 @@ class DeviceErv extends EventEmitter {
139
139
  }
140
140
 
141
141
  //MQTT client
142
- const mqttEnabled = thi.smqtt.enable || false;
142
+ const mqttEnabled = this.mqtt.enable || false;
143
143
  if (mqttEnabled) {
144
144
  if (!this.mqttConnected) {
145
145
  this.mqtt1 = new Mqtt({
@@ -198,7 +198,7 @@ class DeviceErv extends EventEmitter {
198
198
 
199
199
  //accessory info
200
200
  this.manufacturer = manufacturer;
201
- this.model = modelIndoor ? modelIndoor : modelOutdoor ? modelOutdoor : `${deviceTypeText} ${this.deviceId}`;
201
+ this.model = modelIndoor ? modelIndoor : modelOutdoor ? modelOutdoor : `${this.deviceTypeText} ${this.deviceId}`;
202
202
  this.serialNumber = serialNumber;
203
203
  this.firmwareRevision = firmwareAppVersion;
204
204
  this.displayDeviceInfo = false;
@@ -234,10 +234,10 @@ class DeviceErv extends EventEmitter {
234
234
  const actualVentilationMode = deviceData.Device.ActualVentilationMode;
235
235
  const numberOfFanSpeeds = deviceData.Device.NumberOfFanSpeeds ?? 0;
236
236
  const temperatureIncrement = deviceData.Device.TemperatureIncrement ?? 1;
237
- const minTempHeat = deviceData.Device.MinTempHeat ?? 10;
238
- const maxTempHeat = deviceData.Device.MaxTempHeat ?? 31;
239
- const minTempCoolDry = deviceData.Device.MinTempCoolDry ?? 16;
240
- const maxTempCoolDry = deviceData.Device.MaxTempCoolDry ?? 31;
237
+ const minTempHeat = 10;
238
+ const maxTempHeat = 31;
239
+ const minTempCoolDry = 16;
240
+ const maxTempCoolDry = 31;
241
241
 
242
242
  //device state
243
243
  const power = deviceData.Device.Power ?? false;