homebridge-melcloud-control 4.0.0-beta.72 → 4.0.0-beta.74
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 +5 -5
- 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.74",
|
|
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;
|
|
@@ -1109,9 +1109,9 @@ class DeviceAta extends EventEmitter {
|
|
|
1109
1109
|
.updateCharacteristic(Characteristic.LockPhysicalControls, obj.lockPhysicalControl)
|
|
1110
1110
|
.updateCharacteristic(Characteristic.TemperatureDisplayUnits, obj.useFahrenheit)
|
|
1111
1111
|
.updateCharacteristic(Characteristic.CoolingThresholdTemperature, defaultCoolingSetTemperature);
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1112
|
+
if (modelSupportsHeat) this.melCloudService?.updateCharacteristic(Characteristic.HeatingThresholdTemperature, defaultHeatingSetTemperature);
|
|
1113
|
+
if (modelSupportsFanSpeed) this.melCloudService?.updateCharacteristic(Characteristic.RotationSpeed, obj.fanSpeed);
|
|
1114
|
+
if (swingFunction) this.melCloudService?.updateCharacteristic(Characteristic.SwingMode, obj.swingMode);
|
|
1115
1115
|
break;
|
|
1116
1116
|
case 2: //Thermostat
|
|
1117
1117
|
switch (operationMode) {
|
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 : [];
|