iobroker.lorawan 1.18.40 → 1.18.42
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 +6 -0
- package/io-package.json +27 -27
- package/lib/modules/bridge.js +4 -4
- package/lib/modules/bridgeMqttclient.js +7 -0
- package/main.js +24 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,12 @@ 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.42 (2025-12-01)
|
|
27
|
+
* (BenAhrdt) change gate to garage_door in binary_sensor
|
|
28
|
+
|
|
29
|
+
### 1.18.41 (2025-12-01)
|
|
30
|
+
* (BenAhrdt) change sending the payload in case of light
|
|
31
|
+
|
|
26
32
|
### 1.18.40 (2025-12-01)
|
|
27
33
|
* (BenAhrdt) change hash
|
|
28
34
|
|
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.42",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.18.42": {
|
|
7
|
+
"en": "change gate to garage_door in binary_sensor",
|
|
8
|
+
"de": "ändern sie das tor zu garage_door in binär_sensor",
|
|
9
|
+
"ru": "скачать игру garage_door in binary_sensor",
|
|
10
|
+
"pt": "mudar portão para garage_door em binário_sensor",
|
|
11
|
+
"nl": "poort wijzigen naar garage_deur in binaire _sensor",
|
|
12
|
+
"fr": "changer la porte en garage_door en binaire_sensor",
|
|
13
|
+
"it": "cambiare cancello a garage_door in binario_sensor",
|
|
14
|
+
"es": "cambio de puerta a garage_door en binario_sensor",
|
|
15
|
+
"pl": "zmiana bramy na garaż _ door w binarnym _ sensor",
|
|
16
|
+
"uk": "змінити ворота в гараж_критий в бінарних_сенсор",
|
|
17
|
+
"zh-cn": "在二进制中将门改为车库_门_传感器"
|
|
18
|
+
},
|
|
19
|
+
"1.18.41": {
|
|
20
|
+
"en": "change sending the payload in case of light",
|
|
21
|
+
"de": "änderung des sendens der nutzlast bei licht",
|
|
22
|
+
"ru": "изменение отправки полезной нагрузки в случае света",
|
|
23
|
+
"pt": "alterar o envio da carga útil em caso de luz",
|
|
24
|
+
"nl": "verandering in het verzenden van de lading in geval van licht",
|
|
25
|
+
"fr": "changement d'envoi de la charge utile en cas de lumière",
|
|
26
|
+
"it": "cambiare inviando il carico utile in caso di luce",
|
|
27
|
+
"es": "cambio enviar la carga útil en caso de luz",
|
|
28
|
+
"pl": "zmiana wysyłania ładunku w przypadku światła",
|
|
29
|
+
"uk": "змінити відправлення корисного навантаження при світлі",
|
|
30
|
+
"zh-cn": "更改发送有效载荷的光线"
|
|
31
|
+
},
|
|
6
32
|
"1.18.40": {
|
|
7
33
|
"en": "change hash",
|
|
8
34
|
"de": "ändern hash",
|
|
@@ -67,32 +93,6 @@
|
|
|
67
93
|
"pl": "fist possibilty to change unlatch on lock entity\nDodaj wersję do odkrycia\nDodaj przez urządzenie do odkrycia",
|
|
68
94
|
"uk": "fist possibillity змінити unlatch на суб'єкті блокування\nДодати версію для відкриття\nДодати через пристрій для відкриття",
|
|
69
95
|
"zh-cn": "在锁实体上更改未匹配的拳头特性\n在发现中添加版本\n通过设备添加到发现"
|
|
70
|
-
},
|
|
71
|
-
"1.18.35": {
|
|
72
|
-
"en": "internal code improovment for better reading",
|
|
73
|
-
"de": "interner code improovement für besseres lesen",
|
|
74
|
-
"ru": "импровизация внутреннего кода для лучшего чтения",
|
|
75
|
-
"pt": "improvisação de código interno para melhor leitura",
|
|
76
|
-
"nl": "interne code improvisatie voor beter lezen",
|
|
77
|
-
"fr": "imprégnation du code interne pour une meilleure lecture",
|
|
78
|
-
"it": "codice interno improovment per una migliore lettura",
|
|
79
|
-
"es": "improvimento de código interno para una mejor lectura",
|
|
80
|
-
"pl": "improwizacja kodu wewnętrznego dla lepszego czytania",
|
|
81
|
-
"uk": "внутрішня обробка коду для кращого читання",
|
|
82
|
-
"zh-cn": "内部代码即兴读取"
|
|
83
|
-
},
|
|
84
|
-
"1.18.34": {
|
|
85
|
-
"en": "translation changed",
|
|
86
|
-
"de": "übersetzung geändert",
|
|
87
|
-
"ru": "перевод изменился",
|
|
88
|
-
"pt": "tradução alterada",
|
|
89
|
-
"nl": "vertaling gewijzigd",
|
|
90
|
-
"fr": "traduction changée",
|
|
91
|
-
"it": "traduzione cambiata",
|
|
92
|
-
"es": "traducción modificada",
|
|
93
|
-
"pl": "zmienione tłumaczenie",
|
|
94
|
-
"uk": "зміни перекладу",
|
|
95
|
-
"zh-cn": "翻译更改"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/lib/modules/bridge.js
CHANGED
|
@@ -815,16 +815,16 @@ class bridgeClass {
|
|
|
815
815
|
val = {};
|
|
816
816
|
val.state = (await this.adapter.getForeignStateAsync(publish.LightIds.onOff)).val;
|
|
817
817
|
val.state = val.state === true ? 'ON' : 'OFF';
|
|
818
|
-
if (publish.LightIds.brightness) {
|
|
818
|
+
if (id === publish.LightIds.brightness) {
|
|
819
819
|
val.brightness = (await this.adapter.getForeignStateAsync(publish.LightIds.brightness)).val;
|
|
820
820
|
}
|
|
821
|
-
if (publish.LightIds.color) {
|
|
821
|
+
if (id === publish.LightIds.color) {
|
|
822
822
|
val.color_mode = 'rgb';
|
|
823
823
|
val.color = this.hexToRgb(
|
|
824
824
|
(await this.adapter.getForeignStateAsync(publish.LightIds.color)).val,
|
|
825
825
|
);
|
|
826
826
|
}
|
|
827
|
-
if (publish.LightIds.effects) {
|
|
827
|
+
if (id === publish.LightIds.effects) {
|
|
828
828
|
const effect = (await this.adapter.getForeignStateAsync(publish.LightIds.effects)).val;
|
|
829
829
|
val.effect = '';
|
|
830
830
|
if (publish.effects[effect]) {
|
|
@@ -1534,7 +1534,7 @@ class bridgeClass {
|
|
|
1534
1534
|
} else if (role.includes('door')) {
|
|
1535
1535
|
attributes.device_class = 'door';
|
|
1536
1536
|
} else if (role.includes('gate')) {
|
|
1537
|
-
attributes.device_class = '
|
|
1537
|
+
attributes.device_class = 'door';
|
|
1538
1538
|
} else if (role.includes('lock')) {
|
|
1539
1539
|
attributes.device_class = 'lock';
|
|
1540
1540
|
} else if (role.includes('garage')) {
|
|
@@ -124,6 +124,13 @@ class bridgeMqttClientClass {
|
|
|
124
124
|
*/
|
|
125
125
|
async publish(topic, message, opt) {
|
|
126
126
|
this.adapter.log.debug(`Publishing bridge topic: ${topic} with message: ${message}.`);
|
|
127
|
+
|
|
128
|
+
// Write into debug
|
|
129
|
+
if (await this.adapter.objectExists('bridge.debug.outgoingTopic')) {
|
|
130
|
+
await this.adapter.setState('bridge.debug.outgoingTopic', topic, true);
|
|
131
|
+
await this.adapter.setState('bridge.debug.outgoingPayload', message, true);
|
|
132
|
+
}
|
|
133
|
+
|
|
127
134
|
await this.client.publishAsync(topic, message, opt);
|
|
128
135
|
}
|
|
129
136
|
|
package/main.js
CHANGED
|
@@ -728,6 +728,30 @@ class Lorawan extends utils.Adapter {
|
|
|
728
728
|
},
|
|
729
729
|
native: {},
|
|
730
730
|
});
|
|
731
|
+
// Outgoing
|
|
732
|
+
this.extendObject('bridge.debug.outgoingTopic', {
|
|
733
|
+
type: 'state',
|
|
734
|
+
common: {
|
|
735
|
+
name: 'topic of mqtt message',
|
|
736
|
+
type: 'string',
|
|
737
|
+
read: true,
|
|
738
|
+
write: false,
|
|
739
|
+
def: '',
|
|
740
|
+
},
|
|
741
|
+
native: {},
|
|
742
|
+
});
|
|
743
|
+
this.extendObject('bridge.debug.outgoingPayload', {
|
|
744
|
+
type: 'state',
|
|
745
|
+
common: {
|
|
746
|
+
name: 'payload of mqtt message',
|
|
747
|
+
type: 'string',
|
|
748
|
+
role: 'json',
|
|
749
|
+
read: true,
|
|
750
|
+
write: false,
|
|
751
|
+
def: '',
|
|
752
|
+
},
|
|
753
|
+
native: {},
|
|
754
|
+
});
|
|
731
755
|
await this.setState(id, '', true);
|
|
732
756
|
}
|
|
733
757
|
} else {
|