iobroker.lorawan 1.18.39 → 1.18.40
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 +3 -0
- package/io-package.json +14 -14
- package/lib/modules/bridgeMqttclient.js +8 -0
- package/main.js +36 -2
- package/package.json +1 -1
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.18.40 (2025-12-01)
|
|
27
|
+
* (BenAhrdt) change hash
|
|
28
|
+
|
|
26
29
|
### 1.18.39 (2025-11-30)
|
|
27
30
|
* (BenAhrdt) build more roles for contactsensors, in case of role. (window, door, gate ...)
|
|
28
31
|
|
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.40",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.18.40": {
|
|
7
|
+
"en": "change hash",
|
|
8
|
+
"de": "ändern hash",
|
|
9
|
+
"ru": "изменить хеш",
|
|
10
|
+
"pt": "mudar hash",
|
|
11
|
+
"nl": "hash veranderen",
|
|
12
|
+
"fr": "changement hash",
|
|
13
|
+
"it": "cambiamento hash",
|
|
14
|
+
"es": "cambio hash",
|
|
15
|
+
"pl": "zmień hasz",
|
|
16
|
+
"uk": "зміна хеш",
|
|
17
|
+
"zh-cn": "变化散列"
|
|
18
|
+
},
|
|
6
19
|
"1.18.39": {
|
|
7
20
|
"en": "build more roles for contactsensors, in case of role. (window, door, gate ...)",
|
|
8
21
|
"de": "bauen mehr rollen für kontaktsensoren, im falle der rolle. (fenster, tür, tor ...)",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "zmienione tłumaczenie",
|
|
81
94
|
"uk": "зміни перекладу",
|
|
82
95
|
"zh-cn": "翻译更改"
|
|
83
|
-
},
|
|
84
|
-
"1.18.33": {
|
|
85
|
-
"en": "change state in Lock entity",
|
|
86
|
-
"de": "änderungszustand in Sperreinrichtung",
|
|
87
|
-
"ru": "изменение состояния Lock entity",
|
|
88
|
-
"pt": "mudar o estado na entidade Bloquear",
|
|
89
|
-
"nl": "veranderingstoestand in Lock-entiteit",
|
|
90
|
-
"fr": "changement d'état dans l'entité de verrouillage",
|
|
91
|
-
"it": "cambiamento stato in entità Lock",
|
|
92
|
-
"es": "estado de cambio en la entidad Lock",
|
|
93
|
-
"pl": "zmiana stanu w jednostce blokującej",
|
|
94
|
-
"uk": "змінити стан в суб'єкті блокування",
|
|
95
|
-
"zh-cn": "锁定实体中的变化状态"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
|
@@ -97,7 +97,15 @@ class bridgeMqttClientClass {
|
|
|
97
97
|
this.adapter.log.debug(`incomming bridge topic: ${topic}`);
|
|
98
98
|
this.adapter.log.debug(`incomming bridge message: ${message}`);
|
|
99
99
|
|
|
100
|
+
// String zuweisen, wenn JSON.parse ein Fehler auswirft.
|
|
100
101
|
let payload = message.toString('utf8');
|
|
102
|
+
|
|
103
|
+
// Write into debug
|
|
104
|
+
if (await this.adapter.objectExists('bridge.debug.incommingTopic')) {
|
|
105
|
+
await this.adapter.setState('bridge.debug.incommingTopic', topic, true);
|
|
106
|
+
await this.adapter.setState('bridge.debug.incommingPayload', payload, true);
|
|
107
|
+
}
|
|
108
|
+
|
|
101
109
|
// Message Parsen => Wenn nicht pasebar, dann string weitergeben
|
|
102
110
|
try {
|
|
103
111
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
package/main.js
CHANGED
|
@@ -45,7 +45,7 @@ class Lorawan extends utils.Adapter {
|
|
|
45
45
|
this.version;
|
|
46
46
|
|
|
47
47
|
this.secret = {
|
|
48
|
-
hash: '
|
|
48
|
+
hash: 'f3988f71e0d6248fbf690c414bcb46b0500c3a8b3ec9adb9c66be2774ec12291',
|
|
49
49
|
salt: 'LoRaWANBeScJoFr',
|
|
50
50
|
};
|
|
51
51
|
}
|
|
@@ -671,7 +671,13 @@ class Lorawan extends utils.Adapter {
|
|
|
671
671
|
});
|
|
672
672
|
this.extendObject('bridge.debug.topic', {
|
|
673
673
|
type: 'state',
|
|
674
|
-
common: {
|
|
674
|
+
common: {
|
|
675
|
+
name: 'topic of mqtt message',
|
|
676
|
+
type: 'string',
|
|
677
|
+
read: true,
|
|
678
|
+
write: true,
|
|
679
|
+
def: '',
|
|
680
|
+
},
|
|
675
681
|
native: {},
|
|
676
682
|
});
|
|
677
683
|
this.extendObject('bridge.debug.payload', {
|
|
@@ -680,6 +686,8 @@ class Lorawan extends utils.Adapter {
|
|
|
680
686
|
name: 'payload of mqtt message',
|
|
681
687
|
type: 'string',
|
|
682
688
|
role: 'json',
|
|
689
|
+
read: true,
|
|
690
|
+
write: true,
|
|
683
691
|
def: '',
|
|
684
692
|
},
|
|
685
693
|
native: {},
|
|
@@ -690,10 +698,36 @@ class Lorawan extends utils.Adapter {
|
|
|
690
698
|
name: 'payload of mqtt message',
|
|
691
699
|
type: 'boolean',
|
|
692
700
|
role: 'button',
|
|
701
|
+
read: false,
|
|
702
|
+
write: true,
|
|
693
703
|
def: false,
|
|
694
704
|
},
|
|
695
705
|
native: {},
|
|
696
706
|
});
|
|
707
|
+
// Incomming
|
|
708
|
+
this.extendObject('bridge.debug.incommingTopic', {
|
|
709
|
+
type: 'state',
|
|
710
|
+
common: {
|
|
711
|
+
name: 'topic of mqtt message',
|
|
712
|
+
type: 'string',
|
|
713
|
+
read: true,
|
|
714
|
+
write: false,
|
|
715
|
+
def: '',
|
|
716
|
+
},
|
|
717
|
+
native: {},
|
|
718
|
+
});
|
|
719
|
+
this.extendObject('bridge.debug.incommingPayload', {
|
|
720
|
+
type: 'state',
|
|
721
|
+
common: {
|
|
722
|
+
name: 'payload of mqtt message',
|
|
723
|
+
type: 'string',
|
|
724
|
+
role: 'json',
|
|
725
|
+
read: true,
|
|
726
|
+
write: false,
|
|
727
|
+
def: '',
|
|
728
|
+
},
|
|
729
|
+
native: {},
|
|
730
|
+
});
|
|
697
731
|
await this.setState(id, '', true);
|
|
698
732
|
}
|
|
699
733
|
} else {
|