iobroker.lorawan 1.18.32 → 1.18.33
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/bridge.js +7 -11
- 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.33 (2025-11-28)
|
|
27
|
+
* (BenAhrdt) change state in Lock entity
|
|
28
|
+
|
|
26
29
|
### 1.18.32 (2025-11-28)
|
|
27
30
|
* (BenAhrdt) Changes in cover and add Lock
|
|
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.33",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.18.33": {
|
|
7
|
+
"en": "change state in Lock entity",
|
|
8
|
+
"de": "änderungszustand in Sperreinrichtung",
|
|
9
|
+
"ru": "изменение состояния Lock entity",
|
|
10
|
+
"pt": "mudar o estado na entidade Bloquear",
|
|
11
|
+
"nl": "veranderingstoestand in Lock-entiteit",
|
|
12
|
+
"fr": "changement d'état dans l'entité de verrouillage",
|
|
13
|
+
"it": "cambiamento stato in entità Lock",
|
|
14
|
+
"es": "estado de cambio en la entidad Lock",
|
|
15
|
+
"pl": "zmiana stanu w jednostce blokującej",
|
|
16
|
+
"uk": "змінити стан в суб'єкті блокування",
|
|
17
|
+
"zh-cn": "锁定实体中的变化状态"
|
|
18
|
+
},
|
|
6
19
|
"1.18.32": {
|
|
7
20
|
"en": "Changes in cover and add Lock",
|
|
8
21
|
"de": "Änderungen im Cover und hinzufügen Lock",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "wright incomming datachange with ack = true",
|
|
81
94
|
"uk": "wright incomming dataexchange with ack = true",
|
|
82
95
|
"zh-cn": "wright 以 ack = true 输入数据交换"
|
|
83
|
-
},
|
|
84
|
-
"1.18.26": {
|
|
85
|
-
"en": "remove more logging for testing",
|
|
86
|
-
"de": "entfernen sie mehr protokollierung für tests",
|
|
87
|
-
"ru": "удалить больше журналов для тестирования",
|
|
88
|
-
"pt": "remover mais registro para testes",
|
|
89
|
-
"nl": "meer loggen verwijderen voor testen",
|
|
90
|
-
"fr": "supprimer plus de journalisation pour tester",
|
|
91
|
-
"it": "rimuovere più registrazione per il test",
|
|
92
|
-
"es": "eliminar más registro para pruebas",
|
|
93
|
-
"pl": "usunąć więcej logowania do testowania",
|
|
94
|
-
"uk": "видалити більше журналів для тестування",
|
|
95
|
-
"zh-cn": "删除更多用于测试的日志"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/lib/modules/bridge.js
CHANGED
|
@@ -3099,7 +3099,9 @@ class bridgeClass {
|
|
|
3099
3099
|
},
|
|
3100
3100
|
};
|
|
3101
3101
|
DiscoveryPayload.command_topic = `${lockTopic}${this.EndingSet}`;
|
|
3102
|
-
|
|
3102
|
+
if (config.LockIds.state) {
|
|
3103
|
+
DiscoveryPayload.state_topic = `${lockTopic}${this.EndingState}`;
|
|
3104
|
+
}
|
|
3103
3105
|
|
|
3104
3106
|
// Assign Subscribed Topics
|
|
3105
3107
|
// Incomming set
|
|
@@ -3117,19 +3119,17 @@ class bridgeClass {
|
|
|
3117
3119
|
|
|
3118
3120
|
// Assign Published Ids
|
|
3119
3121
|
// sending state
|
|
3120
|
-
if (config.LockIds.
|
|
3121
|
-
let stateId = config.LockIds.state ?? config.LockIds.command;
|
|
3122
|
-
let usedDeviceidentifier = Lock.state.DeviceIdentifier ?? deviceIdentifier;
|
|
3122
|
+
if (config.LockIds.state) {
|
|
3123
3123
|
this.assignIdStructure(
|
|
3124
3124
|
this.PublishedIds,
|
|
3125
|
-
|
|
3125
|
+
config.LockIds.state,
|
|
3126
3126
|
{
|
|
3127
|
-
usedDeviceId:
|
|
3127
|
+
usedDeviceId: Lock.state.DeviceIdentifier,
|
|
3128
3128
|
},
|
|
3129
3129
|
DiscoveryTopic,
|
|
3130
3130
|
DiscoveryPayload,
|
|
3131
3131
|
`${lockTopic}${this.EndingState}`,
|
|
3132
|
-
{
|
|
3132
|
+
{ lock: true, messageAssign: { locked: 'LOCKED', unlocked: 'UNLOCKED' } },
|
|
3133
3133
|
);
|
|
3134
3134
|
}
|
|
3135
3135
|
|
|
@@ -3148,10 +3148,6 @@ class bridgeClass {
|
|
|
3148
3148
|
// Delay for publish new entity
|
|
3149
3149
|
setTimeout(async () => {
|
|
3150
3150
|
// Subscribe state for onStatechange mathode
|
|
3151
|
-
if (config.LockIds.command) {
|
|
3152
|
-
await this.publishId(config.LockIds.command, undefined, {});
|
|
3153
|
-
await this.adapter.subscribeForeignStatesAsync(config.LockIds.command);
|
|
3154
|
-
}
|
|
3155
3151
|
if (config.LockIds.state) {
|
|
3156
3152
|
await this.publishId(config.LockIds.state, undefined, {});
|
|
3157
3153
|
await this.adapter.subscribeForeignStatesAsync(config.LockIds.state);
|