homebridge-melcloud-control 3.1.0-beta.21 → 3.1.0-beta.22
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 +12 -3
- package/package.json +1 -1
- package/src/deviceata.js +9 -2
- package/src/deviceatw.js +9 -2
- package/src/deviceerv.js +9 -2
package/README.md
CHANGED
|
@@ -185,7 +185,10 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
|
|
|
185
185
|
| `ataDevices.autoDryFanMode` | Here select the operatiing mode for `Auto`, if this mode is not supported, it will be disabled.. |
|
|
186
186
|
| `ataDevices.temperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. |
|
|
187
187
|
| `ataDevices.temperatureSensorOutdoor` | This enable extra `Outdoor` temperature sensors to use with automations in HomeKit app. |
|
|
188
|
-
| `ataDevices.presets` |
|
|
188
|
+
| `ataDevices.presets` | Array of ATA device Presets created automatically after login to MELCloud from plugin config UI. |
|
|
189
|
+
| `ataDevices.presets.id` | Read only data, do not change it. |
|
|
190
|
+
| `ataDevices.presets.name` | Here You can schange the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
191
|
+
| `ataDevices.presets.displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
189
192
|
| `buttonsSensors` | Array of buttons sensors. |
|
|
190
193
|
| `buttonsSensors.name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
|
|
191
194
|
| `buttonsSensors.mode` | Here select button mode, VH - Vane Horizontal, VV - Vane Horizontal. |
|
|
@@ -206,7 +209,10 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
|
|
|
206
209
|
| `atwDevices.temperatureSensorReturnWaterTank` | This enable extra `Return Water Tank` temperature sensors to use with automations in HomeKit app. |
|
|
207
210
|
| `atwDevices.temperatureSensorFlowZone2` | This enable extra `Flow Zone 2` temperature sensors to use with automations in HomeKit app. |
|
|
208
211
|
| `atwDevices.temperatureSensorReturnZone2` | This enable extra `Return Zone 2` temperature sensors to use with automations in HomeKit app. |
|
|
209
|
-
| `atwDevices.presets` |
|
|
212
|
+
| `atwDevices.presets` | Array of ATA device Presets created automatically after login to MELCloud from plugin config UI. |
|
|
213
|
+
| `atwDevices.presets.id` | Read only data, do not change it. |
|
|
214
|
+
| `atwDevices.presets.name` | Here You can schange the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
215
|
+
| `atwDevices.presets.displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
210
216
|
| `buttonsSensors` | Array of buttons sensors. |
|
|
211
217
|
| `buttonsSensors.name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
|
|
212
218
|
| `buttonsSensors.mode` | Here select button mode. |
|
|
@@ -221,7 +227,10 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
|
|
|
221
227
|
| `ervDevices.temperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. |
|
|
222
228
|
| `ervDevices.temperatureSensorOutdoor` | This enable extra `Outdoor` temperature sensors to use with automations in HomeKit app. |
|
|
223
229
|
| `ervDevices.temperatureSensorSupply` | This enable extra `Supply` temperature sensors to use with automations in HomeKit app. |
|
|
224
|
-
| `ervDevices.presets` |
|
|
230
|
+
| `ervDevices.presets` | Array of ATA device Presets created automatically after login to MELCloud from plugin config UI. |
|
|
231
|
+
| `ervDevices.presets.id` | Read only data, do not change it. |
|
|
232
|
+
| `ervDevices.presets.name` | Here You can schange the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
233
|
+
| `ervDevices.presets.displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
225
234
|
| `buttonsSensors` | Array of buttons sensors. |
|
|
226
235
|
| `buttonsSensors.name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
|
|
227
236
|
| `buttonsSensors.mode` | Here select button mode. |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.1.0-beta.
|
|
4
|
+
"version": "3.1.0-beta.22",
|
|
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
|
@@ -1092,10 +1092,13 @@ class DeviceAta extends EventEmitter {
|
|
|
1092
1092
|
const index = presetsOnServer.findIndex(p => p.ID === preset.Id);
|
|
1093
1093
|
const presetData = presetsOnServer[index];
|
|
1094
1094
|
|
|
1095
|
-
//get
|
|
1095
|
+
//get preset name
|
|
1096
1096
|
const presetName = preset.name;
|
|
1097
1097
|
|
|
1098
|
-
//get
|
|
1098
|
+
//get preset display type
|
|
1099
|
+
const displayType = button.displayType;
|
|
1100
|
+
|
|
1101
|
+
//get preset name prefix
|
|
1099
1102
|
const presetNamePrefix = preset.namePrefix;
|
|
1100
1103
|
|
|
1101
1104
|
const serviceName = presetNamePrefix ? `${accessoryName} ${presetName}` : presetName;
|
|
@@ -1110,6 +1113,10 @@ class DeviceAta extends EventEmitter {
|
|
|
1110
1113
|
return state;
|
|
1111
1114
|
})
|
|
1112
1115
|
.onSet(async (state) => {
|
|
1116
|
+
if (displayType > 2) {
|
|
1117
|
+
return;
|
|
1118
|
+
};
|
|
1119
|
+
|
|
1113
1120
|
try {
|
|
1114
1121
|
switch (state) {
|
|
1115
1122
|
case true:
|
package/src/deviceatw.js
CHANGED
|
@@ -1540,10 +1540,13 @@ class DeviceAtw extends EventEmitter {
|
|
|
1540
1540
|
const index = presetsOnServer.findIndex(p => p.ID === preset.Id);
|
|
1541
1541
|
const presetData = presetsOnServer[index];
|
|
1542
1542
|
|
|
1543
|
-
//get
|
|
1543
|
+
//get preset name
|
|
1544
1544
|
const presetName = preset.name;
|
|
1545
1545
|
|
|
1546
|
-
//get
|
|
1546
|
+
//get preset display type
|
|
1547
|
+
const displayType = button.displayType;
|
|
1548
|
+
|
|
1549
|
+
//get preset name prefix
|
|
1547
1550
|
const presetNamePrefix = preset.namePrefix;
|
|
1548
1551
|
|
|
1549
1552
|
const serviceName = presetNamePrefix ? `${accessoryName} ${presetName}` : presetName;
|
|
@@ -1558,6 +1561,10 @@ class DeviceAtw extends EventEmitter {
|
|
|
1558
1561
|
return state;
|
|
1559
1562
|
})
|
|
1560
1563
|
.onSet(async (state) => {
|
|
1564
|
+
if (displayType > 2) {
|
|
1565
|
+
return;
|
|
1566
|
+
};
|
|
1567
|
+
|
|
1561
1568
|
try {
|
|
1562
1569
|
switch (state) {
|
|
1563
1570
|
case true:
|
package/src/deviceerv.js
CHANGED
|
@@ -1089,10 +1089,13 @@ class DeviceErv extends EventEmitter {
|
|
|
1089
1089
|
const index = presetsOnServer.findIndex(p => p.ID === preset.Id);
|
|
1090
1090
|
const presetData = presetsOnServer[index]
|
|
1091
1091
|
|
|
1092
|
-
//get
|
|
1092
|
+
//get preset name
|
|
1093
1093
|
const presetName = preset.name;
|
|
1094
1094
|
|
|
1095
|
-
//get
|
|
1095
|
+
//get preset display type
|
|
1096
|
+
const displayType = button.displayType;
|
|
1097
|
+
|
|
1098
|
+
//get preset name prefix
|
|
1096
1099
|
const presetNamePrefix = preset.namePrefix;
|
|
1097
1100
|
|
|
1098
1101
|
const serviceName = presetNamePrefix ? `${accessoryName} ${presetName}` : presetName;
|
|
@@ -1107,6 +1110,10 @@ class DeviceErv extends EventEmitter {
|
|
|
1107
1110
|
return state;
|
|
1108
1111
|
})
|
|
1109
1112
|
.onSet(async (state) => {
|
|
1113
|
+
if (displayType > 2) {
|
|
1114
|
+
return;
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1110
1117
|
try {
|
|
1111
1118
|
switch (state) {
|
|
1112
1119
|
case true:
|