homebridge-melcloud-control 2.3.0-beta.1 → 2.3.0-beta.3

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 +4 -6
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.1",
4
+ "version": "2.3.0-beta.3",
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,8 +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.heatDryFanMode = account.ataHeatDryFanMode || 0; //NONE, HEAT, DRY, FAN
25
- 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
26
26
  this.buttons = account.ataButtons || [];
27
27
  this.disableLogInfo = account.disableLogInfo || false;
28
28
  this.disableLogDeviceInfo = account.disableLogDeviceInfo || false;
@@ -182,8 +182,6 @@ class DeviceAta extends EventEmitter {
182
182
  this.swingFunction = swingFunction;
183
183
  this.numberOfFanSpeeds = numberOfFanSpeeds;
184
184
  this.modelSupportsFanSpeed = modelSupportsFanSpeed;
185
- this.modelSupportsAuto = modelSupportsAuto;
186
- this.modelSupportsHeat = modelSupportsHeat;
187
185
  this.modelSupportsDry = modelSupportsDry;
188
186
  this.temperatureIncrement = temperatureIncrement;
189
187
  this.temperatureUnit = CONSTANTS.TemperatureDisplayUnits[useFahrenheit];
@@ -219,7 +217,7 @@ class DeviceAta extends EventEmitter {
219
217
 
220
218
  let operationModeSetPropsMinValue = 0;
221
219
  let operationModeSetPropsMaxValue = 3;
222
- let operationModeSetPropsValidValues = [0, 1, 2, 3];
220
+ let operationModeSetPropsValidValues = [0];
223
221
  let fanSpeedSetPropsMaxValue = 2;
224
222
 
225
223
  switch (displayMode) {
@@ -626,7 +624,7 @@ class DeviceAta extends EventEmitter {
626
624
  const numberOfFanSpeeds = this.numberOfFanSpeeds;
627
625
  const swingFunction = this.swingFunction;
628
626
  const hasOutdoorTemperature = this.hasOutdoorTemperature;
629
- const heatDryFanMode = [deviceState.OperationMode, 8, modelSupportsDry ? 2 : deviceState.OperationMode, 7][this.heateDryFanMode]; //NONE, HEAT - 1, DRY - 2, FAN - 7
627
+ const heatDryFanMode = [deviceState.OperationMode, 8, modelSupportsDry ? 2 : deviceState.OperationMode, 7][this.heatDryFanMode]; //NONE, HEAT - 1, DRY - 2, FAN - 7
630
628
  const autoDryFanMode = [deviceState.OperationMode, 1, modelSupportsDry ? 2 : deviceState.OperationMode, 7][this.autoDryFanMode]; //NONE, AUTO - 8, DRY - 2, FAN - 7
631
629
  const serviceName = `${deviceTypeText} ${accessoryName}`;
632
630