iobroker.lorawan 1.8.1 → 1.8.2

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,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.8.2 (2025-04-15)
27
+ * (BenAhrdt) Defaultvalues for push und replace (TTN)
28
+
26
29
  ### 1.8.1 (2025-04-06)
27
30
  * (BenAhrdt) chaned format time in device info
28
31
 
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.8.1",
4
+ "version": "1.8.2",
5
5
  "news": {
6
+ "1.8.2": {
7
+ "en": "Defaultvalues for push und replace (TTN)",
8
+ "de": "Standardwerte für Push und ersetzen (TTN)",
9
+ "ru": "Дефолтные значения для push und replace (TTN)",
10
+ "pt": "Valores padrão para push und substituir (TTN)",
11
+ "nl": "Standaardwaarden voor push und replace (TTN)",
12
+ "fr": "Valeurs par défaut pour push und remplacer (TTN)",
13
+ "it": "Valori di default per push und sostituire (TTN)",
14
+ "es": "Valores predeterminados para push und replace (TTN)",
15
+ "pl": "Defaultvalues for push und replace (TTN)",
16
+ "uk": "Значення за замовчуванням для заміни унду (TTN)",
17
+ "zh-cn": "Push und 替换的默认值 (TTN)"
18
+ },
6
19
  "1.8.1": {
7
20
  "en": "chaned format time in device info",
8
21
  "de": "chaned format time in device info",
@@ -80,19 +93,6 @@
80
93
  "pl": "eksport i import downlinkconmfigs z fileman",
81
94
  "uk": "експорт і імпорт sdlinkconmfigs з файловmanager",
82
95
  "zh-cn": "以文件管理器导出和导入下行链路conmfigs"
83
- },
84
- "1.6.4": {
85
- "en": "Set decoded Structure in deviceInfos (with Merge)",
86
- "de": "Set decodierte Struktur in deviceInfos (mit Verschmelzung)",
87
- "ru": "Настройка декодированной структуры в deviceInfos (с Merge)",
88
- "pt": "Definir estrutura decodificada no dispositivoInfos (com fusão)",
89
- "nl": "Gedecodeerde structuur instellen in apparaatInfos (met samenvoegen)",
90
- "fr": "Définir la structure décodée dans l'appareilInfos (avec Merge)",
91
- "it": "Impostare la struttura decodificata in DeviceInfos (con fusione)",
92
- "es": "Establecer estructura decodificada en el dispositivoInfos (con Merge)",
93
- "pl": "Ustaw dekodowaną strukturę w deviceInfos (z połączeniem)",
94
- "uk": "Настроювання декодованої структури в пристроїІнфос (з торговою маркою)",
95
- "zh-cn": "在设备Infos( 合并) 中设置解码结构"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -482,6 +482,19 @@ class messagehandlerClass {
482
482
  );
483
483
  }
484
484
 
485
+ // Query for base device and parameter push or replace
486
+ if (downlinkDevice === this.adapter.downlinkConfighandler.internalDevices.baseDevice) {
487
+ if (downlinkParameter.name === 'push' || downlinkParameter.name === 'replace') {
488
+ const downlink = this.adapter.downlinkConfighandler.getDownlink(
489
+ this.adapter.downlinkConfighandler.activeDownlinkConfigs[changeInfo.deviceType]
490
+ .downlinkParameter[0],
491
+ '0000',
492
+ changeInfo,
493
+ );
494
+ common.def = JSON.stringify(downlink);
495
+ }
496
+ }
497
+
485
498
  await this.adapter.extendObjectAsync(stateId, {
486
499
  type: 'state',
487
500
  common: common,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",