homebridge-melcloud-control 4.3.7-beta.1 → 4.3.7-beta.3
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/config.schema.json +7 -5
- package/package.json +1 -1
- package/src/deviceata.js +5 -5
- package/src/deviceatw.js +5 -5
- package/src/deviceerv.js +5 -5
package/config.schema.json
CHANGED
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
"properties": {
|
|
13
13
|
"accounts": {
|
|
14
14
|
"type": "array",
|
|
15
|
+
"title": "Accounts",
|
|
15
16
|
"items": {
|
|
16
17
|
"type": "object",
|
|
18
|
+
"title": "Account",
|
|
17
19
|
"properties": {
|
|
18
20
|
"name": {
|
|
19
21
|
"title": "Name",
|
|
@@ -25,13 +27,13 @@
|
|
|
25
27
|
"title": "User",
|
|
26
28
|
"type": "string",
|
|
27
29
|
"placeholder": "Email",
|
|
28
|
-
"description": "
|
|
30
|
+
"description": "Account username."
|
|
29
31
|
},
|
|
30
32
|
"passwd": {
|
|
31
33
|
"title": "Password",
|
|
32
34
|
"type": "string",
|
|
33
35
|
"placeholder": "Password",
|
|
34
|
-
"description": "
|
|
36
|
+
"description": "Account password.",
|
|
35
37
|
"format": "password"
|
|
36
38
|
},
|
|
37
39
|
"language": {
|
|
@@ -228,7 +230,7 @@
|
|
|
228
230
|
]
|
|
229
231
|
},
|
|
230
232
|
"ataDevices": {
|
|
231
|
-
"title": "Devices
|
|
233
|
+
"title": "ATA Devices",
|
|
232
234
|
"type": "array",
|
|
233
235
|
"items": {
|
|
234
236
|
"type": "object",
|
|
@@ -1039,7 +1041,7 @@
|
|
|
1039
1041
|
}
|
|
1040
1042
|
},
|
|
1041
1043
|
"atwDevices": {
|
|
1042
|
-
"title": "Devices
|
|
1044
|
+
"title": "ATW Devices",
|
|
1043
1045
|
"type": "array",
|
|
1044
1046
|
"items": {
|
|
1045
1047
|
"type": "object",
|
|
@@ -1807,7 +1809,7 @@
|
|
|
1807
1809
|
}
|
|
1808
1810
|
},
|
|
1809
1811
|
"ervDevices": {
|
|
1810
|
-
"title": "Devices
|
|
1812
|
+
"title": "ERV Devices",
|
|
1811
1813
|
"type": "array",
|
|
1812
1814
|
"items": {
|
|
1813
1815
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.3.7-beta.
|
|
4
|
+
"version": "4.3.7-beta.3",
|
|
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
|
@@ -90,7 +90,7 @@ class DeviceAta extends EventEmitter {
|
|
|
90
90
|
|
|
91
91
|
//buttons configured
|
|
92
92
|
for (const button of this.buttons) {
|
|
93
|
-
button.name = button.name
|
|
93
|
+
button.name = button.name;
|
|
94
94
|
button.serviceType = serviceType[button.displayType];
|
|
95
95
|
button.characteristicType = characteristicType[button.displayType];
|
|
96
96
|
button.state = false;
|
|
@@ -846,7 +846,7 @@ class DeviceAta extends EventEmitter {
|
|
|
846
846
|
const presetData = presetsOnServer.find(p => p.ID === preset.id);
|
|
847
847
|
|
|
848
848
|
//get name
|
|
849
|
-
const name = preset.name
|
|
849
|
+
const name = preset.name || `Preset ${i}`;
|
|
850
850
|
|
|
851
851
|
//get name prefix
|
|
852
852
|
const namePrefix = preset.namePrefix;
|
|
@@ -923,7 +923,7 @@ class DeviceAta extends EventEmitter {
|
|
|
923
923
|
const scheduleData = schedulesOnServer.find(s => s.Id === schedule.id);
|
|
924
924
|
|
|
925
925
|
//get name
|
|
926
|
-
const name = schedule.name
|
|
926
|
+
const name = schedule.name || `Schedule ${i}`;
|
|
927
927
|
|
|
928
928
|
//get name prefix
|
|
929
929
|
const namePrefix = schedule.namePrefix;
|
|
@@ -998,7 +998,7 @@ class DeviceAta extends EventEmitter {
|
|
|
998
998
|
const sceneData = scenesOnServer.find(s => s.Id === scene.id);
|
|
999
999
|
|
|
1000
1000
|
//get preset name
|
|
1001
|
-
const name = scene.name
|
|
1001
|
+
const name = scene.name || `Scene ${i}`;
|
|
1002
1002
|
|
|
1003
1003
|
//get preset name prefix
|
|
1004
1004
|
const namePrefix = scene.namePrefix;
|
|
@@ -1058,7 +1058,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1058
1058
|
const mode = button.mode;
|
|
1059
1059
|
|
|
1060
1060
|
//get name
|
|
1061
|
-
const name = button.name
|
|
1061
|
+
const name = button.name || `Button ${i}`;
|
|
1062
1062
|
|
|
1063
1063
|
//get name prefix
|
|
1064
1064
|
const namePrefix = button.namePrefix;
|
package/src/deviceatw.js
CHANGED
|
@@ -94,7 +94,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
94
94
|
|
|
95
95
|
//buttons configured
|
|
96
96
|
for (const button of this.buttons) {
|
|
97
|
-
button.name = button.name
|
|
97
|
+
button.name = button.name;
|
|
98
98
|
button.serviceType = serviceType[button.displayType];
|
|
99
99
|
button.characteristicType = characteristicType[button.displayType];
|
|
100
100
|
button.state = false;
|
|
@@ -1160,7 +1160,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1160
1160
|
const presetData = presetsOnServer.find(p => p.ID === preset.id);
|
|
1161
1161
|
|
|
1162
1162
|
//get name
|
|
1163
|
-
const name = preset.name
|
|
1163
|
+
const name = preset.name || `Preset ${i}`;
|
|
1164
1164
|
|
|
1165
1165
|
//get name prefix
|
|
1166
1166
|
const namePrefix = preset.namePrefix;
|
|
@@ -1237,7 +1237,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1237
1237
|
const scheduleData = schedulesOnServer.find(s => s.Id === schedule.id);
|
|
1238
1238
|
|
|
1239
1239
|
//get name
|
|
1240
|
-
const name = schedule.name
|
|
1240
|
+
const name = schedule.name || `Schedule ${i}`;
|
|
1241
1241
|
|
|
1242
1242
|
//get name prefix
|
|
1243
1243
|
const namePrefix = schedule.namePrefix;
|
|
@@ -1312,7 +1312,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1312
1312
|
const sceneData = scenesOnServer.find(s => s.Id === scene.id);
|
|
1313
1313
|
|
|
1314
1314
|
//get name
|
|
1315
|
-
const name = scene.name
|
|
1315
|
+
const name = scene.name || `Scens ${i}`;
|
|
1316
1316
|
|
|
1317
1317
|
//get name prefix
|
|
1318
1318
|
const namePrefix = scene.namePrefix;
|
|
@@ -1372,7 +1372,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1372
1372
|
const mode = button.mode;
|
|
1373
1373
|
|
|
1374
1374
|
//get name
|
|
1375
|
-
const name = button.name
|
|
1375
|
+
const name = button.name || `Button ${i}`;
|
|
1376
1376
|
|
|
1377
1377
|
//get name prefix
|
|
1378
1378
|
const namePrefix = button.namePrefix;
|
package/src/deviceerv.js
CHANGED
|
@@ -86,7 +86,7 @@ class DeviceErv extends EventEmitter {
|
|
|
86
86
|
|
|
87
87
|
//buttons configured
|
|
88
88
|
for (const button of this.buttons) {
|
|
89
|
-
button.name = button.name
|
|
89
|
+
button.name = button.name;
|
|
90
90
|
button.serviceType = serviceType[button.displayType];
|
|
91
91
|
button.characteristicType = characteristicType[button.displayType];
|
|
92
92
|
button.state = false;
|
|
@@ -773,7 +773,7 @@ class DeviceErv extends EventEmitter {
|
|
|
773
773
|
const presetData = presetsOnServer.find(p => p.ID === preset.id);
|
|
774
774
|
|
|
775
775
|
//get name
|
|
776
|
-
const name = preset.name
|
|
776
|
+
const name = preset.name || `Preset ${i}`;
|
|
777
777
|
|
|
778
778
|
//get name prefix
|
|
779
779
|
const namePrefix = preset.namePrefix;
|
|
@@ -850,7 +850,7 @@ class DeviceErv extends EventEmitter {
|
|
|
850
850
|
const scheduleData = schedulesOnServer.find(s => s.Id === schedule.id);
|
|
851
851
|
|
|
852
852
|
//get name
|
|
853
|
-
const name = schedule.name
|
|
853
|
+
const name = schedule.name || `Schedule ${i}`;
|
|
854
854
|
|
|
855
855
|
//get name prefix
|
|
856
856
|
const namePrefix = schedule.namePrefix;
|
|
@@ -925,7 +925,7 @@ class DeviceErv extends EventEmitter {
|
|
|
925
925
|
const sceneData = scenesOnServer.find(s => s.Id === scene.id);
|
|
926
926
|
|
|
927
927
|
//get name
|
|
928
|
-
const name = scene.name
|
|
928
|
+
const name = scene.name || `Scene ${i}`;
|
|
929
929
|
|
|
930
930
|
//get name prefix
|
|
931
931
|
const namePrefix = scene.namePrefix;
|
|
@@ -985,7 +985,7 @@ class DeviceErv extends EventEmitter {
|
|
|
985
985
|
const mode = button.mode;
|
|
986
986
|
|
|
987
987
|
//get name
|
|
988
|
-
const name = button.name
|
|
988
|
+
const name = button.name || `Button ${i}`;
|
|
989
989
|
|
|
990
990
|
//get name prefix
|
|
991
991
|
const namePrefix = button.namePrefix;
|