homebridge-melcloud-control 3.10.0-beta.23 → 3.10.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.
@@ -390,12 +390,6 @@
390
390
  "title": "ID",
391
391
  "type": "integer"
392
392
  },
393
- "name": {
394
- "title": "Name",
395
- "type": "string",
396
- "placeholder": "Preset name",
397
- "description": "Your own name displayed in Homebridge/HomeKit app."
398
- },
399
393
  "displayType": {
400
394
  "title": "Display Type",
401
395
  "type": "integer",
@@ -442,11 +436,23 @@
442
436
  }
443
437
  ]
444
438
  },
439
+ "name": {
440
+ "title": "Name",
441
+ "type": "string",
442
+ "placeholder": "Preset name",
443
+ "description": "Your own name displayed in Homebridge/HomeKit app.",
444
+ "condition": {
445
+ "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
446
+ }
447
+ },
445
448
  "namePrefix": {
446
449
  "title": "Prefix",
447
450
  "type": "boolean",
448
451
  "default": false,
449
- "description": "Enable/disable the accessory name as a prefix for button/sensor name."
452
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
453
+ "condition": {
454
+ "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
455
+ }
450
456
  }
451
457
  },
452
458
  "required": [
@@ -723,19 +729,28 @@
723
729
  40
724
730
  ]
725
731
  }
726
- ]
732
+ ],
733
+ "condition": {
734
+ "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
735
+ }
727
736
  },
728
737
  "name": {
729
738
  "title": "Name",
730
739
  "type": "string",
731
740
  "placeholder": "Button name",
732
- "description": "Your own name displayed in Homebridge/HomeKit app."
741
+ "description": "Your own name displayed in Homebridge/HomeKit app.",
742
+ "condition": {
743
+ "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
744
+ }
733
745
  },
734
746
  "namePrefix": {
735
747
  "title": "Prefix",
736
748
  "type": "boolean",
737
749
  "default": false,
738
- "description": "Enable/disable the accessory name as a prefix for button/sensor name."
750
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
751
+ "condition": {
752
+ "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
753
+ }
739
754
  }
740
755
  },
741
756
  "required": [
@@ -1040,13 +1055,19 @@
1040
1055
  "title": "Name",
1041
1056
  "type": "string",
1042
1057
  "placeholder": "Preset name",
1043
- "description": "Your own name displayed in Homebridge/HomeKit app."
1058
+ "description": "Your own name displayed in Homebridge/HomeKit app.",
1059
+ "condition": {
1060
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
1061
+ }
1044
1062
  },
1045
1063
  "namePrefix": {
1046
1064
  "title": "Prefix",
1047
1065
  "type": "boolean",
1048
1066
  "default": false,
1049
- "description": "Enable/disable the accessory name as a prefix for button/sensor name."
1067
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
1068
+ "condition": {
1069
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
1070
+ }
1050
1071
  }
1051
1072
  },
1052
1073
  "required": [
@@ -1245,19 +1266,28 @@
1245
1266
  70
1246
1267
  ]
1247
1268
  }
1248
- ]
1269
+ ],
1270
+ "condition": {
1271
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
1272
+ }
1249
1273
  },
1250
1274
  "name": {
1251
1275
  "title": "Name",
1252
1276
  "type": "string",
1253
1277
  "placeholder": "Button name",
1254
- "description": "Your own name displayed in Homebridge/HomeKit app."
1278
+ "description": "Your own name displayed in Homebridge/HomeKit app.",
1279
+ "condition": {
1280
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
1281
+ }
1255
1282
  },
1256
1283
  "namePrefix": {
1257
1284
  "title": "Prefix",
1258
1285
  "type": "boolean",
1259
1286
  "default": false,
1260
- "description": "Enable/disable the accessory name as a prefix for button/sensor name."
1287
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
1288
+ "condition": {
1289
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
1290
+ }
1261
1291
  }
1262
1292
  },
1263
1293
  "required": [
@@ -1413,19 +1443,28 @@
1413
1443
  5
1414
1444
  ]
1415
1445
  }
1416
- ]
1446
+ ],
1447
+ "condition": {
1448
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
1449
+ }
1417
1450
  },
1418
1451
  "name": {
1419
1452
  "title": "Name",
1420
1453
  "type": "string",
1421
1454
  "placeholder": "Preset name",
1422
- "description": "Your own name displayed in Homebridge/HomeKit app."
1455
+ "description": "Your own name displayed in Homebridge/HomeKit app.",
1456
+ "condition": {
1457
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
1458
+ }
1423
1459
  },
1424
1460
  "namePrefix": {
1425
1461
  "title": "Prefix",
1426
1462
  "type": "boolean",
1427
1463
  "default": false,
1428
- "description": "Enable/disable the accessory name as a prefix for button/sensor name."
1464
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
1465
+ "condition": {
1466
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].presets[arrayIndices[2]].displayType > 0;"
1467
+ }
1429
1468
  }
1430
1469
  },
1431
1470
  "required": [
@@ -1576,19 +1615,28 @@
1576
1615
  18
1577
1616
  ]
1578
1617
  }
1579
- ]
1618
+ ],
1619
+ "condition": {
1620
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
1621
+ }
1580
1622
  },
1581
1623
  "name": {
1582
1624
  "title": "Name",
1583
1625
  "type": "string",
1584
1626
  "placeholder": "Button name",
1585
- "description": "Your own name displayed in Homebridge/HomeKit app."
1627
+ "description": "Your own name displayed in Homebridge/HomeKit app.",
1628
+ "condition": {
1629
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
1630
+ }
1586
1631
  },
1587
1632
  "namePrefix": {
1588
1633
  "title": "Prefix",
1589
1634
  "type": "boolean",
1590
1635
  "default": false,
1591
- "description": "Enable/disable the accessory name as a prefix for button/sensor name."
1636
+ "description": "Enable/disable the accessory name as a prefix for button/sensor name.",
1637
+ "condition": {
1638
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].buttonsSensors[arrayIndices[2]].displayType > 0;"
1639
+ }
1592
1640
  }
1593
1641
  },
1594
1642
  "required": [
@@ -11,12 +11,12 @@
11
11
 
12
12
  <body>
13
13
 
14
- <div class="container mt-4">
14
+ <div class="container mt-3">
15
15
  <div class="text-center">
16
16
  <img src="homebridge-melcloud-control.png" alt="Image" height="120" />
17
17
  </div>
18
18
 
19
- <div id="melCloudAccount" class="card card-body mt-3">
19
+ <div id="melCloudAccount" class="card card-body mt-2">
20
20
  <form id="configForm">
21
21
  <div class="text-center">
22
22
  <label id="accountName" class="fw-bold" style="font-size: 23px;">Account</label><br>
@@ -25,17 +25,17 @@
25
25
  <label id="info2" class="d-block" style="font-size: 12px;"></label>
26
26
  </div>
27
27
 
28
- <div class="mb-3">
28
+ <div class="mb-2">
29
29
  <label for="name" class="form-label">Name</label>
30
30
  <input id="name" type="text" class="form-control" required>
31
31
  </div>
32
32
 
33
- <div class="mb-3">
33
+ <div class="mb-2">
34
34
  <label for="user" class="form-label">User Name</label>
35
35
  <input id="user" type="text" class="form-control" required>
36
36
  </div>
37
37
 
38
- <div class="mb-3 position-relative">
38
+ <div class="mb-2 position-relative">
39
39
  <label for="passwd" class="form-label">Password</label>
40
40
  <div class="input-group">
41
41
  <input id="passwd" type="password" class="form-control" autocomplete="off" required>
@@ -45,7 +45,7 @@
45
45
  </div>
46
46
  </div>
47
47
 
48
- <div class="mb-3">
48
+ <div class="mb-2">
49
49
  <label for="language" class="form-label">Language</label>
50
50
  <select id="language" name="language" class="form-control">
51
51
  <option value="0">English</option>
@@ -83,7 +83,7 @@
83
83
  </form>
84
84
  </div>
85
85
 
86
- <div id="accountButton" class="mt-3"></div>
86
+ <div id="accountButton" class="mt-2"></div>
87
87
  </div>
88
88
 
89
89
  <script>
@@ -238,7 +238,7 @@
238
238
 
239
239
  handleDevices(devicesByType.ata, acc.ataDevices, "Air Conditioner", newDevices.ata, newDevices.ataPresets);
240
240
  handleDevices(devicesByType.atw, acc.atwDevices, "Heat Pump", newDevices.atw, newDevices.atwPresets);
241
- handleDevices(devicesByType.erv, acc.ervDevices, "ERV", newDevices.erv, newDevices.ervPresets);
241
+ handleDevices(devicesByType.erv, acc.ervDevices, "Energy Recovery ventiltion", newDevices.erv, newDevices.ervPresets);
242
242
 
243
243
  // Display summary
244
244
  const newDevicesCount = newDevices.ata.length + newDevices.atw.length + newDevices.erv.length;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.10.0-beta.23",
4
+ "version": "3.10.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",