homebridge-melcloud-control 4.1.2-beta.86 → 4.1.2-beta.88
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 +1 -1
- package/src/deviceerv.js +1 -1
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.
|
|
4
|
+
"version": "4.1.2-beta.88",
|
|
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
|
@@ -38,7 +38,7 @@ class DeviceAta extends EventEmitter {
|
|
|
38
38
|
this.coolDryFanMode = device.coolDryFanMode || 1; //NONE, COOL, DRY, FAN
|
|
39
39
|
this.autoDryFanMode = device.autoDryFanMode || 1; //NONE, AUTO, DRY, FAN
|
|
40
40
|
this.presets = this.accountType === 'melcloud' ? (device.presets || []).filter(preset => (preset.displayType ?? 0) > 0 && preset.id !== '0') : [];
|
|
41
|
-
this.schedules = this.accountType === 'melcloudhome' ? (device.
|
|
41
|
+
this.schedules = this.accountType === 'melcloudhome' ? (device.schedules || []).filter(schedule => (schedule.displayType ?? 0) > 0 && schedule.id !== '0') : [];
|
|
42
42
|
this.buttons = (device.buttonsSensors || []).filter(sensor => (sensor.displayType ?? 0) > 0);
|
|
43
43
|
this.deviceId = device.id;
|
|
44
44
|
this.deviceName = device.name;
|
|
@@ -1348,7 +1348,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1348
1348
|
if (this.schedules.length > 0) {
|
|
1349
1349
|
this.schedules.forEach((schedule, i) => {
|
|
1350
1350
|
const scheduleData = schedulesOnServer.find(p => p[presetsIdKey] === schedule.id);
|
|
1351
|
-
schedule.state =
|
|
1351
|
+
schedule.state = scheduleEnabled; //scheduleData.Enabled : false;
|
|
1352
1352
|
|
|
1353
1353
|
const characteristicType = schedule.characteristicType;
|
|
1354
1354
|
this.schedulesServices?.[i]?.updateCharacteristic(characteristicType, schedule.state);
|
package/src/deviceatw.js
CHANGED
|
@@ -39,7 +39,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
39
39
|
this.temperatureReturnZone2Sensor = device.temperatureReturnZone2Sensor || false;
|
|
40
40
|
this.errorSensor = device.errorSensor || false;
|
|
41
41
|
this.presets = this.accountType === 'melcloud' ? (device.presets || []).filter(preset => (preset.displayType ?? 0) > 0 && preset.id !== '0') : [];
|
|
42
|
-
this.schedules = this.accountType === 'melcloudhome' ? (device.
|
|
42
|
+
this.schedules = this.accountType === 'melcloudhome' ? (device.schedules || []).filter(schedule => (schedule.displayType ?? 0) > 0 && schedule.id !== '0') : [];
|
|
43
43
|
this.buttons = (device.buttonsSensors || []).filter(button => (button.displayType ?? 0) > 0);
|
|
44
44
|
this.deviceId = device.id;
|
|
45
45
|
this.deviceName = device.name;
|
package/src/deviceerv.js
CHANGED
|
@@ -32,7 +32,7 @@ class DeviceErv extends EventEmitter {
|
|
|
32
32
|
this.temperatureSupplySensor = device.temperatureSupplySensor || false;
|
|
33
33
|
this.errorSensor = device.errorSensor || false;
|
|
34
34
|
this.presets = this.accountType === 'melcloud' ? (device.presets || []).filter(preset => (preset.displayType ?? 0) > 0 && preset.id !== '0') : [];
|
|
35
|
-
this.schedules = this.accountType === 'melcloudhome' ? (device.
|
|
35
|
+
this.schedules = this.accountType === 'melcloudhome' ? (device.schedules || []).filter(schedule => (schedule.displayType ?? 0) > 0 && schedule.id !== '0') : [];
|
|
36
36
|
this.buttons = (device.buttonsSensors || []).filter(button => (button.displayType ?? 0) > 0);
|
|
37
37
|
this.deviceId = device.id;
|
|
38
38
|
this.deviceName = device.name;
|