homebridge-melcloud-control 4.1.3-beta.11 → 4.1.3-beta.12
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 +2 -2
- package/src/deviceatw.js +2 -2
- package/src/deviceerv.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.1.3-beta.
|
|
4
|
+
"version": "4.1.3-beta.12",
|
|
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
|
@@ -1109,7 +1109,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1109
1109
|
const schedulesOnServer = deviceData.Schedule ?? [];
|
|
1110
1110
|
const presetsOnServer = deviceData.Presets ?? [];
|
|
1111
1111
|
const holidayModeEnabled = deviceData.HolidayMode?.Enabled;
|
|
1112
|
-
const holidayModeActive = deviceData.HolidayMode?.Active;
|
|
1112
|
+
const holidayModeActive = deviceData.HolidayMode?.Active ?? false;
|
|
1113
1113
|
|
|
1114
1114
|
//protection
|
|
1115
1115
|
const frostProtectionEnabled = deviceData.FrostProtection?.Enabled;
|
|
@@ -1353,7 +1353,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1353
1353
|
this.outdoorTemperatureSensorService?.updateCharacteristic(Characteristic.CurrentTemperature, outdoorTemperature);
|
|
1354
1354
|
this.frostProtectionSensorService?.updateCharacteristic(Characteristic.ContactSensorState, frostProtectionActive);
|
|
1355
1355
|
this.overheatProtectionSensorService?.updateCharacteristic(Characteristic.ContactSensorState, overheatProtectionActive);
|
|
1356
|
-
this.holidayModeControlService?.updateCharacteristic(Characteristic.
|
|
1356
|
+
this.holidayModeControlService?.updateCharacteristic(Characteristic.On, holidayModeEnabled);
|
|
1357
1357
|
this.holidayModeSensorService?.updateCharacteristic(Characteristic.ContactSensorState, holidayModeActive);
|
|
1358
1358
|
this.errorService?.updateCharacteristic(Characteristic.ContactSensorState, isInError);
|
|
1359
1359
|
|
package/src/deviceatw.js
CHANGED
|
@@ -1449,7 +1449,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1449
1449
|
const schedulesOnServer = deviceData.Schedule ?? [];
|
|
1450
1450
|
const presetsOnServer = deviceData.Presets ?? [];
|
|
1451
1451
|
const holidayModeEnabled = deviceData.HolidayMode?.Enabled;
|
|
1452
|
-
const holidayModeActive = deviceData.HolidayMode?.Active;
|
|
1452
|
+
const holidayModeActive = deviceData.HolidayMode?.Active ?? false;
|
|
1453
1453
|
|
|
1454
1454
|
//device info
|
|
1455
1455
|
const hasHeatPump = ![1, 2, 3, 4, 5, 6, 7, 15].includes(this.hideZone);
|
|
@@ -1933,7 +1933,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1933
1933
|
this.accessory = obj;
|
|
1934
1934
|
|
|
1935
1935
|
//update sensors state
|
|
1936
|
-
this.holidayModeControlService?.updateCharacteristic(Characteristic.
|
|
1936
|
+
this.holidayModeControlService?.updateCharacteristic(Characteristic.On, holidayModeEnabled);
|
|
1937
1937
|
this.holidayModeSensorService?.updateCharacteristic(Characteristic.ContactSensorState, holidayModeActive);
|
|
1938
1938
|
this.errorService?.updateCharacteristic(Characteristic.ContactSensorState, isInError);
|
|
1939
1939
|
|
package/src/deviceerv.js
CHANGED
|
@@ -993,7 +993,7 @@ class DeviceErv extends EventEmitter {
|
|
|
993
993
|
const schedulesOnServer = deviceData.Schedule ?? [];
|
|
994
994
|
const presetsOnServer = deviceData.Presets ?? [];
|
|
995
995
|
const holidayModeEnabled = deviceData.HolidayMode?.Enabled;
|
|
996
|
-
const holidayModeActive = deviceData.HolidayMode?.Active;
|
|
996
|
+
const holidayModeActive = deviceData.HolidayMode?.Active ?? false;
|
|
997
997
|
|
|
998
998
|
//device control
|
|
999
999
|
const hideRoomTemperature = deviceData.HideRoomTemperature;
|
|
@@ -1225,7 +1225,7 @@ class DeviceErv extends EventEmitter {
|
|
|
1225
1225
|
.updateCharacteristic(Characteristic.PM2_5Density, pM25Level);
|
|
1226
1226
|
|
|
1227
1227
|
//error sensor
|
|
1228
|
-
this.holidayModeControlService?.updateCharacteristic(Characteristic.
|
|
1228
|
+
this.holidayModeControlService?.updateCharacteristic(Characteristic.On, holidayModeEnabled);
|
|
1229
1229
|
this.holidayModeSensorService?.updateCharacteristic(Characteristic.ContactSensorState, holidayModeActive);
|
|
1230
1230
|
this.errorService?.updateCharacteristic(Characteristic.ContactSensorState, isInError);
|
|
1231
1231
|
|