iobroker.lorawan 1.18.38 → 1.18.39

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.
package/README.md CHANGED
@@ -23,6 +23,9 @@ For now there is documentation in English here: https://wiki.hafenmeister.de
23
23
  Placeholder for the next version (at the beginning of the line):
24
24
  ### **WORK IN PROGRESS**
25
25
  -->
26
+ ### 1.18.39 (2025-11-30)
27
+ * (BenAhrdt) build more roles for contactsensors, in case of role. (window, door, gate ...)
28
+
26
29
  ### 1.18.38 (2025-11-30)
27
30
  * (BenAhrdt) add device class to cover in config
28
31
 
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.18.38",
4
+ "version": "1.18.39",
5
5
  "news": {
6
+ "1.18.39": {
7
+ "en": "build more roles for contactsensors, in case of role. (window, door, gate ...)",
8
+ "de": "bauen mehr rollen für kontaktsensoren, im falle der rolle. (fenster, tür, tor ...)",
9
+ "ru": "построить больше ролей для контактенсоров, в случае роли. (окно, дверь, ворота...)",
10
+ "pt": "constrói mais papéis para os agentes de contacto, em caso de papel. (janela, porta, portão...)",
11
+ "nl": "meer rollen voor contactpersonen te creëren, in geval van rol. (raam, deur, poort ...)",
12
+ "fr": "construire plus de rôles pour les capteurs de contacts, en cas de rôle. (fenêtre, porte, portail...)",
13
+ "it": "costruire più ruoli per i sensori di contatto, in caso di ruolo. (finestra, porta, cancello ...)",
14
+ "es": "crear más roles para los contactensores, en caso de papel. (ventana, puerta, puerta...)",
15
+ "pl": "budować więcej ról dla czujników kontaktu, w przypadku roli. (okno, drzwi, brama...)",
16
+ "uk": "будувати більше ролей для контакторів, у разі ролі. (вікно, двері, ворота ...)",
17
+ "zh-cn": "为联系人建立更多的角色,如果是角色的话。 (窗,门,门"
18
+ },
6
19
  "1.18.38": {
7
20
  "en": "add device class to cover in config",
8
21
  "de": "geräteklasse in config hinzufügen",
@@ -80,19 +93,6 @@
80
93
  "pl": "zmiana stanu w jednostce blokującej",
81
94
  "uk": "змінити стан в суб'єкті блокування",
82
95
  "zh-cn": "锁定实体中的变化状态"
83
- },
84
- "1.18.32": {
85
- "en": "Changes in cover and add Lock",
86
- "de": "Änderungen im Cover und hinzufügen Lock",
87
- "ru": "Изменения в покрытии и добавление блокировки",
88
- "pt": "Alterações na capa e adicionar bloqueio",
89
- "nl": "Wijzigingen in dekking en vergrendelen toevoegen",
90
- "fr": "Changements dans la couverture et ajouter Lock",
91
- "it": "Modifiche in copertina e aggiungere Lock",
92
- "es": "Cambios en la cubierta y añadir bloqueo",
93
- "pl": "Zmiany w okładce i dodać blokadę",
94
- "uk": "Зміни в кришці і додати блокування",
95
- "zh-cn": "封面和加锁的变化"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -1529,8 +1529,18 @@ class bridgeClass {
1529
1529
  if (entityType === 'binary_sensor') {
1530
1530
  if (role.includes('motion')) {
1531
1531
  attributes.device_class = 'motion';
1532
- } else if (role.includes('window') || role.includes('door')) {
1532
+ } else if (role.includes('window')) {
1533
+ attributes.device_class = 'window';
1534
+ } else if (role.includes('door')) {
1533
1535
  attributes.device_class = 'door';
1536
+ } else if (role.includes('gate')) {
1537
+ attributes.device_class = 'gate';
1538
+ } else if (role.includes('lock')) {
1539
+ attributes.device_class = 'lock';
1540
+ } else if (role.includes('garage')) {
1541
+ attributes.device_class = 'garage_door';
1542
+ } else if (role.includes('blind') || role.includes('shutter') || role.includes('open')) {
1543
+ attributes.device_class = 'opening';
1534
1544
  } else if (role.includes('smoke')) {
1535
1545
  attributes.device_class = 'smoke';
1536
1546
  } else if (role.includes('presence')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.18.38",
3
+ "version": "1.18.39",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",