iobroker.lorawan 1.18.21 → 1.18.23

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.18.23 (2025-11-26)
27
+ * (BenAhrdt) Notify Adapter Version to Bridge with connection
28
+
29
+ ### 1.18.22 (2025-11-26)
30
+ * (BenAhrdt) Bugfix message to brige with discovered device
31
+
26
32
  ### 1.18.21 (2025-11-26)
27
33
  * (BenAhrdt) Bugfix reading value for light in puslish
28
34
 
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.18.21",
4
+ "version": "1.18.23",
5
5
  "news": {
6
+ "1.18.23": {
7
+ "en": "Notify Adapter Version to Bridge with connection",
8
+ "de": "Benachrichtigen Adapter Version auf Brücke mit Anschluss",
9
+ "ru": "Уведомить версию адаптера о подключении к Bridge",
10
+ "pt": "Notificar versão do adaptador para Ponte com conexão",
11
+ "nl": "Aanmelden Adapter versie naar Brug met verbinding",
12
+ "fr": "Avertissez la version adaptateur de Bridge avec connexion",
13
+ "it": "Notifica versione adattatore a ponte con connessione",
14
+ "es": "Notify Adapter Version to Bridge with connection",
15
+ "pl": "Informuj wersję adaptera do mostka z połączeniem",
16
+ "uk": "Повідомити версію адаптера до мосту з підключенням",
17
+ "zh-cn": "将适配器版本通知连接桥"
18
+ },
19
+ "1.18.22": {
20
+ "en": "Bugfix message to brige with discovered device",
21
+ "de": "Bugfix-Nachricht zu brige mit entdecktem Gerät",
22
+ "ru": "Сообщение Bugfix с обнаруженным устройством",
23
+ "pt": "Mensagem de correção de erros para o brige com o dispositivo descoberto",
24
+ "nl": "Bugfix-bericht naar Brugge met ontdekt apparaat",
25
+ "fr": "Message de bogue pour bricker avec le périphérique découvert",
26
+ "it": "Messaggio di Bugfix a brige con dispositivo scoperto",
27
+ "es": "Mensaje de Bugfix para cerrar con dispositivo descubierto",
28
+ "pl": "Komunikat Bugfix do przepłukiwania z odkrytym urządzeniem",
29
+ "uk": "Повідомлень про помилку при відкритті пристрою",
30
+ "zh-cn": "用已发现的设备绑定错误修正消息"
31
+ },
6
32
  "1.18.21": {
7
33
  "en": "Bugfix reading value for light in puslish",
8
34
  "de": "Bugfix Lesewert für Licht in puslish",
@@ -67,32 +93,6 @@
67
93
  "pl": "Graniczny wyłącznik Bugfix zamknięty",
68
94
  "uk": "Перемикач ліміту попереку",
69
95
  "zh-cn": "关闭错误修正限制开关"
70
- },
71
- "1.18.16": {
72
- "en": "change cover states into lower case",
73
- "de": "änderung der deckelzustände in den unteren fall",
74
- "ru": "изменение состояния покрытия в нижнем регистре",
75
- "pt": "mudar os estados de cobertura em minúsculas",
76
- "nl": "wijzigen dekking staten in kleine geval",
77
- "fr": "changement des états de couverture en minuscules",
78
- "it": "cambiare gli stati di copertura in caso più basso",
79
- "es": "cambiar los estados de cobertura en caso inferior",
80
- "pl": "zmiana stanu pokrycia na niższy przypadek",
81
- "uk": "змінити обкладинки станів в нижній випадок",
82
- "zh-cn": "更改覆盖状态为小写"
83
- },
84
- "1.18.15": {
85
- "en": "add '#' to normalized String",
86
- "de": "'#' zu normalisieren String hinzufügen",
87
- "ru": "добавить «#» в нормализованную строку",
88
- "pt": "adicionar '#' à string normalizada",
89
- "nl": "'#' toevoegen aan genormaliseerde tekenreeks",
90
- "fr": "ajouter '#' à la chaîne normalisée",
91
- "it": "aggiungere '#' a normalized String",
92
- "es": "añadir '#' a la cuerda normalizada",
93
- "pl": "dodaj '#' do znormalizowanego String",
94
- "uk": "додати '#' для нормалізації String",
95
- "zh-cn": "添加“ # ” 到正态字符串"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -1244,15 +1244,10 @@ class bridgeClass {
1244
1244
  if (!this.oldDiscoveredDevices[normalizedDeficeIdentifier]) {
1245
1245
  // Only messegae with ne fiscovered dewvice, if not in old discovered devices
1246
1246
  returnValue.newDevice = DiscoveryObject;
1247
- let device = 'unknown';
1248
- if (DiscoveryObject.informations.usedDeviceId) {
1249
- device = DiscoveryObject.informations.usedDeviceId;
1250
- } else if (
1251
- DiscoveryObject.informations.target &&
1252
- DiscoveryObject.informations.target.usedDeviceId
1253
- ) {
1254
- device = DiscoveryObject.informations.target.usedDeviceId;
1255
- }
1247
+ let device =
1248
+ DiscoveryObject.informations.usedDeviceId ??
1249
+ DiscoveryObject.informations[0]?.usedDeviceId ??
1250
+ 'unknown';
1256
1251
  let message = `${this.adapter.i18nTranslation['new device discovered']}.\n${this.adapter.i18nTranslation['Device']}: ${device}`;
1257
1252
  if (DiscoveryObject.informations.usedApplicationName) {
1258
1253
  const application = DiscoveryObject.informations.usedApplicationName;
@@ -54,7 +54,7 @@ class bridgeMqttClientClass {
54
54
  const notificationId = `${this.adapter.namespace}.${this.adapter.bridge.Words.notification}${this.adapter.bridge.GeneralId}`;
55
55
  await this.adapter.bridge?.publishNotification(
56
56
  notificationId,
57
- this.adapter.i18nTranslation['connection to bridge is activ'],
57
+ `${this.adapter.i18nTranslation['connection to bridge is activ']}. Adapterversion: ${this.adapter.version}`,
58
58
  this.adapter.bridge?.Notificationlevel.bridgeConnection,
59
59
  false,
60
60
  );
package/main.js CHANGED
@@ -41,6 +41,9 @@ class Lorawan extends utils.Adapter {
41
41
  this.mySystemConfig;
42
42
  this.language;
43
43
 
44
+ // Adapter Version
45
+ this.version;
46
+
44
47
  this.secret = {
45
48
  hash: 'feda26376e3d3b38eae8efa48d055754eb0c388d6dbc7ced2ddb5f2f8166f417',
46
49
  salt: 'LoRaWANBeScJoFr',
@@ -65,6 +68,10 @@ class Lorawan extends utils.Adapter {
65
68
  this.mySystemConfig = await this.getForeignObjectAsync('system.config');
66
69
  this.language = this.mySystemConfig?.common.language || 'en';
67
70
 
71
+ // Read aktual Adapterversion
72
+ const adapterinfos = await this.getForeignObjectAsync(`system.adapter.${this.namespace}`);
73
+ this.version = adapterinfos?.common.version;
74
+
68
75
  // create downlinkConfigs
69
76
  this.downlinkConfighandler = new downlinkConfighandlerClass(this);
70
77
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.18.21",
3
+ "version": "1.18.23",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",