homebridge-melcloud-control 4.5.5-beta.1 → 4.5.5-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 +73 -97
- package/homebridge-ui/public/index.html +10 -5
- package/index.js +2 -2
- package/package.json +1 -1
package/config.schema.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"title": "Name",
|
|
22
22
|
"type": "string",
|
|
23
23
|
"placeholder": "Account name",
|
|
24
|
-
"description": "Your own
|
|
24
|
+
"description": "Your own name displayed in HomeKit."
|
|
25
25
|
},
|
|
26
26
|
"user": {
|
|
27
27
|
"title": "User",
|
|
@@ -245,18 +245,13 @@
|
|
|
245
245
|
"type": "integer",
|
|
246
246
|
"default": 0
|
|
247
247
|
},
|
|
248
|
-
"typeString": {
|
|
249
|
-
"title": "Type",
|
|
250
|
-
"type": "string",
|
|
251
|
-
"default": "Air Conditioner"
|
|
252
|
-
},
|
|
253
248
|
"displayType": {
|
|
254
249
|
"title": "Display Type",
|
|
255
250
|
"type": "integer",
|
|
256
251
|
"minimum": 0,
|
|
257
252
|
"maximum": 2,
|
|
258
253
|
"default": 0,
|
|
259
|
-
"description": "Select accessory control type displayed in HomeKit
|
|
254
|
+
"description": "Select accessory control type displayed in HomeKit.",
|
|
260
255
|
"anyOf": [
|
|
261
256
|
{
|
|
262
257
|
"title": "None / Disabled",
|
|
@@ -281,7 +276,8 @@
|
|
|
281
276
|
"name": {
|
|
282
277
|
"title": "Name",
|
|
283
278
|
"type": "string",
|
|
284
|
-
"default": "Air Conditioner"
|
|
279
|
+
"default": "Air Conditioner",
|
|
280
|
+
"description": "Your own name displayed in HomeKit."
|
|
285
281
|
},
|
|
286
282
|
"heatDryFanMode": {
|
|
287
283
|
"title": "Heat",
|
|
@@ -389,37 +385,37 @@
|
|
|
389
385
|
"title": "Room",
|
|
390
386
|
"type": "boolean",
|
|
391
387
|
"default": false,
|
|
392
|
-
"description": "This enable extra room temperature sensor to use with automations in HomeKit
|
|
388
|
+
"description": "This enable extra room temperature sensor to use with automations in HomeKit."
|
|
393
389
|
},
|
|
394
390
|
"temperatureOutdoorSensor": {
|
|
395
391
|
"title": "Outdoor",
|
|
396
392
|
"type": "boolean",
|
|
397
393
|
"default": false,
|
|
398
|
-
"description": "This enable extra outdoor temperature sensor to use with automations in HomeKit
|
|
394
|
+
"description": "This enable extra outdoor temperature sensor to use with automations in HomeKit."
|
|
399
395
|
},
|
|
400
396
|
"inStandbySensor": {
|
|
401
397
|
"title": "In Standby",
|
|
402
398
|
"type": "boolean",
|
|
403
399
|
"default": false,
|
|
404
|
-
"description": "This enable in standby mode sensor to use with automations in HomeKit
|
|
400
|
+
"description": "This enable in standby mode sensor to use with automations in HomeKit."
|
|
405
401
|
},
|
|
406
402
|
"connectSensor": {
|
|
407
403
|
"title": "Connect",
|
|
408
404
|
"type": "boolean",
|
|
409
405
|
"default": false,
|
|
410
|
-
"description": "This enable connect state sensor to use with automations in HomeKit
|
|
406
|
+
"description": "This enable connect state sensor to use with automations in HomeKit."
|
|
411
407
|
},
|
|
412
408
|
"errorSensor": {
|
|
413
409
|
"title": "Error",
|
|
414
410
|
"type": "boolean",
|
|
415
411
|
"default": false,
|
|
416
|
-
"description": "This enable error sensor to use with automations in HomeKit
|
|
412
|
+
"description": "This enable error sensor to use with automations in HomeKit."
|
|
417
413
|
},
|
|
418
414
|
"frostProtectionSupport": {
|
|
419
415
|
"title": "Frost Protection Support",
|
|
420
416
|
"type": "boolean",
|
|
421
417
|
"default": false,
|
|
422
|
-
"description": "This enable frost protection control and sensors to use with automations in HomeKit
|
|
418
|
+
"description": "This enable frost protection control and sensors to use with automations in HomeKit.",
|
|
423
419
|
"condition": {
|
|
424
420
|
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
|
|
425
421
|
}
|
|
@@ -428,7 +424,7 @@
|
|
|
428
424
|
"title": "Overheat Protection Support",
|
|
429
425
|
"type": "boolean",
|
|
430
426
|
"default": false,
|
|
431
|
-
"description": "This enable overheat protection control and sensors to use with automations in HomeKit
|
|
427
|
+
"description": "This enable overheat protection control and sensors to use with automations in HomeKit.",
|
|
432
428
|
"condition": {
|
|
433
429
|
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
|
|
434
430
|
}
|
|
@@ -437,7 +433,7 @@
|
|
|
437
433
|
"title": "Holiday Mode Support",
|
|
438
434
|
"type": "boolean",
|
|
439
435
|
"default": false,
|
|
440
|
-
"description": "This enable holiday mode control and sensors to use with automations in HomeKit
|
|
436
|
+
"description": "This enable holiday mode control and sensors to use with automations in HomeKit.",
|
|
441
437
|
"condition": {
|
|
442
438
|
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
|
|
443
439
|
}
|
|
@@ -459,7 +455,7 @@
|
|
|
459
455
|
"minimum": 0,
|
|
460
456
|
"maximum": 7,
|
|
461
457
|
"default": 0,
|
|
462
|
-
"description": "Select the characteristic type to be displayed in HomeKit
|
|
458
|
+
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
463
459
|
"anyOf": [
|
|
464
460
|
{
|
|
465
461
|
"title": "None / Disabled",
|
|
@@ -514,8 +510,8 @@
|
|
|
514
510
|
"name": {
|
|
515
511
|
"title": "Name",
|
|
516
512
|
"type": "string",
|
|
517
|
-
"
|
|
518
|
-
"description": "Your own name displayed in
|
|
513
|
+
"placeholder": "Preset",
|
|
514
|
+
"description": "Your own name displayed in HomeKit.",
|
|
519
515
|
"condition": {
|
|
520
516
|
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
|
|
521
517
|
}
|
|
@@ -552,7 +548,7 @@
|
|
|
552
548
|
"minimum": 0,
|
|
553
549
|
"maximum": 7,
|
|
554
550
|
"default": 0,
|
|
555
|
-
"description": "Select the characteristic type to be displayed in HomeKit
|
|
551
|
+
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
556
552
|
"anyOf": [
|
|
557
553
|
{
|
|
558
554
|
"title": "None / Disabled",
|
|
@@ -607,8 +603,8 @@
|
|
|
607
603
|
"name": {
|
|
608
604
|
"title": "Name",
|
|
609
605
|
"type": "string",
|
|
610
|
-
"
|
|
611
|
-
"description": "Your own name displayed in
|
|
606
|
+
"placeholder": "Schedule",
|
|
607
|
+
"description": "Your own name displayed in HomeKit.",
|
|
612
608
|
"condition": {
|
|
613
609
|
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
614
610
|
}
|
|
@@ -645,7 +641,7 @@
|
|
|
645
641
|
"minimum": 0,
|
|
646
642
|
"maximum": 7,
|
|
647
643
|
"default": 0,
|
|
648
|
-
"description": "Select the characteristic type to be displayed in HomeKit
|
|
644
|
+
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
649
645
|
"anyOf": [
|
|
650
646
|
{
|
|
651
647
|
"title": "None / Disabled",
|
|
@@ -700,8 +696,8 @@
|
|
|
700
696
|
"name": {
|
|
701
697
|
"title": "Name",
|
|
702
698
|
"type": "string",
|
|
703
|
-
"
|
|
704
|
-
"description": "Your own name displayed in
|
|
699
|
+
"placeholder": "Scene",
|
|
700
|
+
"description": "Your own name displayed in HomeKit.",
|
|
705
701
|
"condition": {
|
|
706
702
|
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].scenes[arrayIndices[2]].displayType > 0;"
|
|
707
703
|
}
|
|
@@ -733,7 +729,7 @@
|
|
|
733
729
|
"minimum": 0,
|
|
734
730
|
"maximum": 7,
|
|
735
731
|
"default": 0,
|
|
736
|
-
"description": "Select the characteristic type to be displayed in HomeKit
|
|
732
|
+
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
737
733
|
"anyOf": [
|
|
738
734
|
{
|
|
739
735
|
"title": "None / Disabled",
|
|
@@ -1011,7 +1007,7 @@
|
|
|
1011
1007
|
"title": "Name",
|
|
1012
1008
|
"type": "string",
|
|
1013
1009
|
"placeholder": "Button name",
|
|
1014
|
-
"description": "Your own name displayed in
|
|
1010
|
+
"description": "Your own name displayed in HomeKit.",
|
|
1015
1011
|
"condition": {
|
|
1016
1012
|
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
|
|
1017
1013
|
}
|
|
@@ -1056,15 +1052,11 @@
|
|
|
1056
1052
|
"type": "integer",
|
|
1057
1053
|
"default": 1
|
|
1058
1054
|
},
|
|
1059
|
-
"typeString": {
|
|
1060
|
-
"title": "Type",
|
|
1061
|
-
"type": "string",
|
|
1062
|
-
"default": "Heat Pump"
|
|
1063
|
-
},
|
|
1064
1055
|
"name": {
|
|
1065
1056
|
"title": "Name",
|
|
1066
1057
|
"type": "string",
|
|
1067
|
-
"default": "Heat Pump"
|
|
1058
|
+
"default": "Heat Pump",
|
|
1059
|
+
"description": "Your own name displayed in HomeKit."
|
|
1068
1060
|
},
|
|
1069
1061
|
"displayType": {
|
|
1070
1062
|
"title": "Display Type",
|
|
@@ -1072,7 +1064,7 @@
|
|
|
1072
1064
|
"minimum": 0,
|
|
1073
1065
|
"maximum": 2,
|
|
1074
1066
|
"default": 0,
|
|
1075
|
-
"description": "Select accessory control type displayed in HomeKit
|
|
1067
|
+
"description": "Select accessory control type displayed in HomeKit.",
|
|
1076
1068
|
"anyOf": [
|
|
1077
1069
|
{
|
|
1078
1070
|
"title": "None / Disabled",
|
|
@@ -1100,7 +1092,7 @@
|
|
|
1100
1092
|
"minimum": 0,
|
|
1101
1093
|
"maximum": 15,
|
|
1102
1094
|
"default": 0,
|
|
1103
|
-
"description": "Select zone to hidde in HomeKit
|
|
1095
|
+
"description": "Select zone to hidde in HomeKit, if present.",
|
|
1104
1096
|
"anyOf": [
|
|
1105
1097
|
{
|
|
1106
1098
|
"title": "None / Disabled",
|
|
@@ -1204,79 +1196,79 @@
|
|
|
1204
1196
|
"title": "Temperature Sensor Room",
|
|
1205
1197
|
"type": "boolean",
|
|
1206
1198
|
"default": false,
|
|
1207
|
-
"description": "This enable extra temperature sensor to use with automations in HomeKit
|
|
1199
|
+
"description": "This enable extra temperature sensor to use with automations in HomeKit."
|
|
1208
1200
|
},
|
|
1209
1201
|
"temperatureFlowSensor": {
|
|
1210
1202
|
"title": "Temperature Sensor Flow",
|
|
1211
1203
|
"type": "boolean",
|
|
1212
1204
|
"default": false,
|
|
1213
|
-
"description": "This enable extra Flow temperature sensor to use with automations in HomeKit
|
|
1205
|
+
"description": "This enable extra Flow temperature sensor to use with automations in HomeKit."
|
|
1214
1206
|
},
|
|
1215
1207
|
"temperatureReturnSensor": {
|
|
1216
1208
|
"title": "Temperature Sensor Return",
|
|
1217
1209
|
"type": "boolean",
|
|
1218
1210
|
"default": false,
|
|
1219
|
-
"description": "This enable extra Return temperature sensor to use with automations in HomeKit
|
|
1211
|
+
"description": "This enable extra Return temperature sensor to use with automations in HomeKit."
|
|
1220
1212
|
},
|
|
1221
1213
|
"temperatureFlowZone1Sensor": {
|
|
1222
1214
|
"title": "Temperature Sensor Flow Zone 1",
|
|
1223
1215
|
"type": "boolean",
|
|
1224
1216
|
"default": false,
|
|
1225
|
-
"description": "This enable extra Flow Zone 1 temperature sensor to use with automations in HomeKit
|
|
1217
|
+
"description": "This enable extra Flow Zone 1 temperature sensor to use with automations in HomeKit."
|
|
1226
1218
|
},
|
|
1227
1219
|
"temperatureReturnZone1Sensor": {
|
|
1228
1220
|
"title": "Temperature Sensor Return Zone 1",
|
|
1229
1221
|
"type": "boolean",
|
|
1230
1222
|
"default": false,
|
|
1231
|
-
"description": "This enable extra Return Zone 1 temperature sensor to use with automations in HomeKit
|
|
1223
|
+
"description": "This enable extra Return Zone 1 temperature sensor to use with automations in HomeKit."
|
|
1232
1224
|
},
|
|
1233
1225
|
"temperatureFlowWaterTankSensor": {
|
|
1234
1226
|
"title": "Temperature Sensor Flow Water Tank",
|
|
1235
1227
|
"type": "boolean",
|
|
1236
1228
|
"default": false,
|
|
1237
|
-
"description": "This enable extra Flow Water Tank temperature sensor to use with automations in HomeKit
|
|
1229
|
+
"description": "This enable extra Flow Water Tank temperature sensor to use with automations in HomeKit."
|
|
1238
1230
|
},
|
|
1239
1231
|
"temperatureReturnWaterTankSensor": {
|
|
1240
1232
|
"title": "Temperature Sensor Return Water Tank",
|
|
1241
1233
|
"type": "boolean",
|
|
1242
1234
|
"default": false,
|
|
1243
|
-
"description": "This enable extra Return Water Tank temperature sensor to use with automations in HomeKit
|
|
1235
|
+
"description": "This enable extra Return Water Tank temperature sensor to use with automations in HomeKit."
|
|
1244
1236
|
},
|
|
1245
1237
|
"temperatureFlowZone2Sensor": {
|
|
1246
1238
|
"title": "Temperature Sensor Flow Zone 2",
|
|
1247
1239
|
"type": "boolean",
|
|
1248
1240
|
"default": false,
|
|
1249
|
-
"description": "This enable extra Flow Zone 2 temperature sensor to use with automations in HomeKit
|
|
1241
|
+
"description": "This enable extra Flow Zone 2 temperature sensor to use with automations in HomeKit."
|
|
1250
1242
|
},
|
|
1251
1243
|
"temperatureReturnZone2Sensor": {
|
|
1252
1244
|
"title": "Temperature Sensor Return Zone 2",
|
|
1253
1245
|
"type": "boolean",
|
|
1254
1246
|
"default": false,
|
|
1255
|
-
"description": "This enable extra Return Zone 2 temperature sensor to use with automations in HomeKit
|
|
1247
|
+
"description": "This enable extra Return Zone 2 temperature sensor to use with automations in HomeKit."
|
|
1256
1248
|
},
|
|
1257
1249
|
"inStandbySensor": {
|
|
1258
1250
|
"title": "In Standby",
|
|
1259
1251
|
"type": "boolean",
|
|
1260
1252
|
"default": false,
|
|
1261
|
-
"description": "This enable in standby mode sensor to use with automations in HomeKit
|
|
1253
|
+
"description": "This enable in standby mode sensor to use with automations in HomeKit."
|
|
1262
1254
|
},
|
|
1263
1255
|
"connectSensor": {
|
|
1264
1256
|
"title": "Connect",
|
|
1265
1257
|
"type": "boolean",
|
|
1266
1258
|
"default": false,
|
|
1267
|
-
"description": "This enable connect state sensor to use with automations in HomeKit
|
|
1259
|
+
"description": "This enable connect state sensor to use with automations in HomeKit."
|
|
1268
1260
|
},
|
|
1269
1261
|
"errorSensor": {
|
|
1270
1262
|
"title": "Error",
|
|
1271
1263
|
"type": "boolean",
|
|
1272
1264
|
"default": false,
|
|
1273
|
-
"description": "This enable error sensor to use with automations in HomeKit
|
|
1265
|
+
"description": "This enable error sensor to use with automations in HomeKit."
|
|
1274
1266
|
},
|
|
1275
1267
|
"frostProtectionSupport": {
|
|
1276
1268
|
"title": "Frost Protection Support",
|
|
1277
1269
|
"type": "boolean",
|
|
1278
1270
|
"default": false,
|
|
1279
|
-
"description": "This enable frost protection control and sensors to use with automations in HomeKit
|
|
1271
|
+
"description": "This enable frost protection control and sensors to use with automations in HomeKit.",
|
|
1280
1272
|
"condition": {
|
|
1281
1273
|
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
|
|
1282
1274
|
}
|
|
@@ -1285,7 +1277,7 @@
|
|
|
1285
1277
|
"title": "Holiday Mode Support",
|
|
1286
1278
|
"type": "boolean",
|
|
1287
1279
|
"default": false,
|
|
1288
|
-
"description": "This enable holiday mode control and sensors to use with automations in HomeKit
|
|
1280
|
+
"description": "This enable holiday mode control and sensors to use with automations in HomeKit.",
|
|
1289
1281
|
"condition": {
|
|
1290
1282
|
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
|
|
1291
1283
|
}
|
|
@@ -1307,7 +1299,7 @@
|
|
|
1307
1299
|
"minimum": 0,
|
|
1308
1300
|
"maximum": 7,
|
|
1309
1301
|
"default": 0,
|
|
1310
|
-
"description": "Select the characteristic type to be displayed in HomeKit
|
|
1302
|
+
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
1311
1303
|
"anyOf": [
|
|
1312
1304
|
{
|
|
1313
1305
|
"title": "None / Disabled",
|
|
@@ -1362,8 +1354,8 @@
|
|
|
1362
1354
|
"name": {
|
|
1363
1355
|
"title": "Name",
|
|
1364
1356
|
"type": "string",
|
|
1365
|
-
"
|
|
1366
|
-
"description": "Your own name displayed in
|
|
1357
|
+
"placeholder": "Preset",
|
|
1358
|
+
"description": "Your own name displayed in HomeKit.",
|
|
1367
1359
|
"condition": {
|
|
1368
1360
|
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
|
|
1369
1361
|
}
|
|
@@ -1400,7 +1392,7 @@
|
|
|
1400
1392
|
"minimum": 0,
|
|
1401
1393
|
"maximum": 7,
|
|
1402
1394
|
"default": 0,
|
|
1403
|
-
"description": "Select the characteristic type to be displayed in HomeKit
|
|
1395
|
+
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
1404
1396
|
"anyOf": [
|
|
1405
1397
|
{
|
|
1406
1398
|
"title": "None / Disabled",
|
|
@@ -1455,8 +1447,8 @@
|
|
|
1455
1447
|
"name": {
|
|
1456
1448
|
"title": "Name",
|
|
1457
1449
|
"type": "string",
|
|
1458
|
-
"
|
|
1459
|
-
"description": "Your own name displayed in
|
|
1450
|
+
"placeholder": "Schedule",
|
|
1451
|
+
"description": "Your own name displayed in HomeKit.",
|
|
1460
1452
|
"condition": {
|
|
1461
1453
|
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
1462
1454
|
}
|
|
@@ -1493,7 +1485,7 @@
|
|
|
1493
1485
|
"minimum": 0,
|
|
1494
1486
|
"maximum": 7,
|
|
1495
1487
|
"default": 0,
|
|
1496
|
-
"description": "Select the characteristic type to be displayed in HomeKit
|
|
1488
|
+
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
1497
1489
|
"anyOf": [
|
|
1498
1490
|
{
|
|
1499
1491
|
"title": "None / Disabled",
|
|
@@ -1548,8 +1540,8 @@
|
|
|
1548
1540
|
"name": {
|
|
1549
1541
|
"title": "Name",
|
|
1550
1542
|
"type": "string",
|
|
1551
|
-
"
|
|
1552
|
-
"description": "Your own name displayed in
|
|
1543
|
+
"placeholder": "Scene",
|
|
1544
|
+
"description": "Your own name displayed in HomeKit.",
|
|
1553
1545
|
"condition": {
|
|
1554
1546
|
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].scenes[arrayIndices[2]].displayType > 0;"
|
|
1555
1547
|
}
|
|
@@ -1581,7 +1573,7 @@
|
|
|
1581
1573
|
"minimum": 0,
|
|
1582
1574
|
"maximum": 7,
|
|
1583
1575
|
"default": 0,
|
|
1584
|
-
"description": "Select the characteristic type to be displayed in HomeKit
|
|
1576
|
+
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
1585
1577
|
"anyOf": [
|
|
1586
1578
|
{
|
|
1587
1579
|
"title": "None / Disabled",
|
|
@@ -1781,7 +1773,7 @@
|
|
|
1781
1773
|
"title": "Name",
|
|
1782
1774
|
"type": "string",
|
|
1783
1775
|
"placeholder": "Button name",
|
|
1784
|
-
"description": "Your own name displayed in
|
|
1776
|
+
"description": "Your own name displayed in HomeKit.",
|
|
1785
1777
|
"condition": {
|
|
1786
1778
|
"functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
|
|
1787
1779
|
}
|
|
@@ -1824,15 +1816,11 @@
|
|
|
1824
1816
|
"type": "integer",
|
|
1825
1817
|
"default": 3
|
|
1826
1818
|
},
|
|
1827
|
-
"typeString": {
|
|
1828
|
-
"title": "Type",
|
|
1829
|
-
"type": "string",
|
|
1830
|
-
"default": "Ventilation"
|
|
1831
|
-
},
|
|
1832
1819
|
"name": {
|
|
1833
1820
|
"title": "Name",
|
|
1834
1821
|
"type": "string",
|
|
1835
|
-
"default": "Ventilation"
|
|
1822
|
+
"default": "Ventilation",
|
|
1823
|
+
"description": "Your own name displayed in HomeKit."
|
|
1836
1824
|
},
|
|
1837
1825
|
"displayType": {
|
|
1838
1826
|
"title": "Display Type",
|
|
@@ -1840,7 +1828,7 @@
|
|
|
1840
1828
|
"minimum": 0,
|
|
1841
1829
|
"maximum": 2,
|
|
1842
1830
|
"default": 0,
|
|
1843
|
-
"description": "Select accessory control type displayed in HomeKit
|
|
1831
|
+
"description": "Select accessory control type displayed in HomeKit.",
|
|
1844
1832
|
"anyOf": [
|
|
1845
1833
|
{
|
|
1846
1834
|
"title": "None / Disabled",
|
|
@@ -1866,43 +1854,43 @@
|
|
|
1866
1854
|
"title": "Temperature Sensor Room",
|
|
1867
1855
|
"type": "boolean",
|
|
1868
1856
|
"default": false,
|
|
1869
|
-
"description": "This enable extra temperature sensor to use with automations in HomeKit
|
|
1857
|
+
"description": "This enable extra temperature sensor to use with automations in HomeKit."
|
|
1870
1858
|
},
|
|
1871
1859
|
"temperatureOutdoorSensor": {
|
|
1872
1860
|
"title": "Temperature Sensor Outdoor",
|
|
1873
1861
|
"type": "boolean",
|
|
1874
1862
|
"default": false,
|
|
1875
|
-
"description": "This enable extra outdoor temperature sensor to use with automations in HomeKit
|
|
1863
|
+
"description": "This enable extra outdoor temperature sensor to use with automations in HomeKit."
|
|
1876
1864
|
},
|
|
1877
1865
|
"temperatureSensorSupply": {
|
|
1878
1866
|
"title": "Temperature Sensor Supply",
|
|
1879
1867
|
"type": "boolean",
|
|
1880
1868
|
"default": false,
|
|
1881
|
-
"description": "This enable extra supply temperature sensor to use with automations in HomeKit
|
|
1869
|
+
"description": "This enable extra supply temperature sensor to use with automations in HomeKit."
|
|
1882
1870
|
},
|
|
1883
1871
|
"inStandbySensor": {
|
|
1884
1872
|
"title": "In Standby",
|
|
1885
1873
|
"type": "boolean",
|
|
1886
1874
|
"default": false,
|
|
1887
|
-
"description": "This enable in standby mode sensor to use with automations in HomeKit
|
|
1875
|
+
"description": "This enable in standby mode sensor to use with automations in HomeKit."
|
|
1888
1876
|
},
|
|
1889
1877
|
"connectSensor": {
|
|
1890
1878
|
"title": "Connect",
|
|
1891
1879
|
"type": "boolean",
|
|
1892
1880
|
"default": false,
|
|
1893
|
-
"description": "This enable connect state sensor to use with automations in HomeKit
|
|
1881
|
+
"description": "This enable connect state sensor to use with automations in HomeKit."
|
|
1894
1882
|
},
|
|
1895
1883
|
"errorSensor": {
|
|
1896
1884
|
"title": "Error",
|
|
1897
1885
|
"type": "boolean",
|
|
1898
1886
|
"default": false,
|
|
1899
|
-
"description": "This enable error sensor to use with automations in HomeKit
|
|
1887
|
+
"description": "This enable error sensor to use with automations in HomeKit."
|
|
1900
1888
|
},
|
|
1901
1889
|
"holidayModeSupport": {
|
|
1902
1890
|
"title": "Holiday Mode Support",
|
|
1903
1891
|
"type": "boolean",
|
|
1904
1892
|
"default": false,
|
|
1905
|
-
"description": "This enable holiday mode control and sensors to use with automations in HomeKit
|
|
1893
|
+
"description": "This enable holiday mode control and sensors to use with automations in HomeKit.",
|
|
1906
1894
|
"condition": {
|
|
1907
1895
|
"functionBody": "return model.accounts[arrayIndices[0]].type === 'melcloudhome';"
|
|
1908
1896
|
}
|
|
@@ -1925,7 +1913,7 @@
|
|
|
1925
1913
|
"minimum": 0,
|
|
1926
1914
|
"maximum": 7,
|
|
1927
1915
|
"default": 0,
|
|
1928
|
-
"description": "Select the characteristic type to be displayed in HomeKit
|
|
1916
|
+
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
1929
1917
|
"anyOf": [
|
|
1930
1918
|
{
|
|
1931
1919
|
"title": "None / Disabled",
|
|
@@ -1980,8 +1968,8 @@
|
|
|
1980
1968
|
"name": {
|
|
1981
1969
|
"title": "Name",
|
|
1982
1970
|
"type": "string",
|
|
1983
|
-
"
|
|
1984
|
-
"description": "Your own name displayed in Homebridge / HomeKit app.",
|
|
1971
|
+
"placeholder": "Preset",
|
|
1972
|
+
"description": "Your own name displayed in Homebridge / Homebridge / HomeKit app.",
|
|
1985
1973
|
"condition": {
|
|
1986
1974
|
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
|
|
1987
1975
|
}
|
|
@@ -2018,7 +2006,7 @@
|
|
|
2018
2006
|
"minimum": 0,
|
|
2019
2007
|
"maximum": 7,
|
|
2020
2008
|
"default": 0,
|
|
2021
|
-
"description": "Select the characteristic type to be displayed in HomeKit
|
|
2009
|
+
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
2022
2010
|
"anyOf": [
|
|
2023
2011
|
{
|
|
2024
2012
|
"title": "None / Disabled",
|
|
@@ -2073,8 +2061,8 @@
|
|
|
2073
2061
|
"name": {
|
|
2074
2062
|
"title": "Name",
|
|
2075
2063
|
"type": "string",
|
|
2076
|
-
"
|
|
2077
|
-
"description": "Your own name displayed in
|
|
2064
|
+
"placeholder": "Preset",
|
|
2065
|
+
"description": "Your own name displayed in HomeKit.",
|
|
2078
2066
|
"condition": {
|
|
2079
2067
|
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].schedules[arrayIndices[2]].displayType > 0;"
|
|
2080
2068
|
}
|
|
@@ -2111,7 +2099,7 @@
|
|
|
2111
2099
|
"minimum": 0,
|
|
2112
2100
|
"maximum": 7,
|
|
2113
2101
|
"default": 0,
|
|
2114
|
-
"description": "Select the characteristic type to be displayed in HomeKit
|
|
2102
|
+
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
2115
2103
|
"anyOf": [
|
|
2116
2104
|
{
|
|
2117
2105
|
"title": "None / Disabled",
|
|
@@ -2166,8 +2154,8 @@
|
|
|
2166
2154
|
"name": {
|
|
2167
2155
|
"title": "Name",
|
|
2168
2156
|
"type": "string",
|
|
2169
|
-
"
|
|
2170
|
-
"description": "Your own name displayed in
|
|
2157
|
+
"placeholder": "Scene",
|
|
2158
|
+
"description": "Your own name displayed in HomeKit.",
|
|
2171
2159
|
"condition": {
|
|
2172
2160
|
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].scenes[arrayIndices[2]].displayType > 0;"
|
|
2173
2161
|
}
|
|
@@ -2199,7 +2187,7 @@
|
|
|
2199
2187
|
"minimum": 0,
|
|
2200
2188
|
"maximum": 7,
|
|
2201
2189
|
"default": 0,
|
|
2202
|
-
"description": "Select the characteristic type to be displayed in HomeKit
|
|
2190
|
+
"description": "Select the characteristic type to be displayed in HomeKit.",
|
|
2203
2191
|
"anyOf": [
|
|
2204
2192
|
{
|
|
2205
2193
|
"title": "None / Disabled",
|
|
@@ -2351,7 +2339,7 @@
|
|
|
2351
2339
|
"title": "Name",
|
|
2352
2340
|
"type": "string",
|
|
2353
2341
|
"placeholder": "Button name",
|
|
2354
|
-
"description": "Your own name displayed in
|
|
2342
|
+
"description": "Your own name displayed in HomeKit.",
|
|
2355
2343
|
"condition": {
|
|
2356
2344
|
"functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
|
|
2357
2345
|
}
|
|
@@ -2566,10 +2554,6 @@
|
|
|
2566
2554
|
"key": "accounts[].ataDevices[].id",
|
|
2567
2555
|
"readonly": true
|
|
2568
2556
|
},
|
|
2569
|
-
{
|
|
2570
|
-
"key": "accounts[].ataDevices[].typeString",
|
|
2571
|
-
"readonly": true
|
|
2572
|
-
},
|
|
2573
2557
|
"accounts[].ataDevices[].displayType",
|
|
2574
2558
|
{
|
|
2575
2559
|
"title": "Settings",
|
|
@@ -2741,10 +2725,6 @@
|
|
|
2741
2725
|
"key": "accounts[].atwDevices[].id",
|
|
2742
2726
|
"readonly": true
|
|
2743
2727
|
},
|
|
2744
|
-
{
|
|
2745
|
-
"key": "accounts[].atwDevices[].typeString",
|
|
2746
|
-
"readonly": true
|
|
2747
|
-
},
|
|
2748
2728
|
"accounts[].atwDevices[].displayType",
|
|
2749
2729
|
{
|
|
2750
2730
|
"type": "section",
|
|
@@ -2920,10 +2900,6 @@
|
|
|
2920
2900
|
"key": "accounts[].ervDevices[].id",
|
|
2921
2901
|
"readonly": true
|
|
2922
2902
|
},
|
|
2923
|
-
{
|
|
2924
|
-
"key": "accounts[].ervDevices[].typeString",
|
|
2925
|
-
"readonly": true
|
|
2926
|
-
},
|
|
2927
2903
|
"accounts[].ervDevices[].displayType",
|
|
2928
2904
|
{
|
|
2929
2905
|
"title": "Settings",
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
const unitIdToScenes = mapUnitIdToScenes(scenesInMelCloud);
|
|
292
292
|
|
|
293
293
|
// Generic device handler (obsługuje urządzenia, presety, harmonogramy i sceny)
|
|
294
|
-
const handleDevices = (devicesInMelCloud, devicesInConfig,
|
|
294
|
+
const handleDevices = (devicesInMelCloud, devicesInConfig, newDevices, newPresets, newSchedules, newScenes) => {
|
|
295
295
|
const configDevicesMap = new Map(devicesInConfig.map(dev => [String(dev.id), dev]));
|
|
296
296
|
|
|
297
297
|
devicesInMelCloud.forEach(device => {
|
|
@@ -299,7 +299,12 @@
|
|
|
299
299
|
let deviceInConfig = configDevicesMap.get(deviceId);
|
|
300
300
|
|
|
301
301
|
if (!deviceInConfig) {
|
|
302
|
-
deviceInConfig = {
|
|
302
|
+
deviceInConfig = {
|
|
303
|
+
id: deviceId,
|
|
304
|
+
type: device.Type,
|
|
305
|
+
displayType: 0,
|
|
306
|
+
name: device.DeviceName
|
|
307
|
+
};
|
|
303
308
|
devicesInConfig.push(deviceInConfig);
|
|
304
309
|
newDevices.push(deviceInConfig);
|
|
305
310
|
configDevicesMap.set(deviceId, deviceInConfig);
|
|
@@ -372,9 +377,9 @@
|
|
|
372
377
|
};
|
|
373
378
|
|
|
374
379
|
// Execute device handlers
|
|
375
|
-
account.ataDevices = handleDevices(devicesInMelCloudByType.ata, account.ataDevices,
|
|
376
|
-
account.atwDevices = handleDevices(devicesInMelCloudByType.atw, account.atwDevices,
|
|
377
|
-
account.ervDevices = handleDevices(devicesInMelCloudByType.erv, account.ervDevices,
|
|
380
|
+
account.ataDevices = handleDevices(devicesInMelCloudByType.ata, account.ataDevices, newInMelCloud.ata, newInMelCloud.ataPresets, newInMelCloud.ataSchedules, newInMelCloud.ataScenes);
|
|
381
|
+
account.atwDevices = handleDevices(devicesInMelCloudByType.atw, account.atwDevices, newInMelCloud.atw, newInMelCloud.atwPresets, newInMelCloud.atwSchedules, newInMelCloud.atwScenes);
|
|
382
|
+
account.ervDevices = handleDevices(devicesInMelCloudByType.erv, account.ervDevices, newInMelCloud.erv, newInMelCloud.ervPresets, newInMelCloud.ervSchedules, newInMelCloud.ervScenes);
|
|
378
383
|
|
|
379
384
|
// Summary counts
|
|
380
385
|
const newDevicesCount = newInMelCloud.ata.length + newInMelCloud.atw.length + newInMelCloud.erv.length;
|
package/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import DeviceAta from './src/deviceata.js';
|
|
|
6
6
|
import DeviceAtw from './src/deviceatw.js';
|
|
7
7
|
import DeviceErv from './src/deviceerv.js';
|
|
8
8
|
import ImpulseGenerator from './src/impulsegenerator.js';
|
|
9
|
-
import { PluginName, PlatformName } from './src/constants.js';
|
|
9
|
+
import { PluginName, PlatformName, DeviceType } from './src/constants.js';
|
|
10
10
|
|
|
11
11
|
class MelCloudPlatform {
|
|
12
12
|
constructor(log, config, api) {
|
|
@@ -126,7 +126,7 @@ class MelCloudPlatform {
|
|
|
126
126
|
device.id = String(device.id);
|
|
127
127
|
const deviceName = device.name;
|
|
128
128
|
const deviceType = device.type;
|
|
129
|
-
const deviceTypeString = device.
|
|
129
|
+
const deviceTypeString = DeviceType[device.type];
|
|
130
130
|
const defaultTempsFile = `${prefDir}/${name}_${device.id}_Temps`;
|
|
131
131
|
|
|
132
132
|
//chack device is not disabled in config
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.5.5-beta.
|
|
4
|
+
"version": "4.5.5-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",
|