homebridge-melcloud-control 3.1.0-beta.6 → 3.1.0-beta.8

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.
@@ -363,6 +363,20 @@
363
363
  "description": "Select the operating mode for Auto, if this mode is not supported, it will be disabled.",
364
364
  "required": true
365
365
  },
366
+ "temperatureSensor": {
367
+ "title": "Room",
368
+ "type": "boolean",
369
+ "default": false,
370
+ "description": "This enable extra room temperature sensor to use with automations in HomeKit app.",
371
+ "required": false
372
+ },
373
+ "temperatureSensorOutdoor": {
374
+ "title": "Outdoor",
375
+ "type": "boolean",
376
+ "default": false,
377
+ "description": "This enable extra outdoor temperature sensor to use with automations in HomeKit app.",
378
+ "required": false
379
+ },
366
380
  "presets": {
367
381
  "title": "Presets",
368
382
  "type": "array",
@@ -436,22 +450,11 @@
436
450
  "required": false
437
451
  }
438
452
  }
453
+ },
454
+ "condition": {
455
+ "functionBody": "const devicePresets = model.accounts[arrayIndices].devicesAta[arrayIndices]?.presets || []; return devicePresets.length > 0 && devicePresets.every(preset => preset.id != null && preset.id !== '');"
439
456
  }
440
457
  },
441
- "temperatureSensor": {
442
- "title": "Room",
443
- "type": "boolean",
444
- "default": false,
445
- "description": "This enable extra room temperature sensor to use with automations in HomeKit app.",
446
- "required": false
447
- },
448
- "temperatureSensorOutdoor": {
449
- "title": "Outdoor",
450
- "type": "boolean",
451
- "default": false,
452
- "description": "This enable extra outdoor temperature sensor to use with automations in HomeKit app.",
453
- "required": false
454
- },
455
458
  "buttonsSensors": {
456
459
  "title": "Button / Sensor",
457
460
  "type": "array",
@@ -740,6 +743,9 @@
740
743
  "required": false
741
744
  }
742
745
  }
746
+ },
747
+ "condition": {
748
+ "functionBody": "const buttons = model.accounts[arrayIndices].devicesAta[arrayIndices]?.buttons || []; return buttons.length > 0 && buttons.every(button => button.name != null && button.name !== '');"
743
749
  }
744
750
  }
745
751
  }
@@ -939,6 +945,9 @@
939
945
  "required": false
940
946
  }
941
947
  }
948
+ },
949
+ "condition": {
950
+ "functionBody": "const devicePresets = model.accounts[arrayIndices].devicesAtw[arrayIndices]?.presets || []; return devicePresets.length > 0 && devicePresets.every(preset => preset.id != null && preset.id !== '');"
942
951
  }
943
952
  },
944
953
  "buttonsSensors": {
@@ -1151,6 +1160,9 @@
1151
1160
  "required": false
1152
1161
  }
1153
1162
  }
1163
+ },
1164
+ "condition": {
1165
+ "functionBody": "const buttons = model.accounts[arrayIndices].devicesAtw[arrayIndices]?.buttons || []; return buttons.length > 0 && buttons.every(button => button.name != null && button.name !== '');"
1154
1166
  }
1155
1167
  }
1156
1168
  }
@@ -1308,6 +1320,9 @@
1308
1320
  "required": false
1309
1321
  }
1310
1322
  }
1323
+ },
1324
+ "condition": {
1325
+ "functionBody": "const devicePresets = model.accounts[arrayIndices].devicesErv[arrayIndices]?.presets || []; return devicePresets.length > 0 && devicePresets.every(preset => preset.id != null && preset.id !== '');"
1311
1326
  }
1312
1327
  },
1313
1328
  "buttonsSensors": {
@@ -1472,6 +1487,9 @@
1472
1487
  "required": false
1473
1488
  }
1474
1489
  }
1490
+ },
1491
+ "condition": {
1492
+ "functionBody": "const buttons = model.accounts[arrayIndices].devicesErv[arrayIndices]?.buttons || []; return buttons.length > 0 && buttons.every(button => button.name != null && button.name !== '');"
1475
1493
  }
1476
1494
  }
1477
1495
  }
@@ -223,6 +223,7 @@
223
223
  const presetId = preset.ID;
224
224
  const presetName = preset.NumberDescription;
225
225
 
226
+ preset.id = presetId;
226
227
  preset.name = presetName;
227
228
  preset.displayType == 0;
228
229
  preset.namePrefix = false;
@@ -279,6 +280,7 @@
279
280
  const presetId = preset.ID;
280
281
  const presetName = preset.NumberDescription;
281
282
 
283
+ preset.id = presetId;
282
284
  preset.name = presetName;
283
285
  preset.displayType == 0;
284
286
  preset.namePrefix = false;
@@ -329,6 +331,7 @@
329
331
  const presetId = preset.ID;
330
332
  const presetName = preset.NumberDescription;
331
333
 
334
+ preset.id = presetId;
332
335
  preset.name = presetName;
333
336
  preset.displayType == 0;
334
337
  preset.namePrefix = false;
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.6",
4
+ "version": "3.1.0-beta.8",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",