iobroker.lorawan 1.15.6 → 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,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.15.7 (2025-09-15)
27
+ * (BenAhrdt) solve publishing intern
28
+
26
29
  ### 1.15.6 (2025-09-15)
27
30
  * (BenAhrdt) improve handling of state device in case of subfolders
28
31
 
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.15.6",
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
+ },
6
19
  "1.15.6": {
7
20
  "en": "improve handling of state device in case of subfolders",
8
21
  "de": "Verbessere die Handhabung des Gerätestatus bei Unterordnern.",
@@ -80,19 +93,6 @@
80
93
  "pl": "Wyślij trigger z retain = false",
81
94
  "uk": "Надіслати тригер з retain = false",
82
95
  "zh-cn": "发送带有 retain = false 的触发器"
83
- },
84
- "1.15.0": {
85
- "en": "Bring notification for bridge in admin\nNotify different triggers to bridge",
86
- "de": "Benachrichtigung für Bridge im Admin hinzufügen\nUnterschiedliche Trigger an Bridge melden",
87
- "ru": "Добавить уведомление для моста в админке\nУведомление о различных триггерах на мост",
88
- "pt": "Trazer notificação para a bridge no admin\nNotificar diferentes gatilhos para a bridge",
89
- "nl": "Breng melding voor bridge in admin\nMeld verschillende triggers aan bridge",
90
- "fr": "Ajouter une notification pour la bridge dans l'admin\nNotifier différents déclencheurs à la bridge",
91
- "it": "Porta notifica per bridge in admin\nNotifica diversi trigger al bridge",
92
- "es": "Añadir notificación para bridge en el admin\nNotificar diferentes disparadores al bridge",
93
- "pl": "Dodaj powiadomienie dla bridge w adminie\nPowiadamiaj o różnych wyzwalaczach do bridge",
94
- "uk": "Додати сповіщення для bridge в адмінці\nПовідомляти різні тригери до bridge",
95
- "zh-cn": "在管理中为桥接添加通知\n通知不同的触发器到桥接"
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.`);
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.6",
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",