iobroker.lorawan 1.15.6 → 1.15.8

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.8 (2025-09-16)
27
+ * (BenAhrdt) remove await from some callings
28
+
29
+ ### 1.15.7 (2025-09-15)
30
+ * (BenAhrdt) solve publishing intern
31
+
26
32
  ### 1.15.6 (2025-09-15)
27
33
  * (BenAhrdt) improve handling of state device in case of subfolders
28
34
 
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.15.6",
4
+ "version": "1.15.8",
5
5
  "news": {
6
+ "1.15.8": {
7
+ "en": "remove await from some callings",
8
+ "de": "Entferne das „await“ aus einigen Aufrufen.",
9
+ "ru": "Удалите ожидание (await) из некоторых вызовов",
10
+ "pt": "remover await de algumas chamadas",
11
+ "nl": "Verwijder 'await' uit enkele aanroepen.",
12
+ "fr": "supprimer l'attente de certains appels",
13
+ "it": "Rimuovere l'attesa da alcune chiamate.",
14
+ "es": "eliminar await de algunas llamadas",
15
+ "pl": "Usuń oczekiwanie (await) z niektórych wywołań.",
16
+ "uk": "видаліть await із деяких викликів",
17
+ "zh-cn": "从部分调用中删除 await"
18
+ },
19
+ "1.15.7": {
20
+ "en": "solve publishing intern",
21
+ "de": "Löse das Problem mit der Veröffentlichung des Praktikanten.",
22
+ "ru": "решить вопрос с публикацией стажера",
23
+ "pt": "Resolver publicação de estagiário",
24
+ "nl": "Oplossen van het publiceren van stages",
25
+ "fr": "résoudre le stage en édition",
26
+ "it": "risolto l'internato che pubblica",
27
+ "es": "Resolver publicación de interno.",
28
+ "pl": "rozwiązać problem stażysty ds. publikacji",
29
+ "uk": "вирішення питань практиканта з розміщення текстів",
30
+ "zh-cn": "解决发布实习生"
31
+ },
6
32
  "1.15.6": {
7
33
  "en": "improve handling of state device in case of subfolders",
8
34
  "de": "Verbessere die Handhabung des Gerätestatus bei Unterordnern.",
@@ -67,32 +93,6 @@
67
93
  "pl": "zmień sformułowanie powiadomień\nimport diagnostyka i konfiguracja dla entity_type\nzmień extSensorTemperature na ExtSensorTemperature",
68
94
  "uk": "змінити формулювання сповіщень\nімпорт діагнострики та конфігурації для типу entity\nЗміна extSensorTemperature на ExtSensorTemperature",
69
95
  "zh-cn": "更改通知内容\n为entity_type添加诊断和配置\n将\"extSensorTemperature\"更改为\"ExtSensorTemperature\""
70
- },
71
- "1.15.1": {
72
- "en": "Send trigger with retain = false",
73
- "de": "Trigger mit retain = false senden",
74
- "ru": "Отправка триггера с retain = false",
75
- "pt": "Enviar trigger com retain = false",
76
- "nl": "Verzend trigger met retain = false",
77
- "fr": "Envoyer le trigger avec retain = false",
78
- "it": "Invia trigger con retain = false",
79
- "es": "Enviar trigger con retain = false",
80
- "pl": "Wyślij trigger z retain = false",
81
- "uk": "Надіслати тригер з retain = false",
82
- "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(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(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(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.8",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",