iobroker.lorawan 1.20.24 → 1.20.25
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 +3 -0
- package/io-package.json +14 -14
- package/lib/modules/objectStore.js +18 -10
- package/main.js +1 -1
- package/package.json +1 -1
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.20.25 (2026-01-28)
|
|
27
|
+
* (BenAhrdt) improve number of role detection
|
|
28
|
+
|
|
26
29
|
### 1.20.24 (2026-01-28)
|
|
27
30
|
* (BenAhrdt) change info Form to Detail button
|
|
28
31
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lorawan",
|
|
4
|
-
"version": "1.20.
|
|
4
|
+
"version": "1.20.25",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.20.25": {
|
|
7
|
+
"en": "improve number of role detection",
|
|
8
|
+
"de": "verbesserung der anzahl der rollenerkennung",
|
|
9
|
+
"ru": "улучшение обнаружения ролей",
|
|
10
|
+
"pt": "melhorar o número de detecção de funções",
|
|
11
|
+
"nl": "het aantal roldetectie verbeteren",
|
|
12
|
+
"fr": "améliorer le nombre de détections de rôles",
|
|
13
|
+
"it": "migliorare il numero di rilevamento del ruolo",
|
|
14
|
+
"es": "mejorar el número de detección de funciones",
|
|
15
|
+
"pl": "zwiększenie liczby wykrywanych ról",
|
|
16
|
+
"uk": "поліпшення кількості визначення ролі",
|
|
17
|
+
"zh-cn": "改进角色检测数量"
|
|
18
|
+
},
|
|
6
19
|
"1.20.24": {
|
|
7
20
|
"en": "change info Form to Detail button",
|
|
8
21
|
"de": "änderungen Formular zum Detail Knopf",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "bugfix incon set",
|
|
81
94
|
"uk": "виправлення помилок",
|
|
82
95
|
"zh-cn": "装入套装错误"
|
|
83
|
-
},
|
|
84
|
-
"1.20.18": {
|
|
85
|
-
"en": "bugfix nameing incomingTopic",
|
|
86
|
-
"de": "bugfix Nameing eingehend Thema",
|
|
87
|
-
"ru": "bugfix Имя входящего Тема",
|
|
88
|
-
"pt": "correcção de erros a dar entrada Tópico",
|
|
89
|
-
"nl": "bugfix-naam binnenkomend Onderwerp",
|
|
90
|
-
"fr": "bugfix nominant entrant Thème",
|
|
91
|
-
"it": "bugfix nome in arrivo Argomento",
|
|
92
|
-
"es": "bugfix nombre entrante Tema",
|
|
93
|
-
"pl": "nadchodzące nazewnictwo bugfix Temat",
|
|
94
|
-
"uk": "виправлення ім'я користувача Головна",
|
|
95
|
-
"zh-cn": "正在接收错误修正名称 专题"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
|
@@ -102,16 +102,24 @@ class objectStoreClass {
|
|
|
102
102
|
if (payload.object) {
|
|
103
103
|
// Just Quere if role is not undefined
|
|
104
104
|
if (payload.object.common.role !== undefined) {
|
|
105
|
-
if (!
|
|
106
|
-
deviceObject[deviceId].detectedRoles
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
deviceObject[deviceId].detectedRoles[payload.object.common.role]
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
105
|
+
if (!idObject[id].roleDetected) {
|
|
106
|
+
if (!deviceObject[deviceId].detectedRoles) {
|
|
107
|
+
deviceObject[deviceId].detectedRoles = {};
|
|
108
|
+
}
|
|
109
|
+
if (!deviceObject[deviceId].detectedRoles[payload.object.common.role]) {
|
|
110
|
+
deviceObject[deviceId].detectedRoles[payload.object.common.role] = {};
|
|
111
|
+
}
|
|
112
|
+
if (
|
|
113
|
+
!deviceObject[deviceId].detectedRoles[payload.object.common.role][idSubfolder]
|
|
114
|
+
) {
|
|
115
|
+
deviceObject[deviceId].detectedRoles[payload.object.common.role][idSubfolder] =
|
|
116
|
+
1;
|
|
117
|
+
} else {
|
|
118
|
+
deviceObject[deviceId].detectedRoles[payload.object.common.role][idSubfolder] +=
|
|
119
|
+
1;
|
|
120
|
+
}
|
|
121
|
+
// Role for DeviceAssignes
|
|
122
|
+
idObject[id].roleDetected = true;
|
|
115
123
|
}
|
|
116
124
|
if (Object.hasOwn(this.roleAssignToDeviceInformations, payload.object.common.role)) {
|
|
117
125
|
roleAssign = this.roleAssignToDeviceInformations[payload.object.common.role];
|
package/main.js
CHANGED