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

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 +14 -14
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.7",
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
@@ -746,42 +746,42 @@ class DeviceAta extends EventEmitter {
746
746
  const value = this.accessory.roomTemperature;
747
747
  return value;
748
748
  });
749
- frostProtectionControlService.getCharacteristic(Characteristic.CoolingThresholdTemperature)
749
+ frostProtectionControlService.getCharacteristic(Characteristic.CoolingThresholdTemperature) //frost max
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;
762
- if (this.logInfo) this.emit('info', `Set frost protection min. temperature: ${value}${this.accessory.temperatureUnit}`);
761
+ deviceData.FrostProtection.Max = value;
762
+ if (this.logInfo) this.emit('info', `Set frost protection max. temperature: ${value}${this.accessory.temperatureUnit}`);
763
763
  await this.melCloudAta.send(this.accountType, this.displayType, deviceData, 'frostprotection');
764
764
  } catch (error) {
765
- if (this.logWarn) this.emit('warn', `Set frost protection min. temperature error: ${error}`);
765
+ if (this.logWarn) this.emit('warn', `Set frost protection max. temperature error: ${error}`);
766
766
  };
767
767
  });
768
- frostProtectionControlService.getCharacteristic(Characteristic.HeatingThresholdTemperature)
768
+ frostProtectionControlService.getCharacteristic(Characteristic.HeatingThresholdTemperature) //frost min
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;