iobroker.lorawan 1.18.20 → 1.18.22

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.22 (2025-11-26)
27
+ * (BenAhrdt) Bugfix message to brige with discovered device
28
+
29
+ ### 1.18.21 (2025-11-26)
30
+ * (BenAhrdt) Bugfix reading value for light in puslish
31
+
26
32
  ### 1.18.20 (2025-11-26)
27
33
  * (BenAhrdt) Dont write discovery multiple in internal object (in case of reconnect bridge)
28
34
 
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.18.20",
4
+ "version": "1.18.22",
5
5
  "news": {
6
+ "1.18.22": {
7
+ "en": "Bugfix message to brige with discovered device",
8
+ "de": "Bugfix-Nachricht zu brige mit entdecktem Gerät",
9
+ "ru": "Сообщение Bugfix с обнаруженным устройством",
10
+ "pt": "Mensagem de correção de erros para o brige com o dispositivo descoberto",
11
+ "nl": "Bugfix-bericht naar Brugge met ontdekt apparaat",
12
+ "fr": "Message de bogue pour bricker avec le périphérique découvert",
13
+ "it": "Messaggio di Bugfix a brige con dispositivo scoperto",
14
+ "es": "Mensaje de Bugfix para cerrar con dispositivo descubierto",
15
+ "pl": "Komunikat Bugfix do przepłukiwania z odkrytym urządzeniem",
16
+ "uk": "Повідомлень про помилку при відкритті пристрою",
17
+ "zh-cn": "用已发现的设备绑定错误修正消息"
18
+ },
19
+ "1.18.21": {
20
+ "en": "Bugfix reading value for light in puslish",
21
+ "de": "Bugfix Lesewert für Licht in puslish",
22
+ "ru": "Bugfix значение чтения для света в puslish",
23
+ "pt": "Valor de leitura de erros para a luz em puslish",
24
+ "nl": "Bugfix leeswaarde voor licht in het Nederlands",
25
+ "fr": "Valeur de lecture Bugfix pour la lumière en puslish",
26
+ "it": "Bugfix valore di lettura per la luce in inglese",
27
+ "es": "Valor de lectura de Bugfix para luz en puslish",
28
+ "pl": "Wartość odczytu bugfix dla światła w pussish",
29
+ "uk": "Помилки для читання значення для світла в puslish",
30
+ "zh-cn": "Puslish 中的光线错误修正读值"
31
+ },
6
32
  "1.18.20": {
7
33
  "en": "Dont write discovery multiple in internal object (in case of reconnect bridge)",
8
34
  "de": "Schreibe nicht mehrere Entdeckungen im internen Objekt (im Falle der Wiederverbindungsbrücke)",
@@ -67,32 +93,6 @@
67
93
  "pl": "zmiana stanu pokrycia na niższy przypadek",
68
94
  "uk": "змінити обкладинки станів в нижній випадок",
69
95
  "zh-cn": "更改覆盖状态为小写"
70
- },
71
- "1.18.15": {
72
- "en": "add '#' to normalized String",
73
- "de": "'#' zu normalisieren String hinzufügen",
74
- "ru": "добавить «#» в нормализованную строку",
75
- "pt": "adicionar '#' à string normalizada",
76
- "nl": "'#' toevoegen aan genormaliseerde tekenreeks",
77
- "fr": "ajouter '#' à la chaîne normalisée",
78
- "it": "aggiungere '#' a normalized String",
79
- "es": "añadir '#' a la cuerda normalizada",
80
- "pl": "dodaj '#' do znormalizowanego String",
81
- "uk": "додати '#' для нормалізації String",
82
- "zh-cn": "添加“ # ” 到正态字符串"
83
- },
84
- "1.18.14": {
85
- "en": "add Cover to special devices",
86
- "de": "cover für spezielle Geräte hinzufügen",
87
- "ru": "добавление обложки к специальным устройствам",
88
- "pt": "adicionar Capa a dispositivos especiais",
89
- "nl": "cover toevoegen aan speciale apparaten",
90
- "fr": "ajouter Couverture aux dispositifs spéciaux",
91
- "it": "aggiungere Cover a dispositivi speciali",
92
- "es": "añadir cobertura a dispositivos especiales",
93
- "pl": "dodaj pokrycie do specjalnych urządzeń",
94
- "uk": "додати чохол на спеціальні пристрої",
95
- "zh-cn": "将封面添加到特殊设备"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -759,7 +759,7 @@ class bridgeClass {
759
759
  val = {};
760
760
  val.state = (
761
761
  await this.adapter.getForeignStateAsync(
762
- this.PublishedIds[id].publish[publishTopic].publish[publishTopic].LightIds.onOff,
762
+ this.PublishedIds[id].publish[publishTopic].LightIds.onOff,
763
763
  )
764
764
  ).val;
765
765
  val.state = val.state === true ? 'ON' : 'OFF';
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.18.20",
3
+ "version": "1.18.22",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",