homebridge-melcloud-control 3.1.0-beta.7 → 3.1.0-beta.9

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",
@@ -438,23 +452,9 @@
438
452
  }
439
453
  },
440
454
  "condition": {
441
- "functionBody": "const devicePresets = model.accounts[arrayIndices].devicesAta[arrayIndices]?.presets || []; return devicePresets.length > 0 && devicePresets.every(preset => preset.id != null && preset.id !== '');"
455
+ "functionBody": "const presets = model.accounts[arrayIndices]?.devicesAta[arrayIndices]?.presets || []; const hasValidPresets = presets.length > 0 && presets.every(preset => preset.name != null && preset.name !== ''); return hasValidPresets;"
442
456
  }
443
457
  },
444
- "temperatureSensor": {
445
- "title": "Room",
446
- "type": "boolean",
447
- "default": false,
448
- "description": "This enable extra room temperature sensor to use with automations in HomeKit app.",
449
- "required": false
450
- },
451
- "temperatureSensorOutdoor": {
452
- "title": "Outdoor",
453
- "type": "boolean",
454
- "default": false,
455
- "description": "This enable extra outdoor temperature sensor to use with automations in HomeKit app.",
456
- "required": false
457
- },
458
458
  "buttonsSensors": {
459
459
  "title": "Button / Sensor",
460
460
  "type": "array",
@@ -745,7 +745,7 @@
745
745
  }
746
746
  },
747
747
  "condition": {
748
- "functionBody": "const buttons = model.accounts[arrayIndices].devicesAta[arrayIndices]?.buttons || []; return buttons.length > 0 && buttons.every(preset => buttons.name != null && device.name !== '');"
748
+ "functionBody": "const buttons = model.accounts[arrayIndices]?.devicesAta[arrayIndices]?.buttons || []; const hasValidButtons = buttons.length > 0 && buttons.every(button => button.name != null && button.name !== ''); return hasValidButtons;"
749
749
  }
750
750
  }
751
751
  }
@@ -947,7 +947,7 @@
947
947
  }
948
948
  },
949
949
  "condition": {
950
- "functionBody": "const devicePresets = model.accounts[arrayIndices].devicesAtw[arrayIndices]?.presets || []; return devicePresets.length > 0 && devicePresets.every(preset => preset.id != null && preset.id !== '');"
950
+ "functionBody": "const presets = model.accounts[arrayIndices]?.devicesAtw[arrayIndices]?.presets || []; const hasValidPresets = presets.length > 0 && presets.every(preset => preset.name != null && preset.name !== ''); return hasValidPresets;"
951
951
  }
952
952
  },
953
953
  "buttonsSensors": {
@@ -1162,7 +1162,7 @@
1162
1162
  }
1163
1163
  },
1164
1164
  "condition": {
1165
- "functionBody": "const buttons = model.accounts[arrayIndices].devicesAtw[arrayIndices]?.buttons || []; return buttons.length > 0 && buttons.every(preset => buttons.name != null && device.name !== '');"
1165
+ "functionBody": "const buttons = model.accounts[arrayIndices]?.devicesAtw[arrayIndices]?.buttons || []; const hasValidButtons = buttons.length > 0 && buttons.every(button => button.name != null && button.name !== ''); return hasValidButtons;"
1166
1166
  }
1167
1167
  }
1168
1168
  }
@@ -1322,7 +1322,7 @@
1322
1322
  }
1323
1323
  },
1324
1324
  "condition": {
1325
- "functionBody": "const devicePresets = model.accounts[arrayIndices].devicesErv[arrayIndices]?.presets || []; return devicePresets.length > 0 && devicePresets.every(preset => preset.id != null && preset.id !== '');"
1325
+ "functionBody": "const presets = model.accounts[arrayIndices]?.devicesErv[arrayIndices]?.presets || []; const hasValidPresets = presets.length > 0 && presets.every(preset => preset.name != null && preset.name !== ''); return hasValidPresets;"
1326
1326
  }
1327
1327
  },
1328
1328
  "buttonsSensors": {
@@ -1489,7 +1489,7 @@
1489
1489
  }
1490
1490
  },
1491
1491
  "condition": {
1492
- "functionBody": "const buttons = model.accounts[arrayIndices].devicesErv[arrayIndices]?.buttons || []; return buttons.length > 0 && buttons.every(preset => buttons.name != null && device.name !== '');"
1492
+ "functionBody": "const buttons = model.accounts[arrayIndices]?.devicesErv[arrayIndices]?.buttons || []; const hasValidButtons = buttons.length > 0 && buttons.every(button => button.name != null && button.name !== ''); return hasValidButtons;"
1493
1493
  }
1494
1494
  }
1495
1495
  }
@@ -223,7 +223,7 @@
223
223
  const presetId = preset.ID;
224
224
  const presetName = preset.NumberDescription;
225
225
 
226
- preset.Id = presetId;
226
+ preset.id = presetId;
227
227
  preset.name = presetName;
228
228
  preset.displayType == 0;
229
229
  preset.namePrefix = false;
@@ -280,7 +280,7 @@
280
280
  const presetId = preset.ID;
281
281
  const presetName = preset.NumberDescription;
282
282
 
283
- preset.Id = presetId;
283
+ preset.id = presetId;
284
284
  preset.name = presetName;
285
285
  preset.displayType == 0;
286
286
  preset.namePrefix = false;
@@ -331,7 +331,7 @@
331
331
  const presetId = preset.ID;
332
332
  const presetName = preset.NumberDescription;
333
333
 
334
- preset.Id = presetId;
334
+ preset.id = presetId;
335
335
  preset.name = presetName;
336
336
  preset.displayType == 0;
337
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.7",
4
+ "version": "3.1.0-beta.9",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",