iobroker.lorawan 1.16.4 → 1.16.5
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 +3 -0
- package/io-package.json +14 -14
- package/lib/modules/bridge.js +6 -4
- package/package.json +1 -1
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.16.5 (2025-09-17)
|
|
27
|
+
* (BenAhrdt) Bugfix in notifications to Bridge (new device dicovered) => namespace not set
|
|
28
|
+
|
|
26
29
|
### 1.16.4 (2025-09-17)
|
|
27
30
|
* (BenAhrdt) Bridge import foreign states till Adapter is running
|
|
28
31
|
* (BenAhrdt) Bridge delete foreign states till Adapter is running
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lorawan",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.5",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.16.5": {
|
|
7
|
+
"en": "Bugfix in notifications to Bridge (new device dicovered) => namespace not set",
|
|
8
|
+
"de": "Fehlerbehebung bei Benachrichtigungen an Bridge (neues Gerät erkannt) => Namespace nicht festgelegt",
|
|
9
|
+
"ru": "Исправлена ошибка в уведомлениях для моста (обнаружение нового устройства) => пространство имен не установлено",
|
|
10
|
+
"pt": "Correção de bug nas notificações para Bridge (novo dispositivo descoberto) => espaço de nomes não definido",
|
|
11
|
+
"nl": "Bugfix in meldingen naar Bridge (nieuw apparaat ontdekt) => namespace niet ingesteld",
|
|
12
|
+
"fr": "Correction de bug dans les notifications vers le pont (nouveau périphérique découvert) => espace de noms non défini",
|
|
13
|
+
"it": "Correzione di un bug nelle notifiche al Bridge (nuovo dispositivo scoperto) => namespace non impostato",
|
|
14
|
+
"es": "Corrección de error en las notificaciones al puente (nuevo dispositivo descubierto) => espacio de nombres no establecido",
|
|
15
|
+
"pl": "Poprawiono błąd w powiadomieniach do Bridge (nowe urządzenie zostało znalezione) => nie ustawiona przestrzeń nazw",
|
|
16
|
+
"uk": "Виправлено помилку у сповіщеннях до мосту (виявлено новий пристрій) => не встановлений простір імен",
|
|
17
|
+
"zh-cn": "修复了通知到桥接器的bug(发现新设备)=>命名空间未设置"
|
|
18
|
+
},
|
|
6
19
|
"1.16.4": {
|
|
7
20
|
"en": "Bridge import foreign states till Adapter is running\nBridge delete foreign states till Adapter is running",
|
|
8
21
|
"de": "Brücke importiert externe Zustände, solange der Adapter läuft.\nLösche Fremdzustände aus der Datenbank, solange der Adapter aktiv ist.",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "Usuń oczekiwanie (await) z niektórych wywołań.",
|
|
81
94
|
"uk": "видаліть await із деяких викликів",
|
|
82
95
|
"zh-cn": "从部分调用中删除 await"
|
|
83
|
-
},
|
|
84
|
-
"1.15.7": {
|
|
85
|
-
"en": "solve publishing intern",
|
|
86
|
-
"de": "Löse das Problem mit der Veröffentlichung des Praktikanten.",
|
|
87
|
-
"ru": "решить вопрос с публикацией стажера",
|
|
88
|
-
"pt": "Resolver publicação de estagiário",
|
|
89
|
-
"nl": "Oplossen van het publiceren van stages",
|
|
90
|
-
"fr": "résoudre le stage en édition",
|
|
91
|
-
"it": "risolto l'internato che pubblica",
|
|
92
|
-
"es": "Resolver publicación de interno.",
|
|
93
|
-
"pl": "rozwiązać problem stażysty ds. publikacji",
|
|
94
|
-
"uk": "вирішення питань практиканта з розміщення текстів",
|
|
95
|
-
"zh-cn": "解决发布实习生"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/lib/modules/bridge.js
CHANGED
|
@@ -234,14 +234,16 @@ class bridgeClass {
|
|
|
234
234
|
this.adapter.log.debug(`Function ${activeFunction} started.`);
|
|
235
235
|
try {
|
|
236
236
|
if (this.bridgeMqttClient.internalConnectionstate) {
|
|
237
|
-
const countBefore = Object.keys(this.
|
|
237
|
+
const countBefore = Object.keys(this.Notifications).length;
|
|
238
238
|
await this.discovery(id, options);
|
|
239
|
-
//
|
|
240
|
-
|
|
239
|
+
// notify new discovered Devices (Notification count changed)
|
|
240
|
+
// On startup this ist mostly true, but the genereal notification id will set later.
|
|
241
|
+
// So there is no notificaton published to Bridge
|
|
242
|
+
if (countBefore !== Object.keys(this.Notifications).length) {
|
|
241
243
|
const device = this.DiscoveredIds[id].informations.usedDeviceId;
|
|
242
244
|
const application = this.DiscoveredIds[id].informations.usedApplicationName;
|
|
243
245
|
const message = `${this.adapter.i18nTranslation['new device discovered']}.\n${this.adapter.i18nTranslation['Device']}: ${device}\n${this.adapter.i18nTranslation['Application']}: ${application}`;
|
|
244
|
-
const notificationId = `${this.adapter.bridge.Words.notification}${this.adapter.bridge.GeneralId}`;
|
|
246
|
+
const notificationId = `${this.adapter.namespace}.${this.adapter.bridge.Words.notification}${this.adapter.bridge.GeneralId}`;
|
|
245
247
|
await this.adapter.bridge?.publishNotification(
|
|
246
248
|
notificationId,
|
|
247
249
|
message,
|