homebridge-melcloud-control 4.3.16-beta.5 → 4.3.16-beta.6

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 +10 -10
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.3.16-beta.5",
4
+ "version": "4.3.16-beta.6",
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
@@ -748,17 +748,17 @@ class DeviceAta extends EventEmitter {
748
748
  });
749
749
  frostProtectionControlService.getCharacteristic(Characteristic.CoolingThresholdTemperature)
750
750
  .setProps({
751
- minValue: 4,
752
- maxValue: 14,
751
+ minValue: 6,
752
+ maxValue: 16,
753
753
  minStep: 1
754
754
  })
755
755
  .onGet(async () => {
756
- const value = this.accessory.frostProtection.Min;
756
+ const value = this.accessory.frostProtection.Max;
757
757
  return value;
758
758
  })
759
759
  .onSet(async (value) => {
760
760
  try {
761
- deviceData.FrostProtection.Min = value;
761
+ deviceData.FrostProtection.Max = value;
762
762
  if (this.logInfo) this.emit('info', `Set frost protection min. temperature: ${value}${this.accessory.temperatureUnit}`);
763
763
  await this.melCloudAta.send(this.accountType, this.displayType, deviceData, 'frostprotection');
764
764
  } catch (error) {
@@ -767,21 +767,21 @@ class DeviceAta extends EventEmitter {
767
767
  });
768
768
  frostProtectionControlService.getCharacteristic(Characteristic.HeatingThresholdTemperature)
769
769
  .setProps({
770
- minValue: 6,
771
- maxValue: 16,
770
+ minValue: 4,
771
+ maxValue: 14,
772
772
  minStep: 1
773
773
  })
774
774
  .onGet(async () => {
775
- const value = this.accessory.frostProtection.Max;
775
+ const value = this.accessory.frostProtection.Min;
776
776
  return value;
777
777
  })
778
778
  .onSet(async (value) => {
779
779
  try {
780
- deviceData.FrostProtection.Max = value;
781
- if (this.logInfo) this.emit('info', `Set frost protection max. temperature: ${value}${this.accessory.temperatureUnit}`);
780
+ deviceData.FrostProtection.Min = value;
781
+ if (this.logInfo) this.emit('info', `Set frost protection min. temperature: ${value}${this.accessory.temperatureUnit}`);
782
782
  await this.melCloudAta.send(this.accountType, this.displayType, deviceData, 'frostprotection');
783
783
  } catch (error) {
784
- if (this.logWarn) this.emit('warn', `Set frost protection max. temperature error: ${error}`);
784
+ if (this.logWarn) this.emit('warn', `Set frost protection min. temperature error: ${error}`);
785
785
  };
786
786
  });
787
787
  this.frostProtectionControlService = frostProtectionControlService;