homebridge-melcloud-control 3.8.0-beta.24 → 3.8.0-beta.26

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/README.md CHANGED
@@ -234,7 +234,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
234
234
  | `atwDevices.typeString` | Read only data, do not change it. |
235
235
  | `atwDevices.name` | Here You can schange the `Accessory Name` which is exposed to the `Homebridge/HomeKit`. |
236
236
  | `atwDevices.displayMode` | Here select main control mode `None/Disabled`, `Heater/Cooler`, `Thermostat`. |
237
- | `atwDevices.hideZone` | Here select which zone need to be hidden `None/Disabled`, `Heat Pump`, `Heat Pump / Z1`, `Heat Pump / Z1 / Hot Water`, `Heat Pump / Z1 / Z2`, `Heat Pump / Hot Water`, `Z1`, `Heat Pump / Hot Water / Z2`, `Z1 / Hot Water`, ,`Z1 / Hot Water / Z2`, `Hot Water`, `Hot Water / Z2`, `Z2`, `All`. |
237
+ | `atwDevices.hideZone` | Here select which zone need to be hidden `None/Disabled`, `Heat Pump`, `Heat Pump / Zone 1`, `Heat Pump / Zone 1 / Hot Water`, `Heat Pump / Zone 1 / Zone 2`, `Heat Pump / Hot Water`,`Heat Pump / Hot Water / Zone 2`, `Heat Pump / Zone 2`, `Zone 1`, `Zone 1 / Hot Water`, `Zone 1 / Hot Water / Zone 2`, `Zone 1 / Zone 2`, `Hot Water`, `Hot Water / Zone 2`, `Zone 2`, `All`. |
238
238
  | `atwDevices.temperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. |
239
239
  | `atwDevices.temperatureSensorFlow` | This enable extra `Flow` temperature sensors to use with automations in HomeKit app. |
240
240
  | `atwDevices.temperatureSensorReturn` | This enable extra `Return` temperature sensors to use with automations in HomeKit app. |
@@ -833,7 +833,7 @@
833
833
  "title": "Hide zone",
834
834
  "type": "integer",
835
835
  "minimum": 0,
836
- "maximum": 14,
836
+ "maximum": 15,
837
837
  "default": 0,
838
838
  "oneOf": [
839
839
  {
@@ -879,52 +879,58 @@
879
879
  ]
880
880
  },
881
881
  {
882
- "title": "Zone 1",
882
+ "title": "Heat Pump / Zone 2",
883
883
  "enum": [
884
884
  7
885
885
  ]
886
886
  },
887
887
  {
888
- "title": "Zone 1 / Hot Water",
888
+ "title": "Zone 1",
889
889
  "enum": [
890
890
  8
891
891
  ]
892
892
  },
893
893
  {
894
- "title": "Zone 1 / Hot Water / Zone 2",
894
+ "title": "Zone 1 / Hot Water",
895
895
  "enum": [
896
896
  9
897
897
  ]
898
898
  },
899
899
  {
900
- "title": "Zone 1 / Zone 2",
900
+ "title": "Zone 1 / Hot Water / Zone 2",
901
901
  "enum": [
902
902
  10
903
903
  ]
904
904
  },
905
905
  {
906
- "title": "Hot Water",
906
+ "title": "Zone 1 / Zone 2",
907
907
  "enum": [
908
908
  11
909
909
  ]
910
910
  },
911
911
  {
912
- "title": "Hot Water / Zone 2",
912
+ "title": "Hot Water",
913
913
  "enum": [
914
914
  12
915
915
  ]
916
916
  },
917
917
  {
918
- "title": "Zone 2",
918
+ "title": "Hot Water / Zone 2",
919
919
  "enum": [
920
920
  13
921
921
  ]
922
922
  },
923
923
  {
924
- "title": "All",
924
+ "title": "Zone 2",
925
925
  "enum": [
926
926
  14
927
927
  ]
928
+ },
929
+ {
930
+ "title": "All",
931
+ "enum": [
932
+ 15
933
+ ]
928
934
  }
929
935
  ],
930
936
  "description": "Select zone to hidde in HomeKit app, if present.",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.8.0-beta.24",
4
+ "version": "3.8.0-beta.26",
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/deviceatw.js CHANGED
@@ -1343,10 +1343,10 @@ class DeviceAtw extends EventEmitter {
1343
1343
  const presetsOnServer = deviceData.Presets ?? [];
1344
1344
 
1345
1345
  //device info
1346
- const hasHeatPump = ![1, 2, 3, 4, 5, 6, 14].includes(this.hideZone);
1347
- const hasZone1 = ![2, 3, 4, 7, 8, 9, 10, 14].includes(this.hideZone);
1348
- const hasHotWaterTank = ![3, 5, 6, 8, 9, 11, 12, 14].includes(this.hideZone) && deviceData.Device.HasHotWaterTank;
1349
- const hasZone2 = ![4, 6, 9, 10, 12, 14].includes(this.hideZone) && deviceData.Device.HasZone2;
1346
+ const hasHeatPump = ![1, 2, 3, 4, 5, 6, 7, 15].includes(this.hideZone);
1347
+ const hasZone1 = ![2, 3, 4, 8, 9, 10, 11, 15].includes(this.hideZone);
1348
+ const hasHotWaterTank = ![3, 5, 6, 9, 10, 12, 13, 15].includes(this.hideZone) && deviceData.Device.HasHotWaterTank;
1349
+ const hasZone2 = ![4, 6, 7, 10, 11, 13, 14, 15].includes(this.hideZone) && deviceData.Device.HasZone2;
1350
1350
  const canHeat = deviceData.Device.CanHeat ?? false;
1351
1351
  const canCool = deviceData.Device.CanCool ?? false;
1352
1352
  const heatCoolModes = canHeat && canCool ? 0 : canHeat ? 1 : canCool ? 2 : 3;