homebridge-melcloud-control 4.1.3-beta.12 → 4.1.3-beta.13
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 +3 -3
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.3-beta.
|
|
4
|
+
"version": "4.1.3-beta.13",
|
|
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
|
@@ -618,7 +618,7 @@ class DeviceAta extends EventEmitter {
|
|
|
618
618
|
};
|
|
619
619
|
|
|
620
620
|
//frost protection sensor
|
|
621
|
-
if (this.frostProtectionSensor && this.accessory.frostProtectionEnabled) {
|
|
621
|
+
if (this.frostProtectionSensor && this.accessory.frostProtectionEnabled !== null) {
|
|
622
622
|
if (this.logDebug) this.emit('debug', `Prepare frost protection service`);
|
|
623
623
|
this.frostProtectionSensorService = new Service.ContactSensor(`${serviceName} Frost Protection`, `Frost Protection Sensor ${deviceId}`);
|
|
624
624
|
this.frostProtectionSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
@@ -1113,9 +1113,9 @@ class DeviceAta extends EventEmitter {
|
|
|
1113
1113
|
|
|
1114
1114
|
//protection
|
|
1115
1115
|
const frostProtectionEnabled = deviceData.FrostProtection?.Enabled;
|
|
1116
|
-
const frostProtectionActive = deviceData.FrostProtection?.Active;
|
|
1116
|
+
const frostProtectionActive = deviceData.FrostProtection?.Active ?? false;
|
|
1117
1117
|
const overheatProtectionEnabled = deviceData.OverheatProtection?.Enabled;
|
|
1118
|
-
const overheatProtectionActive = deviceData.OverheatProtection?.Active;
|
|
1118
|
+
const overheatProtectionActive = deviceData.OverheatProtection?.Active ?? false;
|
|
1119
1119
|
|
|
1120
1120
|
//device control
|
|
1121
1121
|
const hideVaneControls = deviceData.HideVaneControls ?? false;
|