iobroker.lorawan 1.16.0 → 1.16.1

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.16.1 (2025-09-16)
27
+ * (BenAhrdt) bugfix namespace also by notifications
28
+
26
29
  ### 1.16.0 (2025-09-16)
27
30
  * (BenAhrdt) possibility to insert foreign states to bridge by using enum.functions.bridge
28
31
 
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.16.0",
4
+ "version": "1.16.1",
5
5
  "news": {
6
+ "1.16.1": {
7
+ "en": "bugfix namespace also by notifications",
8
+ "de": "Fehlerbehebung Namespace auch bei Benachrichtigungen",
9
+ "ru": "исправлена ошибка с пространством имён также для уведомлений",
10
+ "pt": "Correção de bug no namespace também por notificações.",
11
+ "nl": "bugfix namespace ook bij meldingen",
12
+ "fr": "Correction d'un bug concernant les notifications de namespace.",
13
+ "it": "Risolto bug anche per i namespace nelle notifiche",
14
+ "es": "Corrección de error en el espacio de nombres también por notificaciones.",
15
+ "pl": "naprawiono błąd z przestrzenią nazw również w powiadomieniach",
16
+ "uk": "виправлення помилки простору імен також за допомогою сповіщень",
17
+ "zh-cn": "修复命名空间通知问题"
18
+ },
6
19
  "1.16.0": {
7
20
  "en": "possibility to insert foreign states to bridge by using enum.functions.bridge",
8
21
  "de": "Möglichkeit, externe Zustände über enum.functions.bridge in die Bridge einzufügen.",
@@ -80,19 +93,6 @@
80
93
  "pl": "Naprawiono błąd z zachowaniem tematów stanów wysyłanych.\nPoprawka błędu dotycząca kończenia stanu",
81
94
  "uk": "Виправлено помилку збереження тем для відправлення стану\nВиправлено помилку з порядком стану",
82
95
  "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,
@@ -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'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",