iobroker.lorawan 1.18.50 → 1.18.52
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/admin/i18n/de/translations.json +1 -0
- package/admin/i18n/en/translations.json +2 -1
- package/admin/i18n/es/translations.json +1 -0
- package/admin/i18n/fr/translations.json +1 -0
- package/admin/i18n/it/translations.json +1 -0
- package/admin/i18n/nl/translations.json +1 -0
- package/admin/i18n/pl/translations.json +1 -0
- package/admin/i18n/pt/translations.json +1 -0
- package/admin/i18n/ru/translations.json +1 -0
- package/admin/i18n/uk/translations.json +1 -0
- package/admin/i18n/zh-cn/translations.json +1 -0
- package/admin/jsonConfig.json +7 -0
- package/io-package.json +27 -27
- package/lib/modules/assignhandler.js +11 -0
- package/lib/modules/bridge.js +11 -0
- 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.18.52 (2025-12-29)
|
|
27
|
+
* (BenAhrdt) add possibility to set Devicesuffix in LoraWAN States
|
|
28
|
+
|
|
29
|
+
### 1.18.51 (2025-12-20)
|
|
30
|
+
* (BenAhrdt) add "Temperatur" to autmatic assign
|
|
31
|
+
|
|
26
32
|
### 1.18.50 (2025-12-16)
|
|
27
33
|
* (BenAhrdt) filter in Debug mode (dev tool)
|
|
28
34
|
|
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
"device online offline": "Gerätezustandsmeldungen",
|
|
179
179
|
"deviceEUI": "Geräte EUI",
|
|
180
180
|
"deviceId": "Geräte Id",
|
|
181
|
+
"deviceSuffix": "Gerätesuffix",
|
|
181
182
|
"deviceType": "Gerätetyp",
|
|
182
183
|
"deviceTypeTooltip": "Geben Sie den Namen des Gerätetyps ein. Diese Konfiguration ist gültig. (z. B. Dragino XY passt auch zu Dragino)",
|
|
183
184
|
"downlinkConfig": "Donwlink-Konfiguration",
|
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
"device online offline": "notificaciones de estado del dispositivo",
|
|
179
179
|
"deviceEUI": "IUE del dispositivo",
|
|
180
180
|
"deviceId": "Identificación del dispositivo",
|
|
181
|
+
"deviceSuffix": "dispositivo sufijo",
|
|
181
182
|
"deviceType": "tipo de dispositivo",
|
|
182
183
|
"deviceTypeTooltip": "inserte el nombre del tipo de dispositivo, esta configuración es válida. (por ejemplo, Dragino XY también coincide con Dragino)",
|
|
183
184
|
"downlinkConfig": "Configuración de enlace donwlink",
|
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
"device online offline": "notifications d'état de l'appareil",
|
|
179
179
|
"deviceEUI": "Interface utilisateur de l'appareil",
|
|
180
180
|
"deviceId": "Identifiant de l'appareil",
|
|
181
|
+
"deviceSuffix": "Suffixe de l'appareil",
|
|
181
182
|
"deviceType": "type d'appareil",
|
|
182
183
|
"deviceTypeTooltip": "insérez le nom du type d'appareil, cette configuration est valide. (par exemple, Dragino XY correspond également à Dragino)",
|
|
183
184
|
"downlinkConfig": "Configuration du lien de téléchargement",
|
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
"device online offline": "notifiche sullo stato del dispositivo",
|
|
179
179
|
"deviceEUI": "IUE del dispositivo",
|
|
180
180
|
"deviceId": "ID dispositivo",
|
|
181
|
+
"deviceSuffix": "Suffisso dispositivo",
|
|
181
182
|
"deviceType": "tipo di dispositivo",
|
|
182
183
|
"deviceTypeTooltip": "inserire il nome del tipo di dispositivo, questa configurazione è valida. (es. Dragino XY corrisponde anche a Dragino)",
|
|
183
184
|
"downlinkConfig": "Configurazione downloadlink",
|
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
"device online offline": "meldingen over de apparaatstatus",
|
|
179
179
|
"deviceEUI": "Apparaat-EUI",
|
|
180
180
|
"deviceId": "Apparaat-ID",
|
|
181
|
+
"deviceSuffix": "apparaat Achtervoegsel",
|
|
181
182
|
"deviceType": "apparaattype",
|
|
182
183
|
"deviceTypeTooltip": "voer de naam van het apparaattype in, deze configuratie is geldig. (bijv. Dragino XY komt ook overeen met Dragino)",
|
|
183
184
|
"downlinkConfig": "Donwlink-configuratie",
|
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
"device online offline": "powiadomienia o stanie urządzenia",
|
|
179
179
|
"deviceEUI": "EUI urządzenia",
|
|
180
180
|
"deviceId": "Identyfikator urządzenia",
|
|
181
|
+
"deviceSuffix": "urządzenie Sufiks",
|
|
181
182
|
"deviceType": "typ urządzenia",
|
|
182
183
|
"deviceTypeTooltip": "wstaw nazwę typu urządzenia, ta konfiguracja jest prawidłowa. (np. Dragino XY pasuje również do Dragino)",
|
|
183
184
|
"downlinkConfig": "Konfiguracja Donwlink",
|
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
"device online offline": "notificações de estado do dispositivo",
|
|
179
179
|
"deviceEUI": "EUI do dispositivo",
|
|
180
180
|
"deviceId": "ID do dispositivo",
|
|
181
|
+
"deviceSuffix": "Sufixo do dispositivo",
|
|
181
182
|
"deviceType": "tipo de dispositivo",
|
|
182
183
|
"deviceTypeTooltip": "insira o nome do tipo de dispositivo, esta configuração é válida. (por exemplo, Dragino XY também corresponde a Dragino)",
|
|
183
184
|
"downlinkConfig": "Configuração Donwlink",
|
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
"device online offline": "уведомления о состоянии устройства",
|
|
179
179
|
"deviceEUI": "Интерфейс пользовательского интерфейса устройства",
|
|
180
180
|
"deviceId": "Идентификатор устройства",
|
|
181
|
+
"deviceSuffix": "Суффикс устройства",
|
|
181
182
|
"deviceType": "тип устройства",
|
|
182
183
|
"deviceTypeTooltip": "вставьте название типа устройства, этот конфиг действителен. (например, Dragino XY также соответствует Dragino)",
|
|
183
184
|
"downlinkConfig": "Donwlink-конфигурация",
|
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
"device online offline": "сповіщення про стан пристрою",
|
|
179
179
|
"deviceEUI": "Пристрій EUI",
|
|
180
180
|
"deviceId": "Ідентифікатор пристрою",
|
|
181
|
+
"deviceSuffix": "суфікс пристрою",
|
|
181
182
|
"deviceType": "тип пристрою",
|
|
182
183
|
"deviceTypeTooltip": "вставте назву типу пристрою, ця конфігурація дійсна. (наприклад, Dragino XY також відповідає Dragino)",
|
|
183
184
|
"downlinkConfig": "Конфігурація Donwlink",
|
package/admin/jsonConfig.json
CHANGED
package/io-package.json
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lorawan",
|
|
4
|
-
"version": "1.18.
|
|
4
|
+
"version": "1.18.52",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.18.52": {
|
|
7
|
+
"en": "add possibility to set Devicesuffix in LoraWAN States",
|
|
8
|
+
"de": "möglichkeit hinzufügen, Devicesuffix in LoraWAN-Staaten einzustellen",
|
|
9
|
+
"ru": "добавить возможность установки Devicesuffix в штатах LoraWAN",
|
|
10
|
+
"pt": "adicionar possibilidade de definir Dispositivosuffix nos Estados de LoraWAN",
|
|
11
|
+
"nl": "voeg mogelijkheid toe om Devicesuffix in LoraWAN Staten in te stellen",
|
|
12
|
+
"fr": "ajouter la possibilité de définir Devicesuffix dans les États de LoraWAN",
|
|
13
|
+
"it": "aggiungere la possibilità di impostare Devicesuffix in LoraWAN States",
|
|
14
|
+
"es": "añadir posibilidad para establecer Dispositivosuffix en Estados LoraWAN",
|
|
15
|
+
"pl": "dodać możliwość ustawienia Devicesuffix w państwach LoraWAN",
|
|
16
|
+
"uk": "додати можливість встановити Devicesuffix в LoraWAN",
|
|
17
|
+
"zh-cn": "添加在 LoraWAN 州设置设备后缀的可能性"
|
|
18
|
+
},
|
|
19
|
+
"1.18.51": {
|
|
20
|
+
"en": "add \"Temperatur\" to autmatic assign",
|
|
21
|
+
"de": "\"Temperatur\" zu autmatic assign hinzufügen",
|
|
22
|
+
"ru": "добавить \"Temperatur\" в аутматическое назначение",
|
|
23
|
+
"pt": "adicionar \"Temperatur\" à atribuição autmática",
|
|
24
|
+
"nl": "\"Temperatur\" toevoegen aan autmatisch toewijzen",
|
|
25
|
+
"fr": "ajouter \"Temperatur\" à l'attribut autmatique",
|
|
26
|
+
"it": "aggiungere \"Temperatur\" all'assegnazione autmatica",
|
|
27
|
+
"es": "añadir \"Temperatur\" a la asignación autmática",
|
|
28
|
+
"pl": "dodaj \"Temperatur\" do przypisania automatycznego",
|
|
29
|
+
"uk": "додати \"Temperatur\" до тематичного знака",
|
|
30
|
+
"zh-cn": "在自定义中添加“临时”"
|
|
31
|
+
},
|
|
6
32
|
"1.18.50": {
|
|
7
33
|
"en": "filter in Debug mode (dev tool)",
|
|
8
34
|
"de": "filter im Debug-Modus (dev tool)",
|
|
@@ -67,32 +93,6 @@
|
|
|
67
93
|
"pl": "CustomSend został rozszerzony o opcję bezpośredniego pchnięcia.",
|
|
68
94
|
"uk": "CustomSend було розширено, щоб включити опцію прямого натискання.",
|
|
69
95
|
"zh-cn": "CustomSend已被扩展,以包括直接推动的选择."
|
|
70
|
-
},
|
|
71
|
-
"1.18.45": {
|
|
72
|
-
"en": "improve showing Adapter state (yellw / green)",
|
|
73
|
-
"de": "verbesserung des Adapterzustands (gelb / grün)",
|
|
74
|
-
"ru": "улучшение отображения состояния адаптера (yellw / green)",
|
|
75
|
-
"pt": "melhorar mostrando o estado do adaptador (Yellw / verde)",
|
|
76
|
-
"nl": "verbetering van de stand van de adapter (geel / groen)",
|
|
77
|
-
"fr": "améliorer l'état de l'adaptateur (yellw / vert)",
|
|
78
|
-
"it": "migliorare lo stato dell'adattatore di visualizzazione (yellw / green)",
|
|
79
|
-
"es": "mejorar la visualización del estado del adaptador (yellw / verde)",
|
|
80
|
-
"pl": "poprawić wyświetlanie stanu Adapter (yellw / green)",
|
|
81
|
-
"uk": "поліпшення демонстрації стану адаптера (жовтий / зелений)",
|
|
82
|
-
"zh-cn": "改进显示适配器状态( yallw / 绿色)"
|
|
83
|
-
},
|
|
84
|
-
"1.18.44": {
|
|
85
|
-
"en": "add mixed to possible value types in config",
|
|
86
|
-
"de": "hinzufügen zu möglichen werttypen in config",
|
|
87
|
-
"ru": "добавить смешанные возможные типы значений в конфигурацию",
|
|
88
|
-
"pt": "adicionar mixed aos possíveis tipos de valor na configuração",
|
|
89
|
-
"nl": "gemengd toevoegen aan mogelijke waardetypes in configuratie",
|
|
90
|
-
"fr": "ajouter mélangé aux types de valeurs possibles dans config",
|
|
91
|
-
"it": "aggiungere misto a possibili tipi di valore in configurazione",
|
|
92
|
-
"es": "añadir mixto a posibles tipos de valor en config",
|
|
93
|
-
"pl": "dodać mieszane do możliwych typów wartości w konfigu",
|
|
94
|
-
"uk": "додати змішані для можливих типів значень в конфігурації",
|
|
95
|
-
"zh-cn": "在配置中向可能的值类型添加混合"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
|
@@ -540,6 +540,17 @@ class assignhandlerClass {
|
|
|
540
540
|
},
|
|
541
541
|
},
|
|
542
542
|
},
|
|
543
|
+
Temperatur: {
|
|
544
|
+
approvedFolders: {
|
|
545
|
+
'uplink.decoded': {
|
|
546
|
+
assignfunction: this.commonAssign,
|
|
547
|
+
common: {
|
|
548
|
+
role: 'level.temperature',
|
|
549
|
+
unit: '°C',
|
|
550
|
+
},
|
|
551
|
+
},
|
|
552
|
+
},
|
|
553
|
+
},
|
|
543
554
|
Temperature: {
|
|
544
555
|
approvedFolders: {
|
|
545
556
|
'uplink.decoded': {
|
package/lib/modules/bridge.js
CHANGED
|
@@ -984,6 +984,8 @@ class bridgeClass {
|
|
|
984
984
|
publish: false,
|
|
985
985
|
subscribe: false,
|
|
986
986
|
};
|
|
987
|
+
let deviceSuffix = '';
|
|
988
|
+
|
|
987
989
|
// Query for Stateconfig
|
|
988
990
|
if (this.adapter.config.BridgeStateConfig) {
|
|
989
991
|
for (const config of this.adapter.config.BridgeStateConfig) {
|
|
@@ -995,6 +997,7 @@ class bridgeClass {
|
|
|
995
997
|
) {
|
|
996
998
|
Bridgestate.discover = !config.exclude;
|
|
997
999
|
Bridgestate.publish = true;
|
|
1000
|
+
deviceSuffix = config.deviceSuffix;
|
|
998
1001
|
if (config.exclude) {
|
|
999
1002
|
this.adapter.log.debug(
|
|
1000
1003
|
`The Id: ${id} matches the exclude of the config: ${JSON.stringify(config)}`,
|
|
@@ -1008,6 +1011,7 @@ class bridgeClass {
|
|
|
1008
1011
|
}
|
|
1009
1012
|
}
|
|
1010
1013
|
if (Bridgestate.discover) {
|
|
1014
|
+
options.deviceSuffix = deviceSuffix;
|
|
1011
1015
|
options.Bridgestate = Bridgestate;
|
|
1012
1016
|
const DiscoveryObject = await this.getDiscoveryObject(changeInfo, options);
|
|
1013
1017
|
if (Bridgestate.publish) {
|
|
@@ -1053,6 +1057,7 @@ class bridgeClass {
|
|
|
1053
1057
|
publish: false,
|
|
1054
1058
|
subscribe: false,
|
|
1055
1059
|
};
|
|
1060
|
+
let deviceSuffix = '';
|
|
1056
1061
|
// Query for Stateconfig
|
|
1057
1062
|
if (this.adapter.config.BridgeStateConfig) {
|
|
1058
1063
|
for (const config of this.adapter.config.BridgeStateConfig) {
|
|
@@ -1071,6 +1076,8 @@ class bridgeClass {
|
|
|
1071
1076
|
}
|
|
1072
1077
|
}
|
|
1073
1078
|
if (Bridgestate.discover) {
|
|
1079
|
+
options.deviceSuffix = deviceSuffix;
|
|
1080
|
+
options.Bridgestate = Bridgestate;
|
|
1074
1081
|
options.Bridgestate = Bridgestate;
|
|
1075
1082
|
const DiscoveryObject = await this.getDiscoveryObject(changeInfo, options);
|
|
1076
1083
|
if (Bridgestate.publish) {
|
|
@@ -1237,6 +1244,10 @@ class bridgeClass {
|
|
|
1237
1244
|
} else {
|
|
1238
1245
|
DeviceIdentifier = this.getDeviceIdentifier(changeInfo, this.adapter.config.DeviceIdentifiers);
|
|
1239
1246
|
}
|
|
1247
|
+
// Add Suffix, if present
|
|
1248
|
+
if (options && options.deviceSuffix) {
|
|
1249
|
+
DeviceIdentifier += options.deviceSuffix;
|
|
1250
|
+
}
|
|
1240
1251
|
const normalizedDeviceIdentifier = this.normalizeString(DeviceIdentifier);
|
|
1241
1252
|
const uniqueString = await this.getUniqueString(
|
|
1242
1253
|
`${this.adapter.namespace}.${changeInfo.id}`,
|