iobroker.lorawan 1.18.52 → 1.18.54

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.18.54 (2025-12-29)
27
+ * (BenAhrdt) add '.' to folders in config selection
28
+
29
+ ### 1.18.53 (2025-12-29)
30
+ * (BenAhrdt) add possibility to add folders to
31
+
26
32
  ### 1.18.52 (2025-12-29)
27
33
  * (BenAhrdt) add possibility to set Devicesuffix in LoraWAN States
28
34
 
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.18.52",
4
+ "version": "1.18.54",
5
5
  "news": {
6
+ "1.18.54": {
7
+ "en": "add '.' to folders in config selection",
8
+ "de": "fügen sie '.' in ordner in config auswahl",
9
+ "ru": "добавить '.' в папки в настройках выбора",
10
+ "pt": "adicionar '.' às pastas na seleção de configuração",
11
+ "nl": "'.' toevoegen aan mappen in configuratieselectie",
12
+ "fr": "ajouter '.' aux dossiers dans la sélection de configuration",
13
+ "it": "aggiungere '.' alle cartelle nella selezione di configurazione",
14
+ "es": "añadir '.' a carpetas en la selección de configuración",
15
+ "pl": "dodaj '.' do folderów w zaznaczeniu konfiguracyjnym",
16
+ "uk": "додати '.' до папок у вибраному конфігурації",
17
+ "zh-cn": "在配置选中的文件夹中添加“. ”"
18
+ },
19
+ "1.18.53": {
20
+ "en": "add possibility to add folders to",
21
+ "de": "die möglichkeit hinzufügen von ordnern",
22
+ "ru": "добавить возможность добавления папок в",
23
+ "pt": "adicionar a possibilidade de adicionar pastas",
24
+ "nl": "mogelijkheid toevoegen om mappen toe te voegen aan",
25
+ "fr": "ajouter la possibilité d'ajouter des dossiers à",
26
+ "it": "aggiungere la possibilità di aggiungere cartelle a",
27
+ "es": "añadir la posibilidad de añadir carpetas para",
28
+ "pl": "dodać możliwość dodawania folderów do",
29
+ "uk": "додати можливість додати папки до",
30
+ "zh-cn": "添加文件夹到"
31
+ },
6
32
  "1.18.52": {
7
33
  "en": "add possibility to set Devicesuffix in LoraWAN States",
8
34
  "de": "möglichkeit hinzufügen, Devicesuffix in LoraWAN-Staaten einzustellen",
@@ -67,32 +93,6 @@
67
93
  "pl": "Ustaw wybór na używane Nazwy (aplikacja i urządzenie)",
68
94
  "uk": "Налаштуйте вибір для використанняНазви (застосування та пристрій)",
69
95
  "zh-cn": "将选中区域设定为使用的名称( 应用程序和设备)"
70
- },
71
- "1.18.47": {
72
- "en": "* CustomSend becomes possibility for different order of parameters.\n payloadInHex, port, confirmed, priority, push (push is written as string 'push')",
73
- "de": "* CustomSend wird Möglichkeit für verschiedene Parameterreihenfolge.\nnutzlast InHex, Port, bestätigt, Priorität, Push (Push wird als String 'Push' geschrieben)",
74
- "ru": "* CustomSend становится возможностью для различных порядков параметров.\nполезная нагрузка InHex, порт, подтвержденный, приоритет, push (push пишется как строка «push»)",
75
- "pt": "* CustomSend torna-se possibilidade para diferentes ordens de parâmetros.\ncarga útil InHex, porto, confirmado, prioridade, push (empurra é escrito como string 'push')",
76
- "nl": "* AangepastVerzenden wordt mogelijk voor verschillende orde van parameters.\nlaadvermogen InHex, poort, bevestigd, prioriteit, push (push is geschreven als string 'push')",
77
- "fr": "* CustomSend devient possibilité pour différents ordres de paramètres.\ncharge utile InHex, port, confirmé, priorité, push (push est écrit comme chaîne de caractères \"push\")",
78
- "it": "* CustomSend diventa possibilità per ordine diverso di parametri.\ncarico utile InHex, porto, confermato, priorità, spinta (push è scritto come stringa 'push')",
79
- "es": "* CustomSend se convierte en posibilidad para diferentes tipos de parámetros.\ncarga útil InHex, port, confirmed, priority, push (push está escrito como cadena 'push')",
80
- "pl": "* CustomSend staje się możliwością dla różnych kolejności parametrów.\nładowność InHex, port, potwierdzone, priorytet, push (push jest zapisany jako ciąg 'push')",
81
- "uk": "* Користувальницька робота на різних параметрах.\nзавантажити InHex, порт, підтверджений, пріоритет, штовхач (подушка написана як рядок 'push')",
82
- "zh-cn": "* CustomSend成为不同参数顺序的可能.\n有效载荷 InHex, 端口, 确认, 优先级, 推( 推为字符串“ push” )"
83
- },
84
- "1.18.46": {
85
- "en": "CustomSend has been extended to include the option of direct push.",
86
- "de": "CustomSend wurde erweitert, um die Möglichkeit der direkten Push.",
87
- "ru": "CustomSend был расширен, чтобы включить возможность прямого толчка.",
88
- "pt": "O CustomSend foi estendido para incluir a opção de push direto.",
89
- "nl": "AangepastVerzenden is uitgebreid met de optie van directe push.",
90
- "fr": "CustomSend a été étendu pour inclure l'option de poussée directe.",
91
- "it": "CustomSend è stato esteso per includere l'opzione di spinta diretta.",
92
- "es": "CustomSend se ha ampliado para incluir la opción de empuje directo.",
93
- "pl": "CustomSend został rozszerzony o opcję bezpośredniego pchnięcia.",
94
- "uk": "CustomSend було розширено, щоб включити опцію прямого натискання.",
95
- "zh-cn": "CustomSend已被扩展,以包括直接推动的选择."
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -993,7 +993,7 @@ class bridgeClass {
993
993
  (changeInfo.applicationId === config.Application || config.Application === '*') &&
994
994
  (changeInfo.deviceEUI === config.Device || config.Device === '*') &&
995
995
  (id.includes(`.${config.Folder}.`) || config.Folder === '*') &&
996
- (id.endsWith(`.decoded.${config.State}`) || config.State === '*')
996
+ (id.includes(`.decoded.${config.State}`) || config.State === '*')
997
997
  ) {
998
998
  Bridgestate.discover = !config.exclude;
999
999
  Bridgestate.publish = true;
@@ -1065,7 +1065,7 @@ class bridgeClass {
1065
1065
  (changeInfo.applicationId === config.Application || config.Application === '*') &&
1066
1066
  (changeInfo.deviceEUI === config.Device || config.Device === '*') &&
1067
1067
  (id.includes(`.${config.Folder}.`) || config.Folder === '*') &&
1068
- (id.endsWith(`.control.${config.State}`) || config.State === '*')
1068
+ (id.includes(`.control.${config.State}`) || config.State === '*')
1069
1069
  ) {
1070
1070
  Bridgestate.discover = !config.exclude;
1071
1071
  Bridgestate.publish = config.publish;
package/main.js CHANGED
@@ -1429,15 +1429,17 @@ class Lorawan extends utils.Adapter {
1429
1429
  try {
1430
1430
  let myCount = 0;
1431
1431
  const states = [];
1432
+ const possibleTypes = { state: true };
1432
1433
  if (obj.command === 'getStatesForConfig') {
1433
1434
  states[myCount] = { label: '* (Wildcard)', value: '*' };
1434
1435
  myCount++;
1436
+ possibleTypes.folder = true;
1435
1437
  }
1436
1438
  const currentStates = {};
1437
1439
  const adapterObjects = await this.getAdapterObjectsAsync();
1438
1440
  for (const adapterObject of Object.values(adapterObjects)) {
1439
1441
  if (
1440
- adapterObject.type === 'state' &&
1442
+ possibleTypes[adapterObject.type] === true &&
1441
1443
  (adapterObject._id.includes(obj.message.application) ||
1442
1444
  obj.message.application === '*') &&
1443
1445
  (adapterObject._id.includes(obj.message.device) || obj.message.device === '*') &&
@@ -1459,6 +1461,9 @@ class Lorawan extends utils.Adapter {
1459
1461
  fullStatename += changeInfo?.allElements[i];
1460
1462
  }
1461
1463
  }
1464
+ if (adapterObject.type === 'folder') {
1465
+ fullStatename += '.';
1466
+ }
1462
1467
  const label = fullStatename;
1463
1468
  const value = fullStatename;
1464
1469
  if (!currentStates[value]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.18.52",
3
+ "version": "1.18.54",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",