homebridge-melcloud-control 3.8.0-beta.23 → 3.8.0-beta.25

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`, `Zone 1`, `Zone 2`, `Zone 1/2`, `Hot Water`, `Zone 1/Hot Water`, `Zone 2/Hot Water`, `Zone 1/2/Hot Water`. |
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`,`Heat Pump / Hot Water / Z2`, `Heat Pump / Z2`, `Z1`, `Z1 / Hot Water`, `Z1 / Hot Water / Z2`, `Z1 / Z2`, `Hot Water`, `Hot Water / Z2`, `Z2`, `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. |
@@ -264,7 +264,7 @@
264
264
  ]
265
265
  }
266
266
  ],
267
- "description": "Select device control mode displayed in HomeKit app.",
267
+ "description": "Select accessory control type displayed in HomeKit app.",
268
268
  "required": true
269
269
  },
270
270
  "heatDryFanMode": {
@@ -826,14 +826,14 @@
826
826
  ]
827
827
  }
828
828
  ],
829
- "description": "Select device control mode displayed in HomeKit app.",
829
+ "description": "Select accessory control type displayed in HomeKit app.",
830
830
  "required": true
831
831
  },
832
832
  "hideZone": {
833
833
  "title": "Hide zone",
834
834
  "type": "integer",
835
835
  "minimum": 0,
836
- "maximum": 13,
836
+ "maximum": 15,
837
837
  "default": 0,
838
838
  "oneOf": [
839
839
  {
@@ -879,49 +879,61 @@
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": "Hot Water",
900
+ "title": "Zone 1 / Hot Water / Zone 2",
901
901
  "enum": [
902
902
  10
903
903
  ]
904
904
  },
905
905
  {
906
- "title": "Hot Water / Zone 2",
906
+ "title": "Zone 1 / Zone 2",
907
907
  "enum": [
908
908
  11
909
909
  ]
910
910
  },
911
911
  {
912
- "title": "Zone 2",
912
+ "title": "Hot Water",
913
913
  "enum": [
914
914
  12
915
915
  ]
916
916
  },
917
917
  {
918
- "title": "All",
918
+ "title": "Hot Water / Zone 2",
919
919
  "enum": [
920
920
  13
921
921
  ]
922
+ },
923
+ {
924
+ "title": "Zone 2",
925
+ "enum": [
926
+ 14
927
+ ]
928
+ },
929
+ {
930
+ "title": "All",
931
+ "enum": [
932
+ 15
933
+ ]
922
934
  }
923
935
  ],
924
- "description": "Select which zone need to be hidden in HomeKit app, if present.",
936
+ "description": "Select zone to hidde in HomeKit app, if present.",
925
937
  "required": true
926
938
  },
927
939
  "temperatureSensor": {
@@ -1349,7 +1361,7 @@
1349
1361
  ]
1350
1362
  }
1351
1363
  ],
1352
- "description": "Select device control mode displayed in HomeKit app.",
1364
+ "description": "Select accessory control type displayed in HomeKit app.",
1353
1365
  "required": true
1354
1366
  },
1355
1367
  "temperatureSensor": {
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.23",
4
+ "version": "3.8.0-beta.25",
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, 13].includes(this.hideZone);
1347
- const hasZone1 = ![2, 3, 4, 7, 8, 9, 13].includes(this.hideZone);
1348
- const hasHotWaterTank = ![3, 5, 6, 8, 9, 10, 11, 13].includes(this.hideZone) && deviceData.Device.HasHotWaterTank;
1349
- const hasZone2 = ![4, 6, 9, 11, 13].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, 9, 10, 12, 14].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;