homebridge-melcloud-control 4.1.2-beta.26 → 4.1.2-beta.27

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.1.2-beta.26",
4
+ "version": "4.1.2-beta.27",
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
@@ -37,7 +37,7 @@ class DeviceAta extends EventEmitter {
37
37
  this.heatDryFanMode = device.heatDryFanMode || 1; //NONE, HEAT, DRY, FAN
38
38
  this.coolDryFanMode = device.coolDryFanMode || 1; //NONE, COOL, DRY, FAN
39
39
  this.autoDryFanMode = device.autoDryFanMode || 1; //NONE, AUTO, DRY, FAN
40
- this.presets = (device.presets || []).filter(preset => (preset.displayType ?? 0) > 0);
40
+ this.presets = (device.presets || []).filter(preset => (preset.displayType ?? 0) > 0 && preset.id !== '0');
41
41
  this.buttons = (device.buttonsSensors || []).filter(sensor => (sensor.displayType ?? 0) > 0);
42
42
  this.deviceId = device.id;
43
43
  this.deviceName = device.name;
package/src/deviceatw.js CHANGED
@@ -38,7 +38,7 @@ class DeviceAtw extends EventEmitter {
38
38
  this.temperatureFlowZone2Sensor = device.temperatureFlowZone2Sensor || false;
39
39
  this.temperatureReturnZone2Sensor = device.temperatureReturnZone2Sensor || false;
40
40
  this.errorSensor = device.errorSensor || false;
41
- this.presets = (device.presets || []).filter(preset => (preset.displayType ?? 0) > 0);
41
+ this.presets = (device.presets || []).filter(preset => (preset.displayType ?? 0) > 0 && preset.id !== '0');
42
42
  this.buttons = (device.buttonsSensors || []).filter(button => (button.displayType ?? 0) > 0);
43
43
  this.deviceId = device.id;
44
44
  this.deviceName = device.name;
package/src/deviceerv.js CHANGED
@@ -31,7 +31,7 @@ class DeviceErv extends EventEmitter {
31
31
  this.temperatureOutdoorSensor = device.temperatureOutdoorSensor || false;
32
32
  this.temperatureSupplySensor = device.temperatureSupplySensor || false;
33
33
  this.errorSensor = device.errorSensor || false;
34
- this.presets = (device.presets || []).filter(preset => (preset.displayType ?? 0) > 0);
34
+ this.presets = (device.presets || []).filter(preset => (preset.displayType ?? 0) > 0 && preset.id !== '0');
35
35
  this.buttons = (device.buttonsSensors || []).filter(button => (button.displayType ?? 0) > 0);
36
36
  this.deviceId = device.id;
37
37
  this.deviceName = device.name;