iobroker.lorawan 1.18.2 → 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 +7 -0
- package/admin/i18n/de/translations.json +1 -0
- package/admin/i18n/en/translations.json +1 -0
- 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 +1 -0
- package/io-package.json +27 -27
- package/lib/modules/bridge.js +3 -2
- package/main.js +10 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,13 @@ 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
|
+
|
|
30
|
+
### 1.18.3 (2025-11-06)
|
|
31
|
+
* (BenAhrdt) Add possibility to switch the LoraWAN communication off (origin)
|
|
32
|
+
|
|
26
33
|
### 1.18.2 (2025-11-04)
|
|
27
34
|
* (BenAhrdt) Change Topicformat from device_state to device/state
|
|
28
35
|
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"LoRaWAN Network Service is disconnected": "Der Lorawan Netzwerkdienst ist getrennt",
|
|
53
53
|
"LoRaWAN device is back online": "Folgendes Lorawan Gerät ist wieder online",
|
|
54
54
|
"LoRaWAN device is offline": "Folgendes Lorawan Gerät ist offline",
|
|
55
|
+
"LorawanOff": "Aus",
|
|
55
56
|
"MQTTInstance": "MQTT -Instanz",
|
|
56
57
|
"NoBridgeConfiged": "Es wurde keine Bridge Konfiguriert !!!",
|
|
57
58
|
"OriginHeader": "Ursprungseinstellungen",
|
|
@@ -128,6 +128,7 @@
|
|
|
128
128
|
"BridgeTypeOff": "off",
|
|
129
129
|
"BridgeTypeHA": "Home Assistant",
|
|
130
130
|
"BridgeTypeSH": "Smart Home",
|
|
131
|
+
"LorawanOff": "off",
|
|
131
132
|
"RefreshDiscoveryCronJob": "Discover Cycle",
|
|
132
133
|
"RefreshDiscoveryCronJobTooltip": "insert the cronjob for refreshing the discovery",
|
|
133
134
|
"ClimateHeader": "Define States for Climate Entity",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"LoRaWAN Network Service is disconnected": "El servicio de la red Lorawan está desconectado",
|
|
53
53
|
"LoRaWAN device is back online": "El siguiente dispositivo Lorawan está en línea",
|
|
54
54
|
"LoRaWAN device is offline": "El siguiente dispositivo Lorawan está fuera de línea",
|
|
55
|
+
"LorawanOff": "apagado",
|
|
55
56
|
"MQTTInstance": "Instancia mqtt",
|
|
56
57
|
"NoBridgeConfiged": "¡No hay puente configurado!",
|
|
57
58
|
"OriginHeader": "Origensettings",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"LoRaWAN Network Service is disconnected": "Le service réseau Lorawan est déconnecté",
|
|
53
53
|
"LoRaWAN device is back online": "L'appareil Lorawan suivant est de retour en ligne",
|
|
54
54
|
"LoRaWAN device is offline": "Le dispositif Lorawan suivant est hors ligne",
|
|
55
|
+
"LorawanOff": "désactivé",
|
|
55
56
|
"MQTTInstance": "Instance MQTT",
|
|
56
57
|
"NoBridgeConfiged": "Il n'y a pas de pont confié !!!",
|
|
57
58
|
"OriginHeader": "Origine",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"LoRaWAN Network Service is disconnected": "Il servizio di rete Lorawan è disconnesso",
|
|
53
53
|
"LoRaWAN device is back online": "Il seguente dispositivo Lorawan è tornato online",
|
|
54
54
|
"LoRaWAN device is offline": "Il seguente dispositivo Lorawan è offline",
|
|
55
|
+
"LorawanOff": "spento",
|
|
55
56
|
"MQTTInstance": "Istanza MQTT",
|
|
56
57
|
"NoBridgeConfiged": "Non c'è bridge configurato !!!",
|
|
57
58
|
"OriginHeader": "Originsettings",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"LoRaWAN Network Service is disconnected": "Lorawan Network Service is losgekoppeld",
|
|
53
53
|
"LoRaWAN device is back online": "Het volgende Lorawan -apparaat is weer online",
|
|
54
54
|
"LoRaWAN device is offline": "Het volgende Lorawan -apparaat is offline",
|
|
55
|
+
"LorawanOff": "uit",
|
|
55
56
|
"MQTTInstance": "MQTT -instantie",
|
|
56
57
|
"NoBridgeConfiged": "Er is geen brug geconfigureerd !!!",
|
|
57
58
|
"OriginHeader": "Origensettings",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"LoRaWAN Network Service is disconnected": "Lorawan Network Service jest odłączona",
|
|
53
53
|
"LoRaWAN device is back online": "Następujące urządzenie Lorawan powraca do Internetu",
|
|
54
54
|
"LoRaWAN device is offline": "Następujące urządzenie Lorawan jest offline",
|
|
55
|
+
"LorawanOff": "wyłączony",
|
|
55
56
|
"MQTTInstance": "Instancja MQTT",
|
|
56
57
|
"NoBridgeConfiged": "Nie ma skonfigurowanego mostu !!!",
|
|
57
58
|
"OriginHeader": "Origensettings",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"LoRaWAN Network Service is disconnected": "O serviço de rede de Lorawan está desconectado",
|
|
53
53
|
"LoRaWAN device is back online": "O seguinte dispositivo Lorawan está novamente online",
|
|
54
54
|
"LoRaWAN device is offline": "O seguinte dispositivo Lorawan está offline",
|
|
55
|
+
"LorawanOff": "desligado",
|
|
55
56
|
"MQTTInstance": "Instância MQTT",
|
|
56
57
|
"NoBridgeConfiged": "Não há ponte configurada !!!",
|
|
57
58
|
"OriginHeader": "Origens",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"LoRaWAN Network Service is disconnected": "Сетевая служба Lorawan отключена",
|
|
53
53
|
"LoRaWAN device is back online": "Следующее устройство Lorawan возвращается в Интернет",
|
|
54
54
|
"LoRaWAN device is offline": "Следующее устройство Lorawan в автономном режиме",
|
|
55
|
+
"LorawanOff": "выключенный",
|
|
55
56
|
"MQTTInstance": "Экземпляр MQTT",
|
|
56
57
|
"NoBridgeConfiged": "Там нет моста, настроенного !!!",
|
|
57
58
|
"OriginHeader": "Origensettings",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"LoRaWAN Network Service is disconnected": "Служба мережі Lorawan відключена",
|
|
53
53
|
"LoRaWAN device is back online": "Наступний пристрій Lorawan повернувся в Інтернет",
|
|
54
54
|
"LoRaWAN device is offline": "Наступний пристрій Lorawan є в режимі офлайн",
|
|
55
|
+
"LorawanOff": "вимкнено",
|
|
55
56
|
"MQTTInstance": "Екземпляр MQTT",
|
|
56
57
|
"NoBridgeConfiged": "Немає мосту конфігурації !!!",
|
|
57
58
|
"OriginHeader": "Орієнтації",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"LoRaWAN Network Service is disconnected": "Lorawan网络服务已断开连接",
|
|
53
53
|
"LoRaWAN device is back online": "以下Lorawan设备返回在线",
|
|
54
54
|
"LoRaWAN device is offline": "以下Lorawan设备离线",
|
|
55
|
+
"LorawanOff": "离开",
|
|
55
56
|
"MQTTInstance": "MQTT实例",
|
|
56
57
|
"NoBridgeConfiged": "没有桥梁配置!!!",
|
|
57
58
|
"OriginHeader": "起源",
|
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.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
|
+
},
|
|
19
|
+
"1.18.3": {
|
|
20
|
+
"en": "Add possibility to switch the LoraWAN communication off (origin)",
|
|
21
|
+
"de": "Möglichkeit hinzufügen, die LoraWAN-Kommunikation auszuschalten (Ursprung)",
|
|
22
|
+
"ru": "Добавить возможность отключения связи LoraWAN (оригинал)",
|
|
23
|
+
"pt": "Adicionar possibilidade de desligar a comunicação LoraWAN (origem)",
|
|
24
|
+
"nl": "Mogelijkheid toevoegen om de LoraWAN communicatie uit te schakelen (origine)",
|
|
25
|
+
"fr": "Ajouter la possibilité d'éteindre la communication LoraWAN (origine)",
|
|
26
|
+
"it": "Aggiungi la possibilità di spegnere la comunicazione LoraWAN (origine)",
|
|
27
|
+
"es": "Añadir posibilidad de apagar la comunicación LoraWAN (origin)",
|
|
28
|
+
"pl": "Dodaj możliwość wyłączenia komunikacji LoraWAN (pochodzenie)",
|
|
29
|
+
"uk": "Додати можливість переключити LoraWAN зв'язок (рігін)",
|
|
30
|
+
"zh-cn": "添加切换 LoraWAN 通讯( 来源) 的可能性"
|
|
31
|
+
},
|
|
6
32
|
"1.18.2": {
|
|
7
33
|
"en": "Change Topicformat from device_state to device/state",
|
|
8
34
|
"de": "Topicformat von device_state zu device/state ändern",
|
|
@@ -67,32 +93,6 @@
|
|
|
67
93
|
"pl": "naciśnij NextSend",
|
|
68
94
|
"uk": "шемале",
|
|
69
95
|
"zh-cn": "按下一个发送"
|
|
70
|
-
},
|
|
71
|
-
"1.17.17": {
|
|
72
|
-
"en": "serialize appending Data on NextSend\nupdate assignhandler (SensorTemperature)",
|
|
73
|
-
"de": "serialisieren Appending Data auf NextSend\nupdate assignhandler (SensorTemperatur)",
|
|
74
|
-
"ru": "сериализировать добавленные данные в NextSend\nраспределитель обновлений (SensorTemperature)",
|
|
75
|
-
"pt": "serialize anexando dados no NextSend\natualizar assignhandler (SensorTemperature)",
|
|
76
|
-
"nl": "serialiseren toevoegen van gegevens op NextSend\nupdate awardhandler (SensorTemperatuur)",
|
|
77
|
-
"fr": "sérialiser l'ajout de données sur NextSend\nmettre à jour le gestionnaire d'attribution (SensorTemperature)",
|
|
78
|
-
"it": "serializzare i dati di appending su NextSend\naggiornamento assegnatore (SensorTemperature)",
|
|
79
|
-
"es": "serializar los datos pendientes en NextSend\n(SensorTemperature)",
|
|
80
|
-
"pl": "serializuj przypisywanie danych na nextSend\naktualizuj urządzenie sterujące (SensorTemperatura)",
|
|
81
|
-
"uk": "сертифікувати дані додатків на NextSend\nоновлення assignhandler (SensorTemperature)",
|
|
82
|
-
"zh-cn": "序列化下一端的数据\n更新指派手( 传感器)"
|
|
83
|
-
},
|
|
84
|
-
"1.17.16": {
|
|
85
|
-
"en": "bring state_off topic to humidifier",
|
|
86
|
-
"de": "state_off-thema zur befeuchtung bringen",
|
|
87
|
-
"ru": "скачать игру state_off для humidifier",
|
|
88
|
-
"pt": "trazer o tópico state_off para o umidificador",
|
|
89
|
-
"nl": "status_off onderwerp naar bevochtiger brengen",
|
|
90
|
-
"fr": "apporter le sujet état_off à l'humidificateur",
|
|
91
|
-
"it": "portare argomento state_off a umidificatore",
|
|
92
|
-
"es": "traer el tema state_off a humidificador",
|
|
93
|
-
"pl": "przynieść state _ off temat do nawilżacza",
|
|
94
|
-
"uk": "принести стан_вимкнути тему для зволоження",
|
|
95
|
-
"zh-cn": "将状态切换为潮湿器"
|
|
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,16 +74,6 @@ class Lorawan extends utils.Adapter {
|
|
|
74
74
|
// create new messagehandler
|
|
75
75
|
this.messagehandler = new messagehandlerClass(this);
|
|
76
76
|
|
|
77
|
-
// Set mqtt client => just declare, if a url is set
|
|
78
|
-
if (this.config.ipUrl !== '') {
|
|
79
|
-
this.mqttClient = new mqttClientClass(this, this.config);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// declare bridge if configed
|
|
83
|
-
if (this.config.BridgeType !== 'off') {
|
|
84
|
-
this.bridge = new bridgeClass(this);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
77
|
// generate new configed downlinkstates on allready existing devices at adapter startup
|
|
88
78
|
await this.messagehandler.generateDownlinksAndRemoveStatesAtStatup();
|
|
89
79
|
|
|
@@ -93,6 +83,16 @@ class Lorawan extends utils.Adapter {
|
|
|
93
83
|
// get history instances at Startup
|
|
94
84
|
await this.messagehandler.setCustomObjectAtStartup();
|
|
95
85
|
|
|
86
|
+
// Set mqtt client => just declare, if a url is set
|
|
87
|
+
if (this.config.origin !== 'off') {
|
|
88
|
+
this.mqttClient = new mqttClientClass(this, this.config);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// declare bridge if configed
|
|
92
|
+
if (this.config.BridgeType !== 'off') {
|
|
93
|
+
this.bridge = new bridgeClass(this);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
96
|
//Subscribe all configuration and control states
|
|
97
97
|
await this.subscribeStatesAsync('*');
|
|
98
98
|
//this.subscribeObjectsAsync('*.uplink.decoded.*');
|