iobroker.lorawan 1.19.8 → 1.19.10

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.19.10 (2026-01-05)
27
+ * (BenAhrdt) bugfix reading state
28
+
29
+ ### 1.19.9 (2026-01-05)
30
+ * (BenAhrdt) bugfix deleteing device
31
+
26
32
  ### 1.19.8 (2026-01-05)
27
33
  * (BenAhrdt) implement Link to device
28
34
 
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.19.8",
4
+ "version": "1.19.10",
5
5
  "news": {
6
+ "1.19.10": {
7
+ "en": "bugfix reading state",
8
+ "de": "bugfix lesezustand",
9
+ "ru": "bugfix состояние чтения",
10
+ "pt": "estado de leitura do bugfix",
11
+ "nl": "bugfix-leesstatus",
12
+ "fr": "état de lecture du bugfix",
13
+ "it": "bugfix lettura stato",
14
+ "es": "estado de lectura de bugfix",
15
+ "pl": "stan odczytu bugfix",
16
+ "uk": "стан читання помилок",
17
+ "zh-cn": "错误修正读取状态"
18
+ },
19
+ "1.19.9": {
20
+ "en": "bugfix deleteing device",
21
+ "de": "bugfix löschgerät",
22
+ "ru": "bugfix удаление устройства",
23
+ "pt": "dispositivo de remoção de correções de erros",
24
+ "nl": "bugfix verwijderapparaat",
25
+ "fr": "bugfix supprimer le périphérique",
26
+ "it": "bugfix dispositivo di cancellazione",
27
+ "es": "bugfix dispositivo de eliminación",
28
+ "pl": "urządzenie do usuwania błędów",
29
+ "uk": "пристрій видалення помилок",
30
+ "zh-cn": "错误修正删除设备"
31
+ },
6
32
  "1.19.8": {
7
33
  "en": "implement Link to device",
8
34
  "de": "durchführung Link zum Gerät",
@@ -67,32 +93,6 @@
67
93
  "pl": "zmień budowę SafeState Id (domena)",
68
94
  "uk": "збір змін Сейфи Id (домен)",
69
95
  "zh-cn": "变化构建 安全状态 ID( 域数)"
70
- },
71
- "1.19.3": {
72
- "en": "add version and domain to automation",
73
- "de": "version und domäne zur automatisierung hinzufügen",
74
- "ru": "добавить версию и домен в автоматизацию",
75
- "pt": "adicionar versão e domínio à automação",
76
- "nl": "versie en domein toevoegen aan automatisering",
77
- "fr": "ajouter version et domaine à l'automatisation",
78
- "it": "aggiungere la versione e il dominio all'automazione",
79
- "es": "añadir versión y dominio a automatización",
80
- "pl": "dodawanie wersji i domeny do automatyzacji",
81
- "uk": "додати версію та домен до автоматизації",
82
- "zh-cn": "在自动化中添加版本和域"
83
- },
84
- "1.19.2": {
85
- "en": "bugfix filldownlink",
86
- "de": "fehlerbehebungen",
87
- "ru": "bugfix filldownlink",
88
- "pt": "ligação de preenchimento de correções de erros",
89
- "nl": "bugfix filldownlink",
90
- "fr": "bugfix remplissagelien",
91
- "it": "bugfix filldownlink",
92
- "es": "bugfix rellenolink",
93
- "pl": "bugfix fishdownlink",
94
- "uk": "javascript licenses api веб-сайт",
95
- "zh-cn": "臭虫补全下行链路"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -171,7 +171,9 @@ class bridgeDeviceHandlerClass {
171
171
  if (!Object.keys(message.entities).includes(entityId)) {
172
172
  const entityInfo = this.generateStructure(entities[entityId]);
173
173
  await this.adapter.delObjectAsync(entityInfo?.state.id);
174
- checkDevices[entityInfo?.device.id] = {};
174
+ if (!checkDevices[entityInfo?.device.id]) {
175
+ checkDevices[entityInfo?.device.id] = {};
176
+ }
175
177
  if (entityInfo?.channel.id) {
176
178
  checkDevices[entityInfo?.device.id][entityInfo?.channel.id] = {};
177
179
  }
@@ -180,7 +182,6 @@ class bridgeDeviceHandlerClass {
180
182
  // Check for delete channels and devices
181
183
  for (const deviceId of Object.keys(checkDevices)) {
182
184
  let foundStateInAnyChannel = false;
183
-
184
185
  // Check channel
185
186
  for (const channelId of Object.keys(checkDevices[deviceId])) {
186
187
  const channelParams = {
@@ -199,7 +200,6 @@ class bridgeDeviceHandlerClass {
199
200
  foundStateInAnyChannel = true;
200
201
  continue;
201
202
  }
202
-
203
203
  // No state
204
204
  await this.adapter.delObjectAsync(channelId, { recursive: true });
205
205
  this.adapter.log.debug(`Deleted empty channel: ${channelId}`);
package/main.js CHANGED
@@ -877,8 +877,12 @@ class Lorawan extends utils.Adapter {
877
877
  await this.bridge.publishId(id, state.val, {});
878
878
  }
879
879
  } else if (id.startsWith(`${this.namespace}.bridge.devices.`)) {
880
- await this.bridge?.bridgeDeviceHandler.sendData(id, state);
881
- await this.setState(id, state.val, true);
880
+ if (!id.endsWith('discoveredEntities')) {
881
+ if (!id.endsWith('bridgeBaseIp')) {
882
+ await this.bridge?.bridgeDeviceHandler.sendData(id, state);
883
+ }
884
+ await this.setState(id, state.val, true);
885
+ }
882
886
  }
883
887
  } else {
884
888
  // Query for 0_userdata or alias => states also publish with ack = false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.19.8",
3
+ "version": "1.19.10",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",