homebridge-melcloud-control 2.3.0-beta.0 → 2.3.0-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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/deviceata.js +6 -8
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "2.3.0-beta.0",
4
+ "version": "2.3.0-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",
package/src/deviceata.js CHANGED
@@ -21,10 +21,8 @@ class DeviceAta extends EventEmitter {
21
21
  this.temperatureSensor = account.ataTemperatureSensor || false;
22
22
  this.temperatureSensorOutdoor = account.ataTemperatureSensorOutdoor || false;
23
23
  this.presetsEnabled = account.ataPresets || false;
24
- this.disableAutoMode = account.ataDisableAutoMode || false;
25
- this.disableHeatMode = account.ataDisableHeatMode || false;
26
- this.heatDryFanMode = account.ataHeatDryFanMode || 0; //NONE, HEAT, DRY, FAN
27
- this.autoDryFanMode = account.ataAutoDryFanMode || 0; //NONE, AUTO, DRY, FAN
24
+ this.heatDryFanMode = account.ataHeatDryFanMode || 1; //NONE, HEAT, DRY, FAN
25
+ this.autoDryFanMode = account.ataAutoDryFanMode || 1; //NONE, AUTO, DRY, FAN
28
26
  this.buttons = account.ataButtons || [];
29
27
  this.disableLogInfo = account.disableLogInfo || false;
30
28
  this.disableLogDeviceInfo = account.disableLogDeviceInfo || false;
@@ -171,9 +169,9 @@ class DeviceAta extends EventEmitter {
171
169
  const numberOfFanSpeeds = deviceData.Device.NumberOfFanSpeeds ?? 0;
172
170
  const modelSupportsFanSpeed = deviceData.Device.ModelSupportsFanSpeed ?? false;
173
171
  const modelSupportsHeat1 = deviceData.Device.ModelSupportsHeat ?? false;
174
- const modelSupportsHeat = this.heatMode >= 1 && modelSupportsHeat1;
172
+ const modelSupportsHeat = this.heatDryFanMode >= 1 && modelSupportsHeat1;
175
173
  const modelSupportsAuto1 = deviceData.Device.ModelSupportsAuto ?? false;
176
- const modelSupportsAuto = this.autoMode >= 1 && modelSupportsAuto1;
174
+ const modelSupportsAuto = this.autoDryFanMode >= 1 && modelSupportsAuto1;
177
175
  const modelSupportsDry = deviceData.Device.ModelSupportsDry ?? false;
178
176
  const temperatureIncrement = deviceData.Device.TemperatureIncrement ?? 1;
179
177
  const outdoorTemperature = deviceData.Device.OutdoorTemperature;
@@ -628,8 +626,8 @@ class DeviceAta extends EventEmitter {
628
626
  const numberOfFanSpeeds = this.numberOfFanSpeeds;
629
627
  const swingFunction = this.swingFunction;
630
628
  const hasOutdoorTemperature = this.hasOutdoorTemperature;
631
- const autoDryFanMode = [deviceState.OperationMode, 1, modelSupportsDry ? 2 : deviceState.OperationMode, 7][this.heatDryFanMode]; //NONE, AUTO - 8, DRY - 2, FAN - 7
632
- const heatDryFanMode = [deviceState.OperationMode, 8, modelSupportsDry ? 2 : deviceState.OperationMode, 7][this.autoDryFanMode]; //NONE, HEAT - 1, DRY - 2, FAN - 7
629
+ const heatDryFanMode = [deviceState.OperationMode, 8, modelSupportsDry ? 2 : deviceState.OperationMode, 7][this.heatDryFanMode]; //NONE, HEAT - 1, DRY - 2, FAN - 7
630
+ const autoDryFanMode = [deviceState.OperationMode, 1, modelSupportsDry ? 2 : deviceState.OperationMode, 7][this.autoDryFanMode]; //NONE, AUTO - 8, DRY - 2, FAN - 7
633
631
  const serviceName = `${deviceTypeText} ${accessoryName}`;
634
632
 
635
633
  switch (displayMode) {