homebridge-melcloud-control 3.3.20-beta.0 → 3.3.20-beta.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.3.20-beta.0",
4
+ "version": "3.3.20-beta.1",
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
@@ -779,9 +779,13 @@ class DeviceAta extends EventEmitter {
779
779
  return value;
780
780
  });
781
781
  this.melCloudService.getCharacteristic(Characteristic.TargetHeaterCoolerState)
782
-
782
+ .setProps({
783
+ minValue: this.accessory.operationModeSetPropsMinValue,
784
+ maxValue: this.accessory.operationModeSetPropsMaxValue,
785
+ validValues: this.accessory.operationModeSetPropsValidValues
786
+ })
783
787
  .onGet(async () => {
784
- const value = this.accessory.targetOperationMode; //1 = HEAT, 2 = DRY 3 = COOL, 7 = FAN, 8 = AUTO
788
+ const value = this.accessory.targetOperationMode ?? 0; //1 = HEAT, 2 = DRY 3 = COOL, 7 = FAN, 8 = AUTO
785
789
  return value;
786
790
  })
787
791
  .onSet(async (value) => {
@@ -223,6 +223,8 @@ class MelCloudAta extends EventEmitter {
223
223
  const firmwareAppVersion = device.FirmwareAppVersion?.toString() ?? 'Undefined';
224
224
  const firmwareWebVersion = device.FirmwareWebVersion;
225
225
  const firmwareWlanVersion = device.FirmwareWlanVersion;
226
+ const linkToMELCloudHome = device.LinkToMELCloudHome;
227
+ const linkedByUserFromMELCloudHome = device.LinkedByUserFromMELCloudHome;
226
228
  const mqttFlags = device.MqttFlags;
227
229
  const hasErrorMessages = device.HasErrorMessages;
228
230
  const hasZone2 = device.HasZone2;