iobroker.lorawan 1.15.5 → 1.15.7

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,12 @@ 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.15.7 (2025-09-15)
27
+ * (BenAhrdt) solve publishing intern
28
+
29
+ ### 1.15.6 (2025-09-15)
30
+ * (BenAhrdt) improve handling of state device in case of subfolders
31
+
26
32
  ### 1.15.5 (2025-09-15)
27
33
  * (BenAhrdt) Bugfix logging removed
28
34
 
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.15.5",
4
+ "version": "1.15.7",
5
5
  "news": {
6
+ "1.15.7": {
7
+ "en": "solve publishing intern",
8
+ "de": "Löse das Problem mit der Veröffentlichung des Praktikanten.",
9
+ "ru": "решить вопрос с публикацией стажера",
10
+ "pt": "Resolver publicação de estagiário",
11
+ "nl": "Oplossen van het publiceren van stages",
12
+ "fr": "résoudre le stage en édition",
13
+ "it": "risolto l'internato che pubblica",
14
+ "es": "Resolver publicación de interno.",
15
+ "pl": "rozwiązać problem stażysty ds. publikacji",
16
+ "uk": "вирішення питань практиканта з розміщення текстів",
17
+ "zh-cn": "解决发布实习生"
18
+ },
19
+ "1.15.6": {
20
+ "en": "improve handling of state device in case of subfolders",
21
+ "de": "Verbessere die Handhabung des Gerätestatus bei Unterordnern.",
22
+ "ru": "Улучшено управление устройствами состояний в случае подпапок.",
23
+ "pt": "Melhorar o tratamento do dispositivo de estado no caso de subpastas",
24
+ "nl": "Verbeter de verwerking van apparaatstaten in geval van submappen.",
25
+ "fr": "Améliorer la gestion de l'appareil d'état en cas de sous-dossiers",
26
+ "it": "Migliorare la gestione del dispositivo di stato nel caso di sottocartelle",
27
+ "es": "Mejora en el manejo del dispositivo de estado en caso de subcarpetas",
28
+ "pl": "Poprawiono obsługę urządzenia stanu w przypadku podfolderów.",
29
+ "uk": "Поліпшено обробку пристрою стану у випадку підпапок.",
30
+ "zh-cn": "改进对子文件夹中状态设备的处理"
31
+ },
6
32
  "1.15.5": {
7
33
  "en": "Bugfix logging removed",
8
34
  "de": "Fehlerbehebung beim Protokollieren entfernt",
@@ -67,32 +93,6 @@
67
93
  "pl": "Wyślij trigger z retain = false",
68
94
  "uk": "Надіслати тригер з retain = false",
69
95
  "zh-cn": "发送带有 retain = false 的触发器"
70
- },
71
- "1.15.0": {
72
- "en": "Bring notification for bridge in admin\nNotify different triggers to bridge",
73
- "de": "Benachrichtigung für Bridge im Admin hinzufügen\nUnterschiedliche Trigger an Bridge melden",
74
- "ru": "Добавить уведомление для моста в админке\nУведомление о различных триггерах на мост",
75
- "pt": "Trazer notificação para a bridge no admin\nNotificar diferentes gatilhos para a bridge",
76
- "nl": "Breng melding voor bridge in admin\nMeld verschillende triggers aan bridge",
77
- "fr": "Ajouter une notification pour la bridge dans l'admin\nNotifier différents déclencheurs à la bridge",
78
- "it": "Porta notifica per bridge in admin\nNotifica diversi trigger al bridge",
79
- "es": "Añadir notificación para bridge en el admin\nNotificar diferentes disparadores al bridge",
80
- "pl": "Dodaj powiadomienie dla bridge w adminie\nPowiadamiaj o różnych wyzwalaczach do bridge",
81
- "uk": "Додати сповіщення для bridge в адмінці\nПовідомляти різні тригери до bridge",
82
- "zh-cn": "在管理中为桥接添加通知\n通知不同的触发器到桥接"
83
- },
84
- "1.14.9": {
85
- "en": "Notify new device discovered until adapter is running",
86
- "de": "Benachrichtige über neu entdecktes Gerät, solange der Adapter läuft",
87
- "ru": "Уведомление о новом обнаруженном устройстве до тех пор, пока работает адаптер",
88
- "pt": "Notificar novo dispositivo descoberto enquanto o adaptador estiver em execução",
89
- "nl": "Meld nieuw apparaat ontdekt zolang de adapter actief is",
90
- "fr": "Notifier un nouvel appareil découvert tant que l'adaptateur est en cours d'exécution",
91
- "it": "Notifica nuovo dispositivo rilevato finché l'adattatore è in esecuzione",
92
- "es": "Notificar nuevo dispositivo descubierto mientras el adaptador esté en ejecución",
93
- "pl": "Powiadamiaj o nowym wykrytym urządzeniu, dopóki adapter działa",
94
- "uk": "Повідомляти про новий виявлений пристрій, доки працює адаптер",
95
- "zh-cn": "在适配器运行期间通知发现的新设备"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -247,6 +247,8 @@ class bridgeClass {
247
247
  setTimeout(async () => {
248
248
  await this.publishId(id, Stateval, {});
249
249
  }, 1000);
250
+ } else {
251
+ await this.publishId(id, Stateval, {});
250
252
  }
251
253
  } else {
252
254
  this.adapter.log.debug(`work called with id ${id}, but Bridge is not connected yet.`);
@@ -784,7 +786,7 @@ class bridgeClass {
784
786
  (changeInfo.applicationId === config.Application || config.Application === '*') &&
785
787
  (changeInfo.deviceEUI === config.Device || config.Device === '*') &&
786
788
  (id.includes(`.${config.Folder}.`) || config.Folder === '*') &&
787
- (id.endsWith(`.${config.State}`) || config.State === '*')
789
+ (id.endsWith(`.${config.Folder}.${config.State}`) || config.State === '*')
788
790
  ) {
789
791
  Bridgestate.discover = !config.exclude;
790
792
  Bridgestate.publish = config.publish;
@@ -850,7 +852,7 @@ class bridgeClass {
850
852
  (changeInfo.applicationId === config.Application || config.Application === '*') &&
851
853
  (changeInfo.deviceEUI === config.Device || config.Device === '*') &&
852
854
  (id.includes(`.${config.Folder}.`) || config.Folder === '*') &&
853
- (id.endsWith(`.${config.State}`) || config.State === '*')
855
+ (id.endsWith(`.${config.Folder}.${config.State}`) || config.State === '*')
854
856
  ) {
855
857
  Bridgestate.discover = !config.exclude;
856
858
  Bridgestate.publish = config.publish;
package/main.js CHANGED
@@ -458,7 +458,8 @@ class Lorawan extends utils.Adapter {
458
458
  try {
459
459
  if (JSON.parse(state.val)) {
460
460
  await this.sendDownlink(downlinkTopic, state.val, changeInfo);
461
- this.setState(id, state.val, true);
461
+ await this.bridge?.publishId(await this.removeNamespace(id), state.val, {});
462
+ await this.setState(id, state.val, true);
462
463
  }
463
464
  } catch (error) {
464
465
  this.log.warn(`Cant send invalid downlinks. Error: ${error}`);
@@ -508,7 +509,8 @@ class Lorawan extends utils.Adapter {
508
509
  }
509
510
  }
510
511
  }
511
- this.setState(id, state.val, true);
512
+ await this.bridge?.publishId(await this.removeNamespace(id), state.val, {});
513
+ await this.setState(id, state.val, true);
512
514
  } else {
513
515
  const downlinkTopic = this.downlinkConfighandler?.getDownlinkTopic(changeInfo, suffix);
514
516
  const downlinkParameter = this.downlinkConfighandler?.getDownlinkParameter(changeInfo, {});
@@ -532,7 +534,8 @@ class Lorawan extends utils.Adapter {
532
534
  await this.sendDownlink(downlinkTopic, JSON.stringify(downlink), changeInfo);
533
535
  }
534
536
  }
535
- this.setState(id, state.val, true);
537
+ await this.bridge?.publishId(await this.removeNamespace(id), state.val, {});
538
+ await this.setState(id, state.val, true);
536
539
  }
537
540
  }
538
541
  } else if (id.indexOf('.configuration.') !== -1) {
@@ -556,10 +559,8 @@ class Lorawan extends utils.Adapter {
556
559
  }
557
560
  }
558
561
  }
559
- this.setState(id, state.val, true);
562
+ await this.setState(id, state.val, true);
560
563
  }
561
- } else {
562
- await this.bridge?.publishId(await this.removeNamespace(id), state.val, {});
563
564
  }
564
565
  } else {
565
566
  // The state was deleted
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.15.5",
3
+ "version": "1.15.7",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",