homebridge-melcloud-control 3.8.0-beta.22 → 3.8.0-beta.24
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 +1 -1
- package/config.schema.json +15 -9
- package/package.json +1 -1
- package/src/deviceatw.js +5 -5
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`, `
|
|
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`. |
|
|
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. |
|
package/config.schema.json
CHANGED
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
]
|
|
265
265
|
}
|
|
266
266
|
],
|
|
267
|
-
"description": "Select
|
|
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
|
|
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":
|
|
836
|
+
"maximum": 14,
|
|
837
837
|
"default": 0,
|
|
838
838
|
"oneOf": [
|
|
839
839
|
{
|
|
@@ -897,31 +897,37 @@
|
|
|
897
897
|
]
|
|
898
898
|
},
|
|
899
899
|
{
|
|
900
|
-
"title": "
|
|
900
|
+
"title": "Zone 1 / Zone 2",
|
|
901
901
|
"enum": [
|
|
902
902
|
10
|
|
903
903
|
]
|
|
904
904
|
},
|
|
905
905
|
{
|
|
906
|
-
"title": "Hot Water
|
|
906
|
+
"title": "Hot Water",
|
|
907
907
|
"enum": [
|
|
908
908
|
11
|
|
909
909
|
]
|
|
910
910
|
},
|
|
911
911
|
{
|
|
912
|
-
"title": "Zone 2",
|
|
912
|
+
"title": "Hot Water / Zone 2",
|
|
913
913
|
"enum": [
|
|
914
914
|
12
|
|
915
915
|
]
|
|
916
916
|
},
|
|
917
917
|
{
|
|
918
|
-
"title": "
|
|
918
|
+
"title": "Zone 2",
|
|
919
919
|
"enum": [
|
|
920
920
|
13
|
|
921
921
|
]
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"title": "All",
|
|
925
|
+
"enum": [
|
|
926
|
+
14
|
|
927
|
+
]
|
|
922
928
|
}
|
|
923
929
|
],
|
|
924
|
-
"description": "Select
|
|
930
|
+
"description": "Select zone to hidde in HomeKit app, if present.",
|
|
925
931
|
"required": true
|
|
926
932
|
},
|
|
927
933
|
"temperatureSensor": {
|
|
@@ -1349,7 +1355,7 @@
|
|
|
1349
1355
|
]
|
|
1350
1356
|
}
|
|
1351
1357
|
],
|
|
1352
|
-
"description": "Select
|
|
1358
|
+
"description": "Select accessory control type displayed in HomeKit app.",
|
|
1353
1359
|
"required": true
|
|
1354
1360
|
},
|
|
1355
1361
|
"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.
|
|
4
|
+
"version": "3.8.0-beta.24",
|
|
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,
|
|
1347
|
-
const hasZone1 = ![2, 3, 4, 7, 8, 9,
|
|
1348
|
-
const hasHotWaterTank = ![3, 5, 6, 8, 9,
|
|
1349
|
-
const hasZone2 = ![4, 6, 9,
|
|
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;
|
|
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;
|
|
@@ -1686,7 +1686,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1686
1686
|
const setPropsMaxValue = this.startPrepareAccessory ? this.accessory.zones[i].operationModesSetPropsMaxValue = operationModeSetPropsMaxValue : false;
|
|
1687
1687
|
const setPropsValidValues = this.startPrepareAccessory ? this.accessory.zones[i].operationModesSetPropsValidValues = operationModeSetPropsValidValues : false;
|
|
1688
1688
|
|
|
1689
|
-
//update temperature sensors
|
|
1689
|
+
//update temperature sensors characteristics
|
|
1690
1690
|
switch (i) {
|
|
1691
1691
|
case caseHeatPump: //Heat Pump
|
|
1692
1692
|
if (this.roomTemperatureSensorService) {
|