homey-lib 2.49.2 → 2.50.1

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.
Files changed (60) hide show
  1. package/assets/app/schema.d.ts +36 -1
  2. package/assets/app/schema.json +143 -0
  3. package/assets/capability/capabilities/alarm_battery.json +15 -0
  4. package/assets/capability/capabilities/alarm_bin_full.json +15 -0
  5. package/assets/capability/capabilities/alarm_bin_missing.json +15 -0
  6. package/assets/capability/capabilities/alarm_cleaning_pad_missing.json +15 -0
  7. package/assets/capability/capabilities/alarm_co.json +15 -0
  8. package/assets/capability/capabilities/alarm_co2.json +15 -0
  9. package/assets/capability/capabilities/alarm_cold.json +15 -0
  10. package/assets/capability/capabilities/alarm_connectivity.json +15 -0
  11. package/assets/capability/capabilities/alarm_contact.json +15 -0
  12. package/assets/capability/capabilities/alarm_door_fault.json +15 -0
  13. package/assets/capability/capabilities/alarm_fire.json +15 -0
  14. package/assets/capability/capabilities/alarm_freeze_risk.json +15 -0
  15. package/assets/capability/capabilities/alarm_gas.json +15 -0
  16. package/assets/capability/capabilities/alarm_generic.json +15 -0
  17. package/assets/capability/capabilities/alarm_heat.json +15 -0
  18. package/assets/capability/capabilities/alarm_light.json +15 -0
  19. package/assets/capability/capabilities/alarm_lost.json +15 -0
  20. package/assets/capability/capabilities/alarm_moisture.json +15 -0
  21. package/assets/capability/capabilities/alarm_motion.json +15 -0
  22. package/assets/capability/capabilities/alarm_night.json +15 -0
  23. package/assets/capability/capabilities/alarm_noise.json +15 -0
  24. package/assets/capability/capabilities/alarm_occupancy.json +15 -0
  25. package/assets/capability/capabilities/alarm_open.json +15 -0
  26. package/assets/capability/capabilities/alarm_pm01.json +15 -0
  27. package/assets/capability/capabilities/alarm_pm1.json +15 -0
  28. package/assets/capability/capabilities/alarm_pm10.json +15 -0
  29. package/assets/capability/capabilities/alarm_pm25.json +15 -0
  30. package/assets/capability/capabilities/alarm_power.json +15 -0
  31. package/assets/capability/capabilities/alarm_presence.json +15 -0
  32. package/assets/capability/capabilities/alarm_problem.json +15 -0
  33. package/assets/capability/capabilities/alarm_pump_device.json +15 -0
  34. package/assets/capability/capabilities/alarm_pump_supply.json +15 -0
  35. package/assets/capability/capabilities/alarm_rain.json +15 -0
  36. package/assets/capability/capabilities/alarm_running.json +15 -0
  37. package/assets/capability/capabilities/alarm_safety.json +15 -0
  38. package/assets/capability/capabilities/alarm_smoke.json +15 -0
  39. package/assets/capability/capabilities/alarm_stuck.json +15 -0
  40. package/assets/capability/capabilities/alarm_tamper.json +15 -0
  41. package/assets/capability/capabilities/alarm_tank_empty.json +15 -0
  42. package/assets/capability/capabilities/alarm_tank_missing.json +15 -0
  43. package/assets/capability/capabilities/alarm_tank_open.json +15 -0
  44. package/assets/capability/capabilities/alarm_vibration.json +15 -0
  45. package/assets/capability/capabilities/alarm_water.json +15 -0
  46. package/assets/capability/schema.d.ts +1 -0
  47. package/assets/capability/schema.json +3 -0
  48. package/helpers/index.js +2 -2
  49. package/index.js +1 -0
  50. package/lib/App/index.js +65 -9
  51. package/lib/Util/index.js +59 -0
  52. package/package.json +1 -1
  53. package/types/assets/app/schema.d.ts +36 -1
  54. package/types/assets/capability/schema.d.ts +1 -0
  55. package/types/index.d.ts +1 -0
  56. package/types/index.d.ts.map +1 -1
  57. package/types/lib/App/index.d.ts.map +1 -1
  58. package/types/lib/Util/index.d.ts +45 -6
  59. package/types/lib/Util/index.d.ts.map +1 -1
  60. package/webpack/index.js +1 -1
@@ -15,6 +15,21 @@
15
15
  "ar": "إنذار الضوضاء",
16
16
  "de": "Geräuschalarm"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Noise",
20
+ "nl": "Geluid",
21
+ "da": "Støj",
22
+ "it": "Rumore",
23
+ "ko": "소음",
24
+ "no": "Støy",
25
+ "pl": "Hałas",
26
+ "ru": "Шум",
27
+ "sv": "Buller",
28
+ "es": "Ruido",
29
+ "fr": "Son",
30
+ "ar": "الضوضاء",
31
+ "de": "Geräusch"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when sound is detected.",
20
35
  "nl": "Wordt geactiveerd wanneer geluid wordt gedetecteerd.",
@@ -15,6 +15,21 @@
15
15
  "ar": "إنذار الإشغال",
16
16
  "de": "Belegungsalarm"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Occupancy",
20
+ "nl": "Bezetting",
21
+ "da": "Beboelse",
22
+ "it": "Occupazione",
23
+ "ko": "점유",
24
+ "no": "Bruk",
25
+ "pl": "Aktywność",
26
+ "ru": "Активность",
27
+ "sv": "Närvaro",
28
+ "es": "Ocupación",
29
+ "fr": "Occupation",
30
+ "ar": "الإشغال",
31
+ "de": "Belegung"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when occupancy is detected.",
20
35
  "nl": "Wordt geactiveerd wanneer gebruik wordt gedetecteerd.",
@@ -15,6 +15,21 @@
15
15
  "ru": "Сигнализация открытия",
16
16
  "sv": "Öppet larm"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Open",
20
+ "ar": "الفتح",
21
+ "da": "Åben",
22
+ "de": "Geöffnet",
23
+ "es": "Apertura",
24
+ "fr": "Ouverture",
25
+ "it": "Apertura",
26
+ "ko": "열림",
27
+ "nl": "Open",
28
+ "no": "Åpen",
29
+ "pl": "Otwarcie",
30
+ "ru": "Открытие",
31
+ "sv": "Öppet"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when a door/window/etc... is open.",
20
35
  "ar": "صحيح عند فتح الباب/النافذة/... إلخ....",
@@ -15,6 +15,21 @@
15
15
  "ko": "나노미세먼지(PM0.1) 알람",
16
16
  "ar": "إنذار PM0.1"
17
17
  },
18
+ "titleShort": {
19
+ "en": "PM0.1",
20
+ "nl": "PM0.1",
21
+ "de": "PM0.1",
22
+ "fr": "PM0.1",
23
+ "it": "PM0.1",
24
+ "sv": "PM0.1",
25
+ "no": "PM0.1",
26
+ "es": "PM0,1",
27
+ "da": "PM0.1",
28
+ "ru": "ТЧ0.1",
29
+ "pl": "PM0.1",
30
+ "ko": "나노미세먼지(PM0.1)",
31
+ "ar": "PM0.1"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when PM0.1 values exceeds threshold",
20
35
  "nl": "Wordt geactiveerd wanneer PM0.1-waarden de drempel overschrijden",
@@ -15,6 +15,21 @@
15
15
  "ko": "극초미세먼지(PM1.0) 알람",
16
16
  "ar": "إنذار PM1"
17
17
  },
18
+ "titleShort": {
19
+ "en": "PM1",
20
+ "nl": "PM1",
21
+ "de": "PM1",
22
+ "fr": "PM1",
23
+ "it": "PM1",
24
+ "sv": "PM1",
25
+ "no": "PM1",
26
+ "es": "PM1",
27
+ "da": "PM1",
28
+ "ru": "ТЧ1",
29
+ "pl": "PM1",
30
+ "ko": "극초미세먼지(PM1.0)",
31
+ "ar": "PM1"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when PM1 values exceeds threshold",
20
35
  "nl": "Wordt geactiveerd wanneer PM1-waarden de drempel overschrijden",
@@ -15,6 +15,21 @@
15
15
  "ko": "미세먼지(PM10) 알람",
16
16
  "ar": "إنذار PM10"
17
17
  },
18
+ "titleShort": {
19
+ "en": "PM10",
20
+ "nl": "PM10",
21
+ "de": "PM10",
22
+ "fr": "PM10",
23
+ "it": "PM10",
24
+ "sv": "PM10",
25
+ "no": "PM10",
26
+ "es": "PM10",
27
+ "da": "PM10",
28
+ "ru": "ТЧ10",
29
+ "pl": "PM10",
30
+ "ko": "미세먼지(PM10)",
31
+ "ar": "PM10"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when PM10 values exceeds threshold",
20
35
  "nl": "Wordt geactiveerd wanneer PM10-waarden de drempel overschrijden",
@@ -15,6 +15,21 @@
15
15
  "ko": "초미세먼지(PM2.5) 알람",
16
16
  "ar": "إنذار PM2.5"
17
17
  },
18
+ "titleShort": {
19
+ "en": "PM2.5",
20
+ "nl": "PM2,5",
21
+ "de": "PM2.5",
22
+ "fr": "PM2.5",
23
+ "it": "PM2.5",
24
+ "sv": "PM2.5",
25
+ "no": "PM2.5",
26
+ "es": "PM2,5",
27
+ "da": "PM2,5",
28
+ "ru": "ТЧ2.5",
29
+ "pl": "PM2.5",
30
+ "ko": "초미세먼지(PM2.5)",
31
+ "ar": "PM2.5"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when PM2.5 values exceeds threshold",
20
35
  "nl": "Gaat af wanneer de PM2,5 waarde overschreden wordt",
@@ -15,6 +15,21 @@
15
15
  "ar": "إنذار الطاقة",
16
16
  "de": "Stromalarm"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Power",
20
+ "nl": "Stroom",
21
+ "da": "Strøm",
22
+ "it": "Alimentazione",
23
+ "ko": "전원",
24
+ "no": "Strøm",
25
+ "pl": "Zasilanie",
26
+ "ru": "Питание",
27
+ "sv": "Ström",
28
+ "es": "Suministro eléctrico",
29
+ "fr": "Alimentation électrique",
30
+ "ar": "الطاقة",
31
+ "de": "Strom"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when power is detected.",
20
35
  "nl": "Wordt geactiveerd wanneer stroom wordt gedetecteerd.",
@@ -15,6 +15,21 @@
15
15
  "ar": "إنذار التواجد",
16
16
  "de": "Anwesenheitsalarm"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Presence",
20
+ "nl": "Aanwezigheid",
21
+ "da": "Tilstedeværelse",
22
+ "it": "Presenza",
23
+ "ko": "재실",
24
+ "no": "Tilstedeværelse",
25
+ "pl": "Obecność",
26
+ "ru": "Присутствие",
27
+ "sv": "Närvaro",
28
+ "es": "Presencia",
29
+ "fr": "Présence",
30
+ "ar": "التواجد",
31
+ "de": "Anwesenheit"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when presence has been detected.",
20
35
  "nl": "Wordt geactiveerd wanneer aanwezigheid wordt gedetecteerd",
@@ -15,6 +15,21 @@
15
15
  "ar": "إنذار وجود مشكلة",
16
16
  "de": "Problem-Alarm"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Problem",
20
+ "nl": "Probleem",
21
+ "da": "Problem",
22
+ "it": "Problema",
23
+ "ko": "이상",
24
+ "no": "Problem",
25
+ "pl": "Problem",
26
+ "ru": "Проблема",
27
+ "sv": "Problem",
28
+ "es": "Problema",
29
+ "fr": "Problème",
30
+ "ar": "وجود مشكلة",
31
+ "de": "Problem"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when a problem is detected.",
20
35
  "nl": "Wordt geactiveerd wanneer een probleem wordt gedetecteerd.",
@@ -15,6 +15,21 @@
15
15
  "ar": "إنذار عطل جهاز المضخة",
16
16
  "de": "Fehleralarm der Pumpvorrichtung"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Pump Device Fault",
20
+ "nl": "Fout bij pompapparaat",
21
+ "da": "Fejl i pumpeenhed",
22
+ "it": "Guasto del dispositivo di pompaggio",
23
+ "ko": "펌프 기기 결함",
24
+ "no": "Feil for pumpeenhet",
25
+ "pl": "Usterka pompy",
26
+ "ru": "Неисправность насосного устройства",
27
+ "sv": "Fel på pumpenhet",
28
+ "es": "Fallo en el dispositivo de bombeo",
29
+ "fr": "Défaillance du dispositif de pompage",
30
+ "ar": "عطل جهاز المضخة",
31
+ "de": "Fehler der Pumpvorrichtung"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when a fault is detected in the pump device.",
20
35
  "nl": "Wordt geactiveerd wanneer een fout wordt gedetecteerd in het pompapparaat.",
@@ -15,6 +15,21 @@
15
15
  "ar": "إنذار عطل إمداد المضخة",
16
16
  "de": "Fehleralarm der Pumpenversorgung"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Pump Supply Fault",
20
+ "nl": "Fout bij pomptoevoer",
21
+ "da": "Fejl i pumpeforsyningen",
22
+ "it": "Guasto alimentazione pompa",
23
+ "ko": "펌프 공급 결함",
24
+ "pl": "Usterka zasilania pompy",
25
+ "ru": "Неисправность в питании насоса",
26
+ "sv": "Fel i pumptillförseln",
27
+ "es": "Fallo en el suministro eléctrico del bombeo",
28
+ "fr": "Défaut d'alimentation de la pompe",
29
+ "no": "Feil for pumpeforsyning",
30
+ "ar": "عطل إمداد المضخة",
31
+ "de": "Fehler der Pumpenversorgung"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when a fault is detected in the pump supply.",
20
35
  "nl": "Wordt geactiveerd wanneer een fout wordt gedetecteerd in de pomptoevoer.",
@@ -15,6 +15,21 @@
15
15
  "ru": "Сигнализация дождя",
16
16
  "sv": "Regnlarm"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Rain",
20
+ "ar": "المطر",
21
+ "da": "Regn",
22
+ "de": "Regen",
23
+ "es": "Lluvia",
24
+ "fr": "Pluie",
25
+ "it": "Pioggia",
26
+ "ko": "강우",
27
+ "nl": "Regen",
28
+ "no": "Regn",
29
+ "pl": "Deszcz",
30
+ "ru": "Дождь",
31
+ "sv": "Regn"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when rain is detected.",
20
35
  "ar": "صحيح عند اكتشاف هطول الأمطار.",
@@ -15,6 +15,21 @@
15
15
  "ar": "إنذار التشغيل",
16
16
  "de": "Laufender Alarm"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Running",
20
+ "nl": "Werkzaamheid",
21
+ "da": "Løbende",
22
+ "it": "In esecuzione",
23
+ "ko": "작동",
24
+ "no": "Kjøring",
25
+ "pl": "Praca urządzenia",
26
+ "ru": "Процесс",
27
+ "sv": "Körs",
28
+ "es": "Funcionamiento",
29
+ "fr": "Fonctionnement",
30
+ "ar": "التشغيل",
31
+ "de": "Läuft"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when the device is busy (e.g., printer is printing).",
20
35
  "nl": "Waar wanneer het apparaat bezig is (bijv. printer is aan het printen).",
@@ -15,6 +15,21 @@
15
15
  "ar": "إنذار الأمان",
16
16
  "de": "Sicherheitsalarm"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Safety",
20
+ "nl": "Veiligheid",
21
+ "da": "Sikkerhed",
22
+ "it": "Sicurezza",
23
+ "ko": "위험",
24
+ "no": "Trygghet",
25
+ "pl": "Bezpieczeństwo",
26
+ "ru": "Тревога",
27
+ "sv": "Säkerhet",
28
+ "es": "Seguridad",
29
+ "fr": "Sécurité",
30
+ "ar": "الأمان",
31
+ "de": "Sicherheit"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when unsafe.",
20
35
  "nl": "Wordt geactiveerd wanneer het onveilig is.",
@@ -15,6 +15,21 @@
15
15
  "ko": "연기 감지",
16
16
  "ar": "إنذار الدخان"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Smoke",
20
+ "nl": "Rook",
21
+ "de": "Rauch",
22
+ "fr": "Fumée",
23
+ "it": "Fumo",
24
+ "sv": "Rök",
25
+ "no": "Røyk",
26
+ "es": "Humo",
27
+ "da": "Røg",
28
+ "ru": "Дым",
29
+ "pl": "Dym",
30
+ "ko": "연기",
31
+ "ar": "الدخان"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when smoke has been detected",
20
35
  "nl": "Gaat af als er rook gedetecteerd wordt",
@@ -15,6 +15,21 @@
15
15
  "ar": "إنذار التعلق",
16
16
  "de": "„Blockiert“-Alarm"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Stuck",
20
+ "nl": "Vastgelopen",
21
+ "da": "Fastlåst",
22
+ "it": "Dispositivo bloccato",
23
+ "ko": "기기 막힘",
24
+ "no": "Fastkjøring",
25
+ "pl": "Zablokowanie",
26
+ "ru": "Заклинивание",
27
+ "sv": "Något fastnat",
28
+ "es": "Atasco",
29
+ "fr": "Appareil bloqué",
30
+ "ar": "التعلق",
31
+ "de": "Blockiert"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when the device is stuck.",
20
35
  "nl": "Gaat af als het apparaat is vastgelopen.",
@@ -15,6 +15,21 @@
15
15
  "ko": "변화 감지",
16
16
  "ar": "إنذار التلاعب"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Tamper",
20
+ "nl": "Sabotage",
21
+ "de": "Manipulation",
22
+ "fr": "Sabotage",
23
+ "it": "Manomissione",
24
+ "sv": "Sabotage",
25
+ "no": "Sabotasje",
26
+ "es": "Manipulación",
27
+ "da": "Sabotage",
28
+ "ru": "Несанкционированный доступ",
29
+ "pl": "Antyingerencja",
30
+ "ko": "변화",
31
+ "ar": "التلاعب"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when tampering has been detected",
20
35
  "nl": "Gaat af als sabotage gedetecteerd wordt",
@@ -15,6 +15,21 @@
15
15
  "ar": "إنذار الخزان الفارغ",
16
16
  "de": "Alarm Tank leer"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Tank Empty",
20
+ "nl": "Lege tank",
21
+ "da": "Tom tank",
22
+ "it": "Serbatoio vuoto",
23
+ "ko": "물통 물 부족",
24
+ "no": "Tom tank",
25
+ "pl": "Pusty zbiornik",
26
+ "ru": "Пустой резервуар",
27
+ "sv": "Tom tank",
28
+ "es": "Depósito vacío",
29
+ "fr": "Réservoir vide",
30
+ "ar": "الخزان الفارغ",
31
+ "de": "Tank leer"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when the tank is empty.",
20
35
  "nl": "Wordt geactiveerd wanneer de tank leeg is.",
@@ -15,6 +15,21 @@
15
15
  "ar": "إنذار فقد الخزان",
16
16
  "de": "Alarm bei fehlendem Tank"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Tank Missing",
20
+ "nl": "Ontbrekende tank",
21
+ "da": "Manglende tank",
22
+ "it": "Serbatoio mancante",
23
+ "ko": "물통 분리",
24
+ "no": "Manglende tank",
25
+ "pl": "Brak zbiornika",
26
+ "ru": "Отсутствие резервуара",
27
+ "sv": "Saknad tank",
28
+ "es": "Depósito no instalado",
29
+ "fr": "Réservoir manquant",
30
+ "ar": "فقد الخزان",
31
+ "de": "Fehlender Tank"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when the tank is missing.",
20
35
  "nl": "Wordt geactiveerd wanneer de tank ontbreekt.",
@@ -15,6 +15,21 @@
15
15
  "ar": "إنذار فتح الخزان",
16
16
  "de": "Alarm Tank offen"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Tank Open",
20
+ "nl": "Open tank",
21
+ "da": "Åben tank",
22
+ "it": "Serbatoio aperto",
23
+ "ko": "물통 열림",
24
+ "no": "Åpen tank",
25
+ "pl": "Otwarty zbiornik",
26
+ "ru": "Открытие резервуара",
27
+ "sv": "Öppen tank",
28
+ "es": "Depósito abierto",
29
+ "fr": "Réservoir ouvert",
30
+ "ar": "فتح الخزان",
31
+ "de": "Tank offen"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when the tank is open.",
20
35
  "nl": "Wordt geactiveerd wanneer de tank open is.",
@@ -15,6 +15,21 @@
15
15
  "ar": "إنذار الاهتزاز",
16
16
  "de": "Vibrationsalarm"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Vibration",
20
+ "nl": "Trilling",
21
+ "da": "Vibration",
22
+ "it": "Vibrazione",
23
+ "ko": "진동",
24
+ "no": "Vibrasjon",
25
+ "pl": "Wibracje",
26
+ "ru": "Вибрация",
27
+ "sv": "Vibration",
28
+ "es": "Vibración",
29
+ "fr": "Vibration",
30
+ "ar": "الاهتزاز",
31
+ "de": "Vibration"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when vibration is detected.",
20
35
  "nl": "Wordt geactiveerd wanneer trilling wordt gedetecteerd.",
@@ -15,6 +15,21 @@
15
15
  "ko": "누수 감지",
16
16
  "ar": "إنذار المياه"
17
17
  },
18
+ "titleShort": {
19
+ "en": "Water",
20
+ "nl": "Water",
21
+ "de": "Wasser",
22
+ "fr": "Eau",
23
+ "it": "Acqua",
24
+ "sv": "Vatten",
25
+ "no": "Vann",
26
+ "es": "Agua",
27
+ "da": "Vand",
28
+ "ru": "Вода",
29
+ "pl": "Zalanie wodą",
30
+ "ko": "누수",
31
+ "ar": "المياه"
32
+ },
18
33
  "desc": {
19
34
  "en": "True when water has been detected",
20
35
  "nl": "Gaat af als er water gedetecteerd wordt",
@@ -9,6 +9,7 @@ export type Capability = {
9
9
  [k: string]: unknown;
10
10
  } & {
11
11
  title: I18NObject;
12
+ titleShort?: I18NObject;
12
13
  desc?: I18NObject;
13
14
  type: "boolean" | "number" | "string" | "enum";
14
15
  getable?: boolean;
@@ -43,6 +43,9 @@
43
43
  "title": {
44
44
  "$ref": "#/definitions/i18nObject"
45
45
  },
46
+ "titleShort": {
47
+ "$ref": "#/definitions/i18nObject"
48
+ },
46
49
  "desc": {
47
50
  "$ref": "#/definitions/i18nObject"
48
51
  },
package/helpers/index.js CHANGED
@@ -40,11 +40,11 @@ try {
40
40
  }
41
41
 
42
42
  function toArray(value) {
43
- if (value) {
43
+ if (value !== undefined && value !== null) {
44
44
  return Array.isArray(value) ? value : [value];
45
45
  }
46
46
 
47
47
  return [];
48
48
  }
49
49
 
50
- module.exports.toArray = toArray;
50
+ module.exports.toArray = toArray;
package/index.js CHANGED
@@ -48,3 +48,4 @@ module.exports.getBatteries = Energy.getBatteries.bind(Energy);
48
48
  /** @typedef {import('./assets/app/schema').App} AppManifest */
49
49
  /** @typedef {import('./assets/capability/schema').Capability} CapabilityDefinition */
50
50
  /** @typedef {import('./assets/app/schema').ZigbeeFirmwareUpdates} ZigbeeFirmwareUpdates */
51
+ /** @typedef {import('./assets/app/schema').ZwaveFirmwareUpdates} ZwaveFirmwareUpdates */