iobroker.lorawan 1.18.44 → 1.18.45

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.18.45 (2025-12-04)
27
+ * (BenAhrdt) improve showing Adapter state (yellw / green)
28
+
26
29
  ### 1.18.44 (2025-12-02)
27
30
  * (BenAhrdt) add mixed to possible value types in config
28
31
 
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.18.44",
4
+ "version": "1.18.45",
5
5
  "news": {
6
+ "1.18.45": {
7
+ "en": "improve showing Adapter state (yellw / green)",
8
+ "de": "verbesserung des Adapterzustands (gelb / grün)",
9
+ "ru": "улучшение отображения состояния адаптера (yellw / green)",
10
+ "pt": "melhorar mostrando o estado do adaptador (Yellw / verde)",
11
+ "nl": "verbetering van de stand van de adapter (geel / groen)",
12
+ "fr": "améliorer l'état de l'adaptateur (yellw / vert)",
13
+ "it": "migliorare lo stato dell'adattatore di visualizzazione (yellw / green)",
14
+ "es": "mejorar la visualización del estado del adaptador (yellw / verde)",
15
+ "pl": "poprawić wyświetlanie stanu Adapter (yellw / green)",
16
+ "uk": "поліпшення демонстрації стану адаптера (жовтий / зелений)",
17
+ "zh-cn": "改进显示适配器状态( yallw / 绿色)"
18
+ },
6
19
  "1.18.44": {
7
20
  "en": "add mixed to possible value types in config",
8
21
  "de": "hinzufügen zu möglichen werttypen in config",
@@ -80,19 +93,6 @@
80
93
  "pl": "budować więcej ról dla czujników kontaktu, w przypadku roli. (okno, drzwi, brama...)",
81
94
  "uk": "будувати більше ролей для контакторів, у разі ролі. (вікно, двері, ворота ...)",
82
95
  "zh-cn": "为联系人建立更多的角色,如果是角色的话。 (窗,门,门"
83
- },
84
- "1.18.38": {
85
- "en": "add device class to cover in config",
86
- "de": "geräteklasse in config hinzufügen",
87
- "ru": "добавить класс устройства для покрытия в конфигурацию",
88
- "pt": "adicionar a classe do dispositivo para cobrir na configuração",
89
- "nl": "apparaatklasse toevoegen om in config te dekken",
90
- "fr": "ajouter la classe de périphérique pour couvrir la configuration",
91
- "it": "aggiungere classe di dispositivo per coprire in configurazione",
92
- "es": "añadir clase de dispositivo para cubrir en config",
93
- "pl": "dodaj klasę urządzenia do pokrycia w konfiguracji",
94
- "uk": "додати клас пристрою для обкладинки в налаштування",
95
- "zh-cn": "在配置中添加要覆盖的设备类"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -78,11 +78,11 @@ class bridgeMqttClientClass {
78
78
  }
79
79
  });
80
80
 
81
- this.client.on('close', () => {
81
+ this.client.on('close', async () => {
82
82
  if (this.internalConnectionstate) {
83
83
  this.adapter.log.info(`Connection to Bridge is closed.`);
84
84
  }
85
- this.adapter.setState('info.bridgeConnection', false, true);
85
+ await this.adapter.setState('info.bridgeConnection', false, true);
86
86
  if (this.adapter.config.notificationActivation === 'notification') {
87
87
  this.adapter.registerNotification(
88
88
  'lorawan',
@@ -90,6 +90,8 @@ class bridgeMqttClientClass {
90
90
  this.adapter.i18nTranslation['connection to bridge is closed'],
91
91
  );
92
92
  }
93
+ const connectionInfo = await this.adapter.getConnectionInfo();
94
+ await this.adapter.setState('info.connection', connectionInfo, true);
93
95
  this.internalConnectionstate = false;
94
96
  });
95
97
 
package/main.js CHANGED
@@ -1507,7 +1507,7 @@ class Lorawan extends utils.Adapter {
1507
1507
  }
1508
1508
 
1509
1509
  async getConnectionInfo() {
1510
- if (this.config.ipUrl === '' || this.mqttClient?.internalConnectionstate) {
1510
+ if (this.config.origin === 'off' || this.mqttClient?.internalConnectionstate) {
1511
1511
  if (this.config.BridgeType === 'off' || this.bridge?.bridgeMqttClient?.internalConnectionstate) {
1512
1512
  return true;
1513
1513
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.18.44",
3
+ "version": "1.18.45",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",