iobroker.lorawan 0.5.1 → 0.5.3
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
|
@@ -22,6 +22,12 @@ For now there is documentation in English here: http://www.hafenmeister.com/Lora
|
|
|
22
22
|
Placeholder for the next version (at the beginning of the line):
|
|
23
23
|
### **WORK IN PROGRESS**
|
|
24
24
|
-->
|
|
25
|
+
### 0.5.3 (2024-02-29)
|
|
26
|
+
* (BenAhrdt) change folder for writetriggers
|
|
27
|
+
|
|
28
|
+
### 0.5.2 (2024-02-29)
|
|
29
|
+
* (BenAhrdt) make writetrigger more flexible
|
|
30
|
+
|
|
25
31
|
### 0.5.1 (2024-02-29)
|
|
26
32
|
* (BenAhrdt) detecting of triggerwords changed
|
|
27
33
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lorawan",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.3",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.5.3": {
|
|
7
|
+
"en": "change folder for writetriggers",
|
|
8
|
+
"de": "ordner für schreiber ändern",
|
|
9
|
+
"ru": "изменить папку для дикторов",
|
|
10
|
+
"pt": "mudar a pasta para writetriggers",
|
|
11
|
+
"nl": "map voor schrijftriggers wijzigen",
|
|
12
|
+
"fr": "modifier le dossier pour writetriggers",
|
|
13
|
+
"it": "modificare la cartella per writetriggers",
|
|
14
|
+
"es": "cambiar la carpeta para los escritores",
|
|
15
|
+
"pl": "zmień folder dla pisarzy",
|
|
16
|
+
"uk": "змінити папку для запису",
|
|
17
|
+
"zh-cn": "更改写入文件夹"
|
|
18
|
+
},
|
|
19
|
+
"0.5.2": {
|
|
20
|
+
"en": "make writetrigger more flexible",
|
|
21
|
+
"de": "schreibtrigger flexibler gestalten",
|
|
22
|
+
"ru": "сделать пишущее устройство более гибким",
|
|
23
|
+
"pt": "fazer writetrigger mais flexível",
|
|
24
|
+
"nl": "schrijftrigger flexibeler maken",
|
|
25
|
+
"fr": "rendre le trigger plus flexible",
|
|
26
|
+
"it": "rendere writetrigger più flessibile",
|
|
27
|
+
"es": "hacer la escritura más flexible",
|
|
28
|
+
"pl": "uczynić pisarkę bardziej elastyczną",
|
|
29
|
+
"uk": "зробити напилення більш гнучким",
|
|
30
|
+
"zh-cn": "使写入器更加灵活"
|
|
31
|
+
},
|
|
6
32
|
"0.5.1": {
|
|
7
33
|
"en": "detecting of triggerwords changed",
|
|
8
34
|
"de": "erkennung von triggerworten geändert",
|
|
@@ -67,32 +93,6 @@
|
|
|
67
93
|
"pl": "zmiana logowania w przypadku połączenia urządzenia z siecią",
|
|
68
94
|
"uk": "перезавантаження знову, якщо пристрій долучився до мережі",
|
|
69
95
|
"zh-cn": "如果设备加入了网络, 将再次更改记录"
|
|
70
|
-
},
|
|
71
|
-
"0.3.9": {
|
|
72
|
-
"en": "change logging if a device joined the network",
|
|
73
|
-
"de": "änderung der protokollierung, wenn ein gerät im netzwerk angeschlossen ist",
|
|
74
|
-
"ru": "изменение регистрации, если устройство вступило в сеть",
|
|
75
|
-
"pt": "alterar o registro se um dispositivo entrou na rede",
|
|
76
|
-
"nl": "loggen wijzigen als een apparaat zich aan het netwerk heeft aangesloten",
|
|
77
|
-
"fr": "modifier l'enregistrement si un périphérique a rejoint le réseau",
|
|
78
|
-
"it": "modificare la registrazione se un dispositivo è entrato nella rete",
|
|
79
|
-
"es": "cambiar de registro si un dispositivo se unió a la red",
|
|
80
|
-
"pl": "zmiana logowania, jeśli urządzenie dołączyło do sieci",
|
|
81
|
-
"uk": "змінити логування, якщо пристрій долучився до мережі",
|
|
82
|
-
"zh-cn": "如果设备加入网络, 更改日志"
|
|
83
|
-
},
|
|
84
|
-
"0.3.8": {
|
|
85
|
-
"en": "write def into state in case of type changes",
|
|
86
|
-
"de": "schreiben def in zustand bei typänderungen",
|
|
87
|
-
"ru": "написать деф в состояние в случае изменения типа",
|
|
88
|
-
"pt": "escrever def em estado em caso de alterações de tipo",
|
|
89
|
-
"nl": "def in status schrijven in geval van typewijzigingen",
|
|
90
|
-
"fr": "écrire def dans l'état en cas de changement de type",
|
|
91
|
-
"it": "scrivere def in stato in caso di variazioni di tipo",
|
|
92
|
-
"es": "escribir def en estado en caso de cambios de tipo",
|
|
93
|
-
"pl": "zapis def do stanu w przypadku zmian typu",
|
|
94
|
-
"uk": "писати деф в стан у разі зміни типу",
|
|
95
|
-
"zh-cn": "在类型变化时将 def 写入状态"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"title": "LoRaWAN",
|
|
@@ -36,7 +36,7 @@ class directorieshandlerClass {
|
|
|
36
36
|
this.uplinkRoles = this.getJsonFromDirectoryfile(`${this.adapter.adapterDir}${this.uplinkRolesPath}`);
|
|
37
37
|
|
|
38
38
|
//define path for devicetype difinitions
|
|
39
|
-
this.writeTriggerPath = "/lib/modules/
|
|
39
|
+
this.writeTriggerPath = "/lib/modules/trigger/writeTrigger.json";
|
|
40
40
|
|
|
41
41
|
// get devicetype definitions
|
|
42
42
|
this.writeTrigger = this.getJsonFromDirectoryfile(`${this.adapter.adapterDir}${this.writeTriggerPath}`);
|
|
@@ -288,12 +288,13 @@ class directorieshandlerClass {
|
|
|
288
288
|
if(stateVal !== undefined){
|
|
289
289
|
// Set State from Objectpath
|
|
290
290
|
await this.adapter.setStateAsync(`${objectId}`,stateVal,true);
|
|
291
|
-
// Check, if there is
|
|
292
|
-
if(this.writeTrigger[elementName]){
|
|
291
|
+
// Check, if there is a writetrigger and the stateval is not euqal its releaseVal(still present)
|
|
292
|
+
if(this.writeTrigger[elementName] && this.writeTrigger[elementName].releaseValue !== stateVal){
|
|
293
293
|
const baseInfo = this.adapter.getBaseDeviceInfo(objectId);
|
|
294
|
-
const destinationId = `${baseInfo.objectStartDirectory}.${this.writeTrigger[elementName]}`;
|
|
294
|
+
const destinationId = `${baseInfo.objectStartDirectory}.${this.writeTrigger[elementName].destination}`;
|
|
295
295
|
const destinationState = await this.adapter.getStateAsync(destinationId);
|
|
296
|
-
if(destinationState?.val ===
|
|
296
|
+
if(destinationState?.val === this.writeTrigger[elementName].releaseValue){
|
|
297
|
+
this.adapter.log.debug(`writetrigger ${elementName} recogniced. value ${stateVal} will be written into ${this.writeTrigger[elementName].destination}`);
|
|
297
298
|
await this.adapter.setStateAsync(destinationId,stateVal);
|
|
298
299
|
}
|
|
299
300
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Devicetype": {"destination":{"destination":"configuration.devicetype","releaseValue":""},"releaseValue":""},
|
|
3
|
+
"devicetype": {"destination":"configuration.devicetype","releaseValue":""},
|
|
4
|
+
"Device": {"destination":"configuration.devicetype","releaseValue":""},
|
|
5
|
+
"device": {"destination":"configuration.devicetype","releaseValue":""},
|
|
6
|
+
"Hardware_mode": {"destination":"configuration.devicetype","releaseValue":""},
|
|
7
|
+
"Hardware_Mode": {"destination":"configuration.devicetype","releaseValue":""}
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Devicetype": "configuration.devicetype",
|
|
3
|
-
"devicetype": "configuration.devicetype",
|
|
4
|
-
"Device": "configuration.devicetype",
|
|
5
|
-
"device": "configuration.devicetype",
|
|
6
|
-
"Hardware_mode": "configuration.devicetype",
|
|
7
|
-
"Hardware_Mode": "configuration.devicetype"
|
|
8
|
-
}
|