iobroker.lorawan 1.20.2 → 1.20.4

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.20.4 (2026-01-25)
27
+ * (BenAhrdt) experimental to debug in live system
28
+
29
+ ### 1.20.3 (2026-01-25)
30
+ * (BenAhrdt) bugfix device Manager
31
+
26
32
  ### 1.20.2 (2026-01-25)
27
33
  * (BenAhrdt) bugfix device Manager and objectStore device checks
28
34
 
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.20.2",
4
+ "version": "1.20.4",
5
5
  "news": {
6
+ "1.20.4": {
7
+ "en": "experimental to debug in live system",
8
+ "de": "experimentell zu debug im live-system",
9
+ "ru": "экспериментальная отладка в живой системе",
10
+ "pt": "experimental para depuração no sistema live",
11
+ "nl": "experimenteel debuggen in live systeem",
12
+ "fr": "expérimental pour déboguer dans le système vivant",
13
+ "it": "sperimentale per debug nel sistema live",
14
+ "es": "experimental para depurar en el sistema en vivo",
15
+ "pl": "eksperymentalne debugowanie w systemie live",
16
+ "uk": "експериментальна дебюга в живій системі",
17
+ "zh-cn": "正在运行系统中调试的实验"
18
+ },
19
+ "1.20.3": {
20
+ "en": "bugfix device Manager",
21
+ "de": "bugfix Gerät Manager",
22
+ "ru": "bugfix устройство диспетчер",
23
+ "pt": "gerenciador de dispositivos de correção de erros",
24
+ "nl": "bugfix apparaatbeheer",
25
+ "fr": "gestionnaire de périphériques bugfix",
26
+ "it": "bugfix dispositivo Manager",
27
+ "es": "bugfix device Manager",
28
+ "pl": "menedżer urządzeń bugfix",
29
+ "uk": "диспетчер пристроїв",
30
+ "zh-cn": "错误修正设备管理器"
31
+ },
6
32
  "1.20.2": {
7
33
  "en": "bugfix device Manager and objectStore device checks",
8
34
  "de": "bugfix device Manager und Objekt Geräteüberprüfungen",
@@ -67,32 +93,6 @@
67
93
  "pl": "sonoff bugfix aparrant _ power",
68
94
  "uk": "gaeilge, english, українська..",
69
95
  "zh-cn": "sonoff 错误修补parrant_power"
70
- },
71
- "1.19.32": {
72
- "en": "bugfix await this.ObjectExists",
73
- "de": "bugfix warten darauf. ObjekteExperimente",
74
- "ru": "багфикс, жди этого. Объекты существуют",
75
- "pt": "bugfix espera por isto. O objeto existe",
76
- "nl": "bugfix wacht hier op. ObjectBestaat",
77
- "fr": "bugfix attend ça. Objet Existe",
78
- "it": "bugfix aspetta questo. OBIETTIVI",
79
- "es": "bugfix espera esto. ObjectExists",
80
- "pl": "bugfix czeka na to. ObjectExists",
81
- "uk": "виправлено помилку. Об'єкти",
82
- "zh-cn": "bugfix 等待这个 。 对象存在"
83
- },
84
- "1.19.31": {
85
- "en": "add try catch for adding filter (strage bug)",
86
- "de": "fügen sie versuchen zu fangen für das hinzufügen von filter (strge bug)",
87
- "ru": "добавить try catch для добавления фильтра (strage bug)",
88
- "pt": "adicionar tentativa de captura para adicionar filtro (erro de fita)",
89
- "nl": "add catch for add filter (strage bug)",
90
- "fr": "ajouter une capture pour ajouter un filtre",
91
- "it": "aggiungere la cattura per l'aggiunta di filtro (insetto di sforzo)",
92
- "es": "añadir probar captura para añadir filtro (falta de tracción)",
93
- "pl": "dodaj chwyt do dodawania filtra (błąd strage)",
94
- "uk": "додати намагатися ловити для додавання фільтра (перевірити помилки)",
95
- "zh-cn": "添加添加过滤器的尝试抓取( strage bug)"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -589,7 +589,7 @@
589
589
  "name": "internal logging types",
590
590
  "read": true,
591
591
  "write": true,
592
- "def": "{\"discovery\":false, \"assign\": false, \"messageTo\": false}"
592
+ "def": "{\"discovery\":false, \"assign\": false, \"messageTo\": false, \"listDevices\": false, \"getStatus\": false}"
593
593
  },
594
594
  "native": {}
595
595
  },
@@ -23,6 +23,8 @@ class LoRaWANDeviceManagement extends DeviceManagement {
23
23
  async listDevices() {
24
24
  const arrDevices = [];
25
25
  for (const [key, value] of Object.entries(this.adapter.objectStore.devices)) {
26
+ // Check for logging
27
+ this.adapter.log[this.adapter.logtypes.listDevices]?.(`List device started for device: ${key}`);
26
28
  const res = {
27
29
  id: key,
28
30
  name: value.object.common.name,
@@ -40,7 +42,7 @@ class LoRaWANDeviceManagement extends DeviceManagement {
40
42
  })
41
43
  : undefined
42
44
  : undefined,
43
- model: value.checks.devicetype.state.val, // - ${value.uplink.remaining.rxInfo[0].rssi.ts}`,
45
+ model: value.checks ? value.checks.devicetype.state.val : undefined, // - ${value.uplink.remaining.rxInfo[0].rssi.ts}`,
44
46
  status: await this.getStatus(value),
45
47
  hasDetails: undefined,
46
48
  actions: [
@@ -76,6 +78,10 @@ class LoRaWANDeviceManagement extends DeviceManagement {
76
78
  * @param devicevalue values of device
77
79
  */
78
80
  async getStatus(devicevalue) {
81
+ // Check for logging
82
+ this.adapter.log[this.adapter.logtypes.getStatus]?.(
83
+ `get Status started with value: ${JSON.stringify(devicevalue)}`,
84
+ );
79
85
  const status = {};
80
86
  if (devicevalue.object.common.icon.includes('offline')) {
81
87
  status.connection = 'disconnected';
package/main.js CHANGED
@@ -72,14 +72,14 @@ class Lorawan extends utils.Adapter {
72
72
  async onReady() {
73
73
  const activeFunction = 'onReady';
74
74
  try {
75
+ // Get Logtypes
76
+ this.logtypes = JSON.parse(await this.setDefIfEmptyAndReturnVal('bridge.debug.logtypes'));
77
+
75
78
  // Generate Objectstore
76
79
  this.objectStore = new objectStoreClass(this);
77
80
 
78
81
  await this.objectStore.generateDeviceObjects();
79
82
 
80
- // Get Logtypes
81
- this.logtypes = JSON.parse(await this.setDefIfEmptyAndReturnVal('bridge.debug.logtypes'));
82
-
83
83
  // read system translation out of i18n translation
84
84
  this.i18nTranslation = await this.geti18nTranslation();
85
85
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.20.2",
3
+ "version": "1.20.4",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",