iobroker.lorawan 1.18.3 → 1.18.4
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 +4 -0
- package/io-package.json +14 -14
- package/lib/modules/bridge.js +3 -2
- package/main.js +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,10 @@ 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.4 (2025-11-08)
|
|
27
|
+
* (BenAhrdt) Change unique id for lorawan internal standard states
|
|
28
|
+
* (BenAhrdt) Change sequence of dicovery and check downlinks at startup
|
|
29
|
+
|
|
26
30
|
### 1.18.3 (2025-11-06)
|
|
27
31
|
* (BenAhrdt) Add possibility to switch the LoraWAN communication off (origin)
|
|
28
32
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lorawan",
|
|
4
|
-
"version": "1.18.
|
|
4
|
+
"version": "1.18.4",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.18.4": {
|
|
7
|
+
"en": "Change unique id for lorawan internal standard states\nChange sequence of dicovery and check downlinks at startup",
|
|
8
|
+
"de": "Ändern Sie einzigartige id für lorawan interne Standardzustände\nÄndern Sie die Reihenfolge der Dicovery und überprüfen Sie Downlinks beim Start",
|
|
9
|
+
"ru": "Изменение уникального идентификатора для внутренних стандартных состояний Lorawan\nИзмените последовательность обнаружения и проверьте нисходящие ссылки при запуске",
|
|
10
|
+
"pt": "Mudar o ID único para estados padrão internos do lorawan\nAltere a sequência de dicovery e verifique os links abaixo na inicialização",
|
|
11
|
+
"nl": "Wijzig unieke id voor Lorawan interne standaardstaten\nVerander de sequentie van de dicovery en controleer downlinks bij opstarten",
|
|
12
|
+
"fr": "Modifier l'identifiant unique pour les états standard internes de lorawan\nChanger la séquence de dicovery et vérifier les liens descendants au démarrage",
|
|
13
|
+
"it": "Cambiare id unico per lorawan stati standard interni\nModificare la sequenza di scoperta e controllare downlink all'avvio",
|
|
14
|
+
"es": "Cambio único id para los estados estándar internos de Lorawan\nCambio de secuencia de descubrimiento y check downlinks al inicio",
|
|
15
|
+
"pl": "Zmiana niepowtarzalnego identyfikatora dla stanów wewnętrznych Lorawan\nZmień sekwencję dicovery i sprawdź linki w dół przy starcie",
|
|
16
|
+
"uk": "Зміна унікальних ідентифікаторів для внутрішніх стандартних станів лоурен\nЗміна послідовності дифективних і контрольних посилань при запуску",
|
|
17
|
+
"zh-cn": "更改 Lorawan 内部标准状态的独有 ID\n更改隐藏的顺序并在启动时检查下行链路"
|
|
18
|
+
},
|
|
6
19
|
"1.18.3": {
|
|
7
20
|
"en": "Add possibility to switch the LoraWAN communication off (origin)",
|
|
8
21
|
"de": "Möglichkeit hinzufügen, die LoraWAN-Kommunikation auszuschalten (Ursprung)",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "naciśnij NextSend",
|
|
81
94
|
"uk": "шемале",
|
|
82
95
|
"zh-cn": "按下一个发送"
|
|
83
|
-
},
|
|
84
|
-
"1.17.17": {
|
|
85
|
-
"en": "serialize appending Data on NextSend\nupdate assignhandler (SensorTemperature)",
|
|
86
|
-
"de": "serialisieren Appending Data auf NextSend\nupdate assignhandler (SensorTemperatur)",
|
|
87
|
-
"ru": "сериализировать добавленные данные в NextSend\nраспределитель обновлений (SensorTemperature)",
|
|
88
|
-
"pt": "serialize anexando dados no NextSend\natualizar assignhandler (SensorTemperature)",
|
|
89
|
-
"nl": "serialiseren toevoegen van gegevens op NextSend\nupdate awardhandler (SensorTemperatuur)",
|
|
90
|
-
"fr": "sérialiser l'ajout de données sur NextSend\nmettre à jour le gestionnaire d'attribution (SensorTemperature)",
|
|
91
|
-
"it": "serializzare i dati di appending su NextSend\naggiornamento assegnatore (SensorTemperature)",
|
|
92
|
-
"es": "serializar los datos pendientes en NextSend\n(SensorTemperature)",
|
|
93
|
-
"pl": "serializuj przypisywanie danych na nextSend\naktualizuj urządzenie sterujące (SensorTemperatura)",
|
|
94
|
-
"uk": "сертифікувати дані додатків на NextSend\nоновлення assignhandler (SensorTemperature)",
|
|
95
|
-
"zh-cn": "序列化下一端的数据\n更新指派手( 传感器)"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/lib/modules/bridge.js
CHANGED
|
@@ -909,7 +909,7 @@ class bridgeClass {
|
|
|
909
909
|
this.adapter.messagehandler.directoryhandler.reachableSubfolders.uplinkDecoded.length + 1;
|
|
910
910
|
}
|
|
911
911
|
const StateName = changeInfo.id.substring(indexOfStatebegin, changeInfo.id.length);
|
|
912
|
-
const normalizedStateName = this.normalizeString(StateName);
|
|
912
|
+
//const normalizedStateName = this.normalizeString(StateName); 08.11.2025 BeSc dont needed anymore with chenge below
|
|
913
913
|
const DeviceIdentifier = this.getDeviceIdentifier(changeInfo, this.adapter.config.DeviceIdentifiers);
|
|
914
914
|
const normalizedDeviceIdentifier = this.normalizeString(DeviceIdentifier);
|
|
915
915
|
const uniqueString = await this.getUniqueString(
|
|
@@ -924,7 +924,8 @@ class bridgeClass {
|
|
|
924
924
|
`${this.BridgeDiscoveryPrefix[this.adapter.config.BridgeType]}${EntityType}/${uniqueString?.path}/config`.toLowerCase();
|
|
925
925
|
const DiscoveryPayload = {
|
|
926
926
|
name: StateName,
|
|
927
|
-
unique_id: `${normalizedDeviceIdentifier}_${normalizedStateName}`.toLowerCase(),
|
|
927
|
+
//unique_id: `${normalizedDeviceIdentifier}_${normalizedStateName}`.toLowerCase(), 08.11.2025 BeSc changed into follow line
|
|
928
|
+
unique_id: `${uniqueString?.flat}`.toLowerCase(),
|
|
928
929
|
device: { identifiers: [normalizedDeviceIdentifier.toLowerCase()], name: DeviceIdentifier },
|
|
929
930
|
};
|
|
930
931
|
// Add Topics
|
package/main.js
CHANGED
|
@@ -74,6 +74,15 @@ class Lorawan extends utils.Adapter {
|
|
|
74
74
|
// create new messagehandler
|
|
75
75
|
this.messagehandler = new messagehandlerClass(this);
|
|
76
76
|
|
|
77
|
+
// generate new configed downlinkstates on allready existing devices at adapter startup
|
|
78
|
+
await this.messagehandler.generateDownlinksAndRemoveStatesAtStatup();
|
|
79
|
+
|
|
80
|
+
// generate deviceinfo of all devices in info folder
|
|
81
|
+
await this.messagehandler.generateDeviceinfosAtStartup();
|
|
82
|
+
|
|
83
|
+
// get history instances at Startup
|
|
84
|
+
await this.messagehandler.setCustomObjectAtStartup();
|
|
85
|
+
|
|
77
86
|
// Set mqtt client => just declare, if a url is set
|
|
78
87
|
if (this.config.origin !== 'off') {
|
|
79
88
|
this.mqttClient = new mqttClientClass(this, this.config);
|
|
@@ -84,15 +93,6 @@ class Lorawan extends utils.Adapter {
|
|
|
84
93
|
this.bridge = new bridgeClass(this);
|
|
85
94
|
}
|
|
86
95
|
|
|
87
|
-
// generate new configed downlinkstates on allready existing devices at adapter startup
|
|
88
|
-
await this.messagehandler.generateDownlinksAndRemoveStatesAtStatup();
|
|
89
|
-
|
|
90
|
-
// generate deviceinfo of all devices in info folder
|
|
91
|
-
await this.messagehandler.generateDeviceinfosAtStartup();
|
|
92
|
-
|
|
93
|
-
// get history instances at Startup
|
|
94
|
-
await this.messagehandler.setCustomObjectAtStartup();
|
|
95
|
-
|
|
96
96
|
//Subscribe all configuration and control states
|
|
97
97
|
await this.subscribeStatesAsync('*');
|
|
98
98
|
//this.subscribeObjectsAsync('*.uplink.decoded.*');
|