iobroker.lorawan 1.20.3 → 1.20.5
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 +6 -0
- package/io-package.json +28 -28
- package/lib/modules/deviceManager.js +6 -0
- package/main.js +9 -5
- package/package.json +1 -1
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.5 (2026-01-25)
|
|
27
|
+
* (BenAhrdt) bugfixing updating object Store with not alowed id
|
|
28
|
+
|
|
29
|
+
### 1.20.4 (2026-01-25)
|
|
30
|
+
* (BenAhrdt) experimental to debug in live system
|
|
31
|
+
|
|
26
32
|
### 1.20.3 (2026-01-25)
|
|
27
33
|
* (BenAhrdt) bugfix device Manager
|
|
28
34
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lorawan",
|
|
4
|
-
"version": "1.20.
|
|
4
|
+
"version": "1.20.5",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.20.5": {
|
|
7
|
+
"en": "bugfixing updating object Store with not alowed id",
|
|
8
|
+
"de": "bugfixing update object Store with not alowed id",
|
|
9
|
+
"ru": "bugfixing Update Object Store с невысоким идентификатором",
|
|
10
|
+
"pt": "correcção de erros para actualizar o objecto Armazenar sem ID abaixado",
|
|
11
|
+
"nl": "bugfixing update object Store with not alowed id",
|
|
12
|
+
"fr": "bugfixing update object Store avec id non alowed",
|
|
13
|
+
"it": "bugfixing aggiornamento oggetti Store con non alowed id",
|
|
14
|
+
"es": "bugfixing actualización objeto Store with not alowed id",
|
|
15
|
+
"pl": "bugfitting aktualizacja obiektu Przechowuj bez przypisanego id",
|
|
16
|
+
"uk": "виправлення помилок оновлення об'єкту Store з не потовщеним id",
|
|
17
|
+
"zh-cn": "正在更新对象 Store, 且未减少 ID"
|
|
18
|
+
},
|
|
19
|
+
"1.20.4": {
|
|
20
|
+
"en": "experimental to debug in live system",
|
|
21
|
+
"de": "experimentell zu debug im live-system",
|
|
22
|
+
"ru": "экспериментальная отладка в живой системе",
|
|
23
|
+
"pt": "experimental para depuração no sistema live",
|
|
24
|
+
"nl": "experimenteel debuggen in live systeem",
|
|
25
|
+
"fr": "expérimental pour déboguer dans le système vivant",
|
|
26
|
+
"it": "sperimentale per debug nel sistema live",
|
|
27
|
+
"es": "experimental para depurar en el sistema en vivo",
|
|
28
|
+
"pl": "eksperymentalne debugowanie w systemie live",
|
|
29
|
+
"uk": "експериментальна дебюга в живій системі",
|
|
30
|
+
"zh-cn": "正在运行系统中调试的实验"
|
|
31
|
+
},
|
|
6
32
|
"1.20.3": {
|
|
7
33
|
"en": "bugfix device Manager",
|
|
8
34
|
"de": "bugfix Gerät Manager",
|
|
@@ -67,32 +93,6 @@
|
|
|
67
93
|
"pl": "przypisz Procent i Liter w assignhandler",
|
|
68
94
|
"uk": "призначте відсоток & Література в assignhandler",
|
|
69
95
|
"zh-cn": "在指定手牌中指定百分数( L)"
|
|
70
|
-
},
|
|
71
|
-
"1.19.33": {
|
|
72
|
-
"en": "sonoff bugfix aparrant_power",
|
|
73
|
-
"de": "sonoff bugfix aparrant_power",
|
|
74
|
-
"ru": "sonoff bugfix aparrant_power скачать бесплатно",
|
|
75
|
-
"pt": "sonoff bugfix aparrant_ power",
|
|
76
|
-
"nl": "sonoff bugfix aparrant_power",
|
|
77
|
-
"fr": "sonoff bugfix aparrant_power",
|
|
78
|
-
"it": "sonoff bugfix aparrant_power",
|
|
79
|
-
"es": "sonoff bugfix aparrant_power",
|
|
80
|
-
"pl": "sonoff bugfix aparrant _ power",
|
|
81
|
-
"uk": "gaeilge, english, українська..",
|
|
82
|
-
"zh-cn": "sonoff 错误修补parrant_power"
|
|
83
|
-
},
|
|
84
|
-
"1.19.32": {
|
|
85
|
-
"en": "bugfix await this.ObjectExists",
|
|
86
|
-
"de": "bugfix warten darauf. ObjekteExperimente",
|
|
87
|
-
"ru": "багфикс, жди этого. Объекты существуют",
|
|
88
|
-
"pt": "bugfix espera por isto. O objeto existe",
|
|
89
|
-
"nl": "bugfix wacht hier op. ObjectBestaat",
|
|
90
|
-
"fr": "bugfix attend ça. Objet Existe",
|
|
91
|
-
"it": "bugfix aspetta questo. OBIETTIVI",
|
|
92
|
-
"es": "bugfix espera esto. ObjectExists",
|
|
93
|
-
"pl": "bugfix czeka na to. ObjectExists",
|
|
94
|
-
"uk": "виправлено помилку. Об'єкти",
|
|
95
|
-
"zh-cn": "bugfix 等待这个 。 对象存在"
|
|
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,
|
|
@@ -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
|
|
|
@@ -503,7 +503,9 @@ class Lorawan extends utils.Adapter {
|
|
|
503
503
|
// Internal Objects => Assign to objectStore
|
|
504
504
|
if (id.startsWith(this.namespace)) {
|
|
505
505
|
// Update State in objectStore
|
|
506
|
-
|
|
506
|
+
if (!id.startsWith(`${this.namespace}.info`) && !id.startsWith(`${this.namespace}.bridge`)) {
|
|
507
|
+
await this.objectStore?.generateObjectStructureFromId(id, { payload: { object: obj } });
|
|
508
|
+
}
|
|
507
509
|
|
|
508
510
|
// External States
|
|
509
511
|
} else {
|
|
@@ -940,7 +942,9 @@ class Lorawan extends utils.Adapter {
|
|
|
940
942
|
await this.bridge?.publishId(id, state.val, {});
|
|
941
943
|
} else {
|
|
942
944
|
// Update State in objectStore
|
|
943
|
-
|
|
945
|
+
if (!id.startsWith(`${this.namespace}.info`) && !id.startsWith(`${this.namespace}.bridge`)) {
|
|
946
|
+
await this.objectStore?.generateObjectStructureFromId(id, { payload: { state: state } });
|
|
947
|
+
}
|
|
944
948
|
}
|
|
945
949
|
}
|
|
946
950
|
} else {
|