homebridge-melcloud-control 4.1.2-beta.87 → 4.1.2-beta.89

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/deviceata.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.2-beta.87",
4
+ "version": "4.1.2-beta.89",
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
@@ -771,7 +771,7 @@ class DeviceAta extends EventEmitter {
771
771
  .onSet(async (state) => {
772
772
  try {
773
773
  deviceData.ScheduleEnabled = state;
774
- await this.melCloudAta.send(this.accountType, this.displayType, deviceData, payload);
774
+ await this.melCloudAta.send(this.accountType, this.displayType, deviceData);
775
775
  if (this.logInfo) this.emit('info', `${state ? 'Set:' : 'Unset:'} ${name}`);
776
776
  } catch (error) {
777
777
  if (this.logWarn) this.emit('warn', `Set schedule error: ${error}`);
@@ -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 = scheduleData ? scheduleData.Enabled : false;
1351
+ schedule.state = scheduleEnabled; //scheduleData.Enabled : false;
1352
1352
 
1353
1353
  const characteristicType = schedule.characteristicType;
1354
1354
  this.schedulesServices?.[i]?.updateCharacteristic(characteristicType, schedule.state);