iobroker.zwavews 0.1.0 → 0.1.2
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 +34 -27
- package/main.js +8 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,6 +35,12 @@ Activate WS Server Settings in `zwave-js-ui` we use the Home Assistant Settings
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
## Changelog
|
|
38
|
+
### 0.1.2 (2026-03-15)
|
|
39
|
+
* (arteck) typo
|
|
40
|
+
|
|
41
|
+
### 0.1.1 (2026-03-15)
|
|
42
|
+
* (arteck) add debug information
|
|
43
|
+
|
|
38
44
|
### 0.1.0 (2026-03-08)
|
|
39
45
|
* (arteck) BREAKING CHANGE - dp name is now with underline
|
|
40
46
|
* (arteck) add deviceManager
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "zwavews",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.1.2": {
|
|
7
|
+
"en": "typo",
|
|
8
|
+
"de": "typo",
|
|
9
|
+
"ru": "опечатка",
|
|
10
|
+
"pt": "erro de digitação",
|
|
11
|
+
"nl": "type",
|
|
12
|
+
"fr": "typo",
|
|
13
|
+
"it": "tipo",
|
|
14
|
+
"es": "typo",
|
|
15
|
+
"pl": "typo",
|
|
16
|
+
"uk": "типи",
|
|
17
|
+
"zh-cn": "类型"
|
|
18
|
+
},
|
|
19
|
+
"0.1.1": {
|
|
20
|
+
"en": "add debug information",
|
|
21
|
+
"de": "debug information",
|
|
22
|
+
"ru": "добавить информацию об отладке",
|
|
23
|
+
"pt": "adicionar informações de depuração",
|
|
24
|
+
"nl": "debug-informatie toevoegen",
|
|
25
|
+
"fr": "ajouter des informations de débogage",
|
|
26
|
+
"it": "aggiungere informazioni debug",
|
|
27
|
+
"es": "añadir información de depuración",
|
|
28
|
+
"pl": "dodaj informacje o debugowaniu",
|
|
29
|
+
"uk": "додати інформацію debug",
|
|
30
|
+
"zh-cn": "添加调试信息"
|
|
31
|
+
},
|
|
6
32
|
"0.1.0": {
|
|
7
33
|
"en": "BREAKING CHANGE - dp name is now with underline\nadd deviceManager\nfix dp's with a space\nfix dp's with special chars",
|
|
8
34
|
"de": "BREAKING CHANGE - dp name ist jetzt mit unterstreichen\nadd-Gerät Manager\ndp's mit einem raum reparieren\nfix dp's with special chars",
|
|
@@ -67,32 +93,6 @@
|
|
|
67
93
|
"pl": "typo\nustaw stan gotowy, jeśli stan jest martwy",
|
|
68
94
|
"uk": "типи\nвиправити готовий статус, якщо статус мертвий",
|
|
69
95
|
"zh-cn": "类型\n如果状态已死亡, 则固定状态"
|
|
70
|
-
},
|
|
71
|
-
"0.0.14": {
|
|
72
|
-
"en": "add event ready",
|
|
73
|
-
"de": "event bereit hinzufügen",
|
|
74
|
-
"ru": "добавить событие готово",
|
|
75
|
-
"pt": "adicionar o evento pronto",
|
|
76
|
-
"nl": "evenement klaar toevoegen",
|
|
77
|
-
"fr": "ajouter l'événement prêt",
|
|
78
|
-
"it": "aggiungere evento pronto",
|
|
79
|
-
"es": "agregar evento listo",
|
|
80
|
-
"pl": "dodaj zdarzenie gotowe",
|
|
81
|
-
"uk": "додати захід готовий",
|
|
82
|
-
"zh-cn": "添加已准备的事件"
|
|
83
|
-
},
|
|
84
|
-
"0.0.13": {
|
|
85
|
-
"en": "add event type \"value notification\"",
|
|
86
|
-
"de": "ereignistyp hinzufügen \"wert-benachrichtigung\"",
|
|
87
|
-
"ru": "добавить событие типа «уведомление о ценности»",
|
|
88
|
-
"pt": "adicionar tipo de evento \"notificação de valor\"",
|
|
89
|
-
"nl": "gebeurtenistype \"waarde notificatie\" toevoegen",
|
|
90
|
-
"fr": "ajouter le type d'événement \"avis de valeur\"",
|
|
91
|
-
"it": "aggiungere tipo di evento \"notifica valore\"",
|
|
92
|
-
"es": "añadir tipo de evento \"notificación de valor\"",
|
|
93
|
-
"pl": "dodaj typ zdarzenia \"powiadomienie o wartości\"",
|
|
94
|
-
"uk": "додати тип події \"значення повідомлення\"",
|
|
95
|
-
"zh-cn": "添加事件类型“ 值通知”"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
|
@@ -183,6 +183,13 @@
|
|
|
183
183
|
"admin": ">=7.6.17"
|
|
184
184
|
}
|
|
185
185
|
],
|
|
186
|
+
"plugins": {
|
|
187
|
+
"docker": {
|
|
188
|
+
"iobDockerComposeFiles": [
|
|
189
|
+
"https://github.com/zwave-js/zwave-js-ui/blob/master/docker/docker-compose.yml"
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
},
|
|
186
193
|
"messages": [
|
|
187
194
|
{
|
|
188
195
|
"condition": {
|
package/main.js
CHANGED
|
@@ -15,8 +15,6 @@ const MqttServerController = require("./lib/mqttServerController").MqttServerCon
|
|
|
15
15
|
|
|
16
16
|
let mqttClient;
|
|
17
17
|
let deviceCache = {};
|
|
18
|
-
const logCustomizations = { debugDevices: "", logfilter: [] };
|
|
19
|
-
|
|
20
18
|
let websocketController;
|
|
21
19
|
let mqttServerController;
|
|
22
20
|
let statesController;
|
|
@@ -54,13 +52,6 @@ class zwavews extends core.Adapter {
|
|
|
54
52
|
|
|
55
53
|
helper = new Helper(this, deviceCache);
|
|
56
54
|
|
|
57
|
-
const debugDevicesState = await this.getStateAsync("info.debugId");
|
|
58
|
-
if (debugDevicesState && debugDevicesState.val) {
|
|
59
|
-
logCustomizations.debugDevices = String(
|
|
60
|
-
debugDevicesState.val.toLowerCase(),
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
55
|
this.deviceManagement = new dmZwave(this);
|
|
65
56
|
|
|
66
57
|
if (this.config.wsOnStart) {
|
|
@@ -187,9 +178,9 @@ class zwavews extends core.Adapter {
|
|
|
187
178
|
try {
|
|
188
179
|
const messageObj = JSON.parse(message);
|
|
189
180
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
181
|
+
const debugDevicesState = await this.getStateAsync("info.debugId");
|
|
182
|
+
|
|
183
|
+
this.log.debug(`--->>> fromZ2W_RAW1 -> ${JSON.stringify(messageObj)}`);
|
|
193
184
|
|
|
194
185
|
const type = messageObj?.type;
|
|
195
186
|
|
|
@@ -218,7 +209,7 @@ class zwavews extends core.Adapter {
|
|
|
218
209
|
for (const nodeData of allNodes) {
|
|
219
210
|
const nodeId = utils.formatNodeId(nodeData.nodeId);
|
|
220
211
|
|
|
221
|
-
if (
|
|
212
|
+
if (debugDevicesState && debugDevicesState.val.includes(nodeId)) {
|
|
222
213
|
this.log.warn(`--->>> fromZ2W_RAW2-> ${JSON.stringify(nodeData)}` );
|
|
223
214
|
}
|
|
224
215
|
|
|
@@ -252,6 +243,10 @@ class zwavews extends core.Adapter {
|
|
|
252
243
|
const nodeArg = eventTyp.args;
|
|
253
244
|
const nodeId = utils.formatNodeId(eventTyp.nodeId);
|
|
254
245
|
|
|
246
|
+
if (debugDevicesState && debugDevicesState.val.includes(nodeId)) {
|
|
247
|
+
this.log.warn(`--->>> fromZ2W_RAW2-> ${JSON.stringify(eventTyp)}` );
|
|
248
|
+
}
|
|
249
|
+
|
|
255
250
|
let parsePath = `${nodeId}.${nodeArg.commandClassName}.${nodeArg.propertyName
|
|
256
251
|
.replace(/[^\p{L}\p{N}\s]/gu, "")
|
|
257
252
|
.replace(/\s+/g, " ")
|
|
@@ -425,7 +420,6 @@ class zwavews extends core.Adapter {
|
|
|
425
420
|
|
|
426
421
|
if (state && state.ack == false) {
|
|
427
422
|
if (id.endsWith("info.debugId")) {
|
|
428
|
-
logCustomizations.debugDevices = state.val.toLowerCase();
|
|
429
423
|
this.setStateChanged(id, state.val, true);
|
|
430
424
|
return;
|
|
431
425
|
}
|