homebridge-melcloud-control 2.5.0-beta.33 → 2.5.0-beta.35

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.
@@ -214,18 +214,19 @@
214
214
  "name": {
215
215
  "title": "Name",
216
216
  "type": "string",
217
+ "default": "",
217
218
  "required": true
218
219
  },
219
220
  "id": {
220
- "title": "Mode",
221
+ "title": "ID",
221
222
  "type": "integer",
222
- "description": "Device ID.",
223
+ "default": 0,
223
224
  "required": true
224
225
  },
225
226
  "type": {
226
227
  "title": "Type",
227
228
  "type": "integer",
228
- "description": "Device Type.",
229
+ "default": 0,
229
230
  "required": true
230
231
  },
231
232
  "displayMode": {
@@ -1581,6 +1582,39 @@
1581
1582
  "type": "password"
1582
1583
  },
1583
1584
  "accounts[].language",
1585
+ {
1586
+ "key": "accounts[].devicesAta",
1587
+ "type": "tabarray",
1588
+ "title": "{{ value.name }}",
1589
+ "items": [
1590
+ "accounts[].devicesAta[].name",
1591
+ "accounts[].devicesAta[].id",
1592
+ "accounts[].devicesAta[].type",
1593
+ "accounts[].devicesAta[].displayMode"
1594
+ ]
1595
+ },
1596
+ {
1597
+ "key": "accounts[].devicesAtw",
1598
+ "type": "tabarray",
1599
+ "title": "{{ value.name }}",
1600
+ "items": [
1601
+ "accounts[].devicesAtw[].name",
1602
+ "accounts[].devicesAtw[].id",
1603
+ "accounts[].devicesAtw[].type",
1604
+ "accounts[].devicesAtw[].displayMode"
1605
+ ]
1606
+ },
1607
+ {
1608
+ "key": "accounts[].devicesErv",
1609
+ "type": "tabarray",
1610
+ "title": "{{ value.name }}",
1611
+ "items": [
1612
+ "accounts[].devicesAtw[].name",
1613
+ "accounts[].devicesAtw[].id",
1614
+ "accounts[].devicesAtw[].type",
1615
+ "accounts[].devicesAtw[].displayMode"
1616
+ ]
1617
+ },
1584
1618
  {
1585
1619
  "key": "accounts[]",
1586
1620
  "type": "section",
@@ -83,8 +83,8 @@
83
83
  const setRemoveAtribute = j === i ? document.getElementById(`button${j}`).setAttribute("class", "btn btn-secondary") : document.getElementById(`button${j}`).setAttribute("class", "btn btn-primary");
84
84
  }
85
85
 
86
- const devicesCount = pluginConfig[0].accounts[i].devicesAta.length ?? 0;
87
- document.getElementById('info').innerHTML = `MELCloud configured ${devicesCount} ${devicesCount} ${devicesCount !== 1 ? 'devices' : 'device'}.`;
86
+ //const devicesCount = pluginConfig[0].accounts[i].devicesAta.length ?? 0;
87
+ //document.getElementById('info').innerHTML = `MELCloud configured ${devicesCount} ${devicesCount} ${devicesCount !== 1 ? 'devices' : 'device'}.`;
88
88
  document.getElementById('accountName').innerHTML = pluginConfig[0].accounts[i].name || '';
89
89
  document.getElementById('name').value = pluginConfig[0].accounts[i].name || '';
90
90
  document.getElementById('user').value = pluginConfig[0].accounts[i].user || '';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "2.5.0-beta.33",
4
+ "version": "2.5.0-beta.35",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",