iobroker.lorawan 1.16.0 → 1.16.2
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 +6 -0
- package/io-package.json +27 -27
- package/lib/modules/bridgeMqttclient.js +1 -1
- package/lib/modules/directorieshandler.js +5 -3
- package/lib/modules/messagehandler.js +2 -2
- package/main.js +1 -1
- package/package.json +1 -1
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.16.2 (2025-09-16)
|
|
27
|
+
* (BenAhrdt) bugfix namespace also by calling work from directoryhandler
|
|
28
|
+
|
|
29
|
+
### 1.16.1 (2025-09-16)
|
|
30
|
+
* (BenAhrdt) bugfix namespace also by notifications
|
|
31
|
+
|
|
26
32
|
### 1.16.0 (2025-09-16)
|
|
27
33
|
* (BenAhrdt) possibility to insert foreign states to bridge by using enum.functions.bridge
|
|
28
34
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lorawan",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.2",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.16.2": {
|
|
7
|
+
"en": "bugfix namespace also by calling work from directoryhandler",
|
|
8
|
+
"de": "Bug behoben: Namensraum auch durch Aufruf von \"Arbeit\" von DirectoryHandler.",
|
|
9
|
+
"ru": "исправлена ошибка с пространством имен путем вызова работы из directoryhandler",
|
|
10
|
+
"pt": "Corrigido bug ao chamar namespace também utilizando o trabalho do directoryhandler.",
|
|
11
|
+
"nl": "Bugfix: Namespace wordt nu ook correct opgeroepen bij het gebruik van werk van DirectoryHandler.",
|
|
12
|
+
"fr": "Correction de bug du namespace également en appelant le travail du gestionnaire de répertoires.",
|
|
13
|
+
"it": "Correzione di bug anche chiamando il lavoro dal gestore della directory.",
|
|
14
|
+
"es": "Corrección de error en el espacio de nombres al llamar al trabajo desde directoryhandler",
|
|
15
|
+
"pl": "Poprawka błędu: przestrzeń nazw również wywoływana przez funkcję work z directoryhandler",
|
|
16
|
+
"uk": "виправлено помилку у просторі імен також шляхом виклику роботи з обробника директорій",
|
|
17
|
+
"zh-cn": "通过调用`directoryhandler`来修复了`namespace`问题。"
|
|
18
|
+
},
|
|
19
|
+
"1.16.1": {
|
|
20
|
+
"en": "bugfix namespace also by notifications",
|
|
21
|
+
"de": "Fehlerbehebung Namespace auch bei Benachrichtigungen",
|
|
22
|
+
"ru": "исправлена ошибка с пространством имён также для уведомлений",
|
|
23
|
+
"pt": "Correção de bug no namespace também por notificações.",
|
|
24
|
+
"nl": "bugfix namespace ook bij meldingen",
|
|
25
|
+
"fr": "Correction d'un bug concernant les notifications de namespace.",
|
|
26
|
+
"it": "Risolto bug anche per i namespace nelle notifiche",
|
|
27
|
+
"es": "Corrección de error en el espacio de nombres también por notificaciones.",
|
|
28
|
+
"pl": "naprawiono błąd z przestrzenią nazw również w powiadomieniach",
|
|
29
|
+
"uk": "виправлення помилки простору імен також за допомогою сповіщень",
|
|
30
|
+
"zh-cn": "修复命名空间通知问题"
|
|
31
|
+
},
|
|
6
32
|
"1.16.0": {
|
|
7
33
|
"en": "possibility to insert foreign states to bridge by using enum.functions.bridge",
|
|
8
34
|
"de": "Möglichkeit, externe Zustände über enum.functions.bridge in die Bridge einzufügen.",
|
|
@@ -67,32 +93,6 @@
|
|
|
67
93
|
"pl": "Usunięto logowanie błędów",
|
|
68
94
|
"uk": "Виправлено запис журналів про помилки",
|
|
69
95
|
"zh-cn": "修复了日志记录问题"
|
|
70
|
-
},
|
|
71
|
-
"1.15.4": {
|
|
72
|
-
"en": "Bugfix send state topics retain\nBugfix with stateending",
|
|
73
|
-
"de": "Fehlerbehebung für das Beibehalten der Zustandsthemen beim Senden\nFehlerbehebung beim Zustandsende",
|
|
74
|
-
"ru": "Исправлена ошибка с сохранением тем состояний при отправке\nИсправлена ошибка со stateending",
|
|
75
|
-
"pt": "Correção de bug: envio de tópicos de estado mantendo a retenção.\nCorreção de bug com stateending",
|
|
76
|
-
"nl": "Bugfix stuurstatus onderwerpen behouden\nBugfix met stateending",
|
|
77
|
-
"fr": "Correction de bug pour conserver les sujets des états envoyés\nCorrection de bug avec stateEnding",
|
|
78
|
-
"it": "Risoluzione di bug per la conservazione dei topic di invio degli stati\nCorrezione di bug con stateending.",
|
|
79
|
-
"es": "Corrección de error en la retención de temas al enviar estados\nCorrección de error con state ending",
|
|
80
|
-
"pl": "Naprawiono błąd z zachowaniem tematów stanów wysyłanych.\nPoprawka błędu dotycząca kończenia stanu",
|
|
81
|
-
"uk": "Виправлено помилку збереження тем для відправлення стану\nВиправлено помилку з порядком стану",
|
|
82
|
-
"zh-cn": "修复发送状态主题时的保留问题\n修复了和状态结尾相关的问题"
|
|
83
|
-
},
|
|
84
|
-
"1.15.3": {
|
|
85
|
-
"en": "dont translate the selected state in bridge config",
|
|
86
|
-
"de": "Nicht den ausgewählten Status in der Bridge-Konfiguration übersetzen.",
|
|
87
|
-
"ru": "Не переводите состояние \"selected\" в настройках моста",
|
|
88
|
-
"pt": "não traduzir o estado selecionado na configuração da ponte",
|
|
89
|
-
"nl": "'geselecteerde toestand' niet vertalen in de bridge-configuratie.",
|
|
90
|
-
"fr": "ne pas traduire l'état sélectionné dans la configuration du pont",
|
|
91
|
-
"it": "non tradurre lo stato selezionato nella configurazione del ponte",
|
|
92
|
-
"es": "no traducir el estado seleccionado en la configuración del puente",
|
|
93
|
-
"pl": "nie tłumacz stanu \"selected\" w konfiguracji mostu",
|
|
94
|
-
"uk": "не перекладайте обраний стан в конфігурації моста",
|
|
95
|
-
"zh-cn": "不要将“selected state”翻译成桥接配置"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
|
@@ -49,7 +49,7 @@ class bridgeMqttClientClass {
|
|
|
49
49
|
this.adapter.i18nTranslation['connection to bridge is activ'],
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
const notificationId = `${this.adapter.bridge.Words.notification}${this.adapter.bridge.GeneralId}`;
|
|
52
|
+
const notificationId = `${this.adapter.namespace}.${this.adapter.bridge.Words.notification}${this.adapter.bridge.GeneralId}`;
|
|
53
53
|
await this.adapter.bridge?.publishNotification(
|
|
54
54
|
notificationId,
|
|
55
55
|
this.adapter.i18nTranslation['connection to bridge is activ'],
|
|
@@ -302,14 +302,14 @@ class directorieshandlerClass {
|
|
|
302
302
|
'Lorawan device back online',
|
|
303
303
|
message,
|
|
304
304
|
);
|
|
305
|
-
let notificationId = `${changeInfo.applicationId}.devices.${changeInfo.deviceEUI}${this.adapter.bridge.NotificationId}${this.adapter.bridge.OnlineId}`;
|
|
305
|
+
let notificationId = `${this.adapter.namespace}.${changeInfo.applicationId}.devices.${changeInfo.deviceEUI}${this.adapter.bridge.NotificationId}${this.adapter.bridge.OnlineId}`;
|
|
306
306
|
await this.adapter.bridge?.publishNotification(
|
|
307
307
|
notificationId,
|
|
308
308
|
message,
|
|
309
309
|
this.adapter.bridge?.Notificationlevel.deviceState,
|
|
310
310
|
true,
|
|
311
311
|
);
|
|
312
|
-
notificationId = `${this.adapter.bridge.Words.notification}${this.adapter.bridge.GeneralId}`;
|
|
312
|
+
notificationId = `${this.adapter.namespace}.${this.adapter.bridge.Words.notification}${this.adapter.bridge.GeneralId}`;
|
|
313
313
|
await this.adapter.bridge?.publishNotification(
|
|
314
314
|
notificationId,
|
|
315
315
|
message,
|
|
@@ -495,7 +495,9 @@ class directorieshandlerClass {
|
|
|
495
495
|
});
|
|
496
496
|
// Add Bridged Funktion (MQTT auto discovery)
|
|
497
497
|
// Add for new state
|
|
498
|
-
await this.adapter.bridge?.work(objectId
|
|
498
|
+
await this.adapter.bridge?.work(`${this.adapter.namespace}.${objectId}`, stateVal, {
|
|
499
|
+
common: common,
|
|
500
|
+
});
|
|
499
501
|
if (typeof stateVal === 'object') {
|
|
500
502
|
stateVal = JSON.stringify(stateVal);
|
|
501
503
|
}
|
|
@@ -84,14 +84,14 @@ class messagehandlerClass {
|
|
|
84
84
|
this.adapter.registerNotification('lorawan', 'LoRaWAN device offline', message);
|
|
85
85
|
|
|
86
86
|
// Notification to bridge
|
|
87
|
-
let notificationId = `${changeInfo.applicationId}.devices.${changeInfo.deviceEUI}${this.adapter.bridge.NotificationId}${this.adapter.bridge.OfflineId}`;
|
|
87
|
+
let notificationId = `${this.adapter.namespace}.${changeInfo.applicationId}.devices.${changeInfo.deviceEUI}${this.adapter.bridge.NotificationId}${this.adapter.bridge.OfflineId}`;
|
|
88
88
|
await this.adapter.bridge?.publishNotification(
|
|
89
89
|
notificationId,
|
|
90
90
|
message,
|
|
91
91
|
this.adapter.bridge?.Notificationlevel.deviceState,
|
|
92
92
|
true,
|
|
93
93
|
);
|
|
94
|
-
notificationId = `${this.adapter.bridge.Words.notification}${this.adapter.bridge.GeneralId}`;
|
|
94
|
+
notificationId = `${this.adapter.namespace}.${this.adapter.bridge.Words.notification}${this.adapter.bridge.GeneralId}`;
|
|
95
95
|
await this.adapter.bridge?.publishNotification(
|
|
96
96
|
notificationId,
|
|
97
97
|
message,
|
package/main.js
CHANGED
|
@@ -383,7 +383,7 @@ class Lorawan extends utils.Adapter {
|
|
|
383
383
|
async onUnload(callback) {
|
|
384
384
|
try {
|
|
385
385
|
// Ausgabe der Nachrichtg, dass der Adapter beendet wird
|
|
386
|
-
const notificationId = `${this.bridge?.Words.notification}${this.bridge?.GeneralId}`;
|
|
386
|
+
const notificationId = `${this.namespace}.${this.bridge?.Words.notification}${this.bridge?.GeneralId}`;
|
|
387
387
|
await this.bridge?.publishNotification(
|
|
388
388
|
notificationId,
|
|
389
389
|
this.i18nTranslation['Adapter will be stoped'],
|