homebridge-melcloud-control 4.0.0-beta.71 → 4.0.0-beta.73
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 +1 -1
- package/src/deviceata.js +4 -4
- package/src/melcloudata.js +2 -2
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.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.73",
|
|
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
|
@@ -926,8 +926,8 @@ class DeviceAta extends EventEmitter {
|
|
|
926
926
|
this.emit('devInfo', `Account: ${this.accountName}`);
|
|
927
927
|
if (modelIndoor) this.emit('devInfo', `Indoor: ${modelIndoor}`);
|
|
928
928
|
if (modelOutdoor) this.emit('devInfo', `Outdoor: ${modelOutdoor}`);
|
|
929
|
-
this.emit('devInfo', `Serial: ${serialNumber}`);
|
|
930
|
-
this.emit('devInfo', `Firmware: ${firmwareAppVersion}`);
|
|
929
|
+
if (serialNumber) this.emit('devInfo', `Serial: ${serialNumber}`);
|
|
930
|
+
if (firmwareAppVersion) this.emit('devInfo', `Firmware: ${firmwareAppVersion}`);
|
|
931
931
|
this.emit('devInfo', `Manufacturer: ${manufacturer}`);
|
|
932
932
|
this.emit('devInfo', '----------------------------------');
|
|
933
933
|
this.displayDeviceInfo = false;
|
|
@@ -956,8 +956,8 @@ class DeviceAta extends EventEmitter {
|
|
|
956
956
|
const airDirectionFunction = this.accountMelcloud ? deviceData.Device.AirDirectionFunction : deviceData.Device.HasAirDirectionFunction;;
|
|
957
957
|
const swingFunction = this.accountMelcloud ? deviceData.Device.SwingFunction : deviceData.Device.HasSwing;
|
|
958
958
|
const hasOutdoorTemperature = deviceData.Device.HasOutdoorTemperature ?? false;
|
|
959
|
-
const
|
|
960
|
-
const
|
|
959
|
+
const modelSupportsFanSpeed = deviceData.Device.ModelSupportsFanSpeed || deviceData.Device.NumberOfFanSpeeds > 0;
|
|
960
|
+
const numberOfFanSpeeds = modelSupportsFanSpeed ? deviceData.Device.NumberOfFanSpeeds : 0;
|
|
961
961
|
const modelSupportsAuto1 = this.accountMelcloud ? deviceData.Device.ModelSupportsAuto : deviceData.Device.HasAutoOperationMode;
|
|
962
962
|
const modelSupportsAuto = this.autoDryFanMode >= 1 && modelSupportsAuto1
|
|
963
963
|
const modelSupportsHeat1 = this.accountMelcloud ? deviceData.Device.ModelSupportsHeat : deviceData.Device.HasHeatOperationMode
|
package/src/melcloudata.js
CHANGED
|
@@ -75,7 +75,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
75
75
|
//device info
|
|
76
76
|
const hideVaneControls = deviceData.HideVaneControls ?? false;
|
|
77
77
|
const hideDryModeControl = deviceData.HideDryModeControl ?? false;
|
|
78
|
-
const serialNumber = deviceData.SerialNumber
|
|
78
|
+
const serialNumber = deviceData.SerialNumber;
|
|
79
79
|
|
|
80
80
|
//device
|
|
81
81
|
const device = deviceData.Device ?? {};
|
|
@@ -97,7 +97,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
97
97
|
const inStandbyMode = device.InStandbyMode;
|
|
98
98
|
const defaultCoolingSetTemperature = device.DefaultCoolingSetTemperature;
|
|
99
99
|
const defaultHeatingSetTemperature = device.DefaultHeatingSetTemperature;
|
|
100
|
-
const firmwareAppVersion = device.FirmwareAppVersion
|
|
100
|
+
const firmwareAppVersion = device.FirmwareAppVersion;
|
|
101
101
|
|
|
102
102
|
//units
|
|
103
103
|
const units = Array.isArray(device.Units) ? device.Units : [];
|