iobroker.zwavews 0.1.0 → 0.1.1

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
@@ -35,6 +35,9 @@ Activate WS Server Settings in `zwave-js-ui` we use the Home Assistant Settings
35
35
 
36
36
 
37
37
  ## Changelog
38
+ ### 0.1.1 (2026-03-15)
39
+ * (arteck) add debug information
40
+
38
41
  ### 0.1.0 (2026-03-08)
39
42
  * (arteck) BREAKING CHANGE - dp name is now with underline
40
43
  * (arteck) add deviceManager
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "zwavews",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "news": {
6
+ "0.1.1": {
7
+ "en": "add debug information",
8
+ "de": "debug information",
9
+ "ru": "добавить информацию об отладке",
10
+ "pt": "adicionar informações de depuração",
11
+ "nl": "debug-informatie toevoegen",
12
+ "fr": "ajouter des informations de débogage",
13
+ "it": "aggiungere informazioni debug",
14
+ "es": "añadir información de depuración",
15
+ "pl": "dodaj informacje o debugowaniu",
16
+ "uk": "додати інформацію debug",
17
+ "zh-cn": "添加调试信息"
18
+ },
6
19
  "0.1.0": {
7
20
  "en": "BREAKING CHANGE - dp name is now with underline\nadd deviceManager\nfix dp's with a space\nfix dp's with special chars",
8
21
  "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",
@@ -80,19 +93,6 @@
80
93
  "pl": "dodaj zdarzenie gotowe",
81
94
  "uk": "додати захід готовий",
82
95
  "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
@@ -56,9 +56,7 @@ class zwavews extends core.Adapter {
56
56
 
57
57
  const debugDevicesState = await this.getStateAsync("info.debugId");
58
58
  if (debugDevicesState && debugDevicesState.val) {
59
- logCustomizations.debugDevices = String(
60
- debugDevicesState.val.toLowerCase(),
61
- );
59
+ logCustomizations.debugDevices = String(debugDevicesState.val.toLowerCase());
62
60
  }
63
61
 
64
62
  this.deviceManagement = new dmZwave(this);
@@ -187,10 +185,13 @@ class zwavews extends core.Adapter {
187
185
  try {
188
186
  const messageObj = JSON.parse(message);
189
187
 
190
- if (JSON.stringify(messageObj).includes(logCustomizations.debugDevices) && logCustomizations.debugDevices !== "") {
191
- this.log.warn(`--->>> fromZ2W_RAW1 -> ${JSON.stringify(messageObj)}`);
188
+ const debugDevicesState = await this.getStateAsync("info.debugId");
189
+ if (debugDevicesState && debugDevicesState.val) {
190
+ logCustomizations.debugDevices = String(debugDevicesState.val.toLowerCase());
192
191
  }
193
192
 
193
+ this.log.debug(`--->>> fromZ2W_RAW1 -> ${JSON.stringify(messageObj)}`);
194
+
194
195
  const type = messageObj?.type;
195
196
 
196
197
  if (this.config.connectionType === 'ws') {
@@ -252,6 +253,10 @@ class zwavews extends core.Adapter {
252
253
  const nodeArg = eventTyp.args;
253
254
  const nodeId = utils.formatNodeId(eventTyp.nodeId);
254
255
 
256
+ if (logCustomizations.debugDevices.includes(nodeId.toLowerCase())) {
257
+ this.log.warn(`--->>> fromZ2W_RAW2-> ${JSON.stringify(eventTyp)}` );
258
+ }
259
+
255
260
  let parsePath = `${nodeId}.${nodeArg.commandClassName}.${nodeArg.propertyName
256
261
  .replace(/[^\p{L}\p{N}\s]/gu, "")
257
262
  .replace(/\s+/g, " ")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.zwavews",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "zwavews adapter for ioBroker",
5
5
  "author": {
6
6
  "name": "Dennis Rathjen and Arthur Rupp",