iobroker.zwavews 0.0.3

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.
@@ -0,0 +1,347 @@
1
+ {
2
+ "i18n": true,
3
+ "type": "tabs",
4
+ "tabsStyle": {
5
+ "width": "calc(100% - 100px)"
6
+ },
7
+ "items": {
8
+ "_tab_Start": {
9
+ "type": "panel",
10
+ "label": "Main Settings",
11
+ "items": {
12
+ "header_Start": {
13
+ "type": "header",
14
+ "text": "zwavews adapter settings",
15
+ "size": 2
16
+ },
17
+ "_textStart": {
18
+ "type": "staticText",
19
+ "text": "A detailed documentation with explanations and all further information can be found on this GitHub page",
20
+ "xs": 12,
21
+ "sm": 12,
22
+ "md": 6,
23
+ "lg": 4,
24
+ "xl": 4,
25
+ "style": {
26
+ "fontSize": 14,
27
+ "marginTop": 0
28
+ }
29
+ },
30
+ "_documentationLink": {
31
+ "type": "staticLink",
32
+ "label": "click for Documentation",
33
+ "button": true,
34
+ "href": "https://github.com/arteck/ioBroker.zwavews/blob/main/README.md",
35
+ "xs": 12,
36
+ "sm": 12,
37
+ "md": 6,
38
+ "lg": 4,
39
+ "xl": 4,
40
+ "style": {
41
+ "fontSize": 18,
42
+ "marginTop": 0
43
+ }
44
+ },
45
+ "connectionHeader": {
46
+ "type": "header",
47
+ "text": "Select and configure your zwavews connection",
48
+ "size": 2,
49
+ "newLine": true
50
+ },
51
+ "connectionType": {
52
+ "label": "Select connection to zwavews",
53
+ "xs": 12,
54
+ "sm": 12,
55
+ "md": 6,
56
+ "lg": 4,
57
+ "xl": 4,
58
+ "type": "select",
59
+ "options": [
60
+ {
61
+ "label": "Websocket",
62
+ "value": "ws"
63
+ }
64
+ ],
65
+ "newLine": true
66
+ },
67
+ "baseTopic": {
68
+ "type": "text",
69
+ "label": "Base MQTT topic",
70
+ "xs": 12,
71
+ "sm": 12,
72
+ "md": 6,
73
+ "lg": 4,
74
+ "xl": 4,
75
+ "default": "zwave",
76
+ "hidden": "data.connectionType != 'exmqtt'"
77
+ },
78
+ "spacer01": {
79
+ "type": "staticText",
80
+ "text": "",
81
+ "xs": 12,
82
+ "sm": 12,
83
+ "md": 6,
84
+ "lg": 4,
85
+ "xl": 4,
86
+ "newLine": true
87
+ },
88
+ "wsScheme": {
89
+ "type": "select",
90
+ "label": "Scheme",
91
+ "options": [
92
+ {
93
+ "label": "WS",
94
+ "value": "ws"
95
+ },
96
+ {
97
+ "label": "WSS (SSL)",
98
+ "value": "wss"
99
+ }
100
+ ],
101
+ "newLine": true,
102
+ "xs": 12,
103
+ "sm": 12,
104
+ "md": 6,
105
+ "lg": 4,
106
+ "xl": 4,
107
+ "hidden": "data.connectionType != 'ws'"
108
+ },
109
+ "wsServerIP": {
110
+ "type": "text",
111
+ "label": "Websocket IP-Address",
112
+ "xs": 12,
113
+ "sm": 12,
114
+ "md": 6,
115
+ "lg": 4,
116
+ "xl": 4,
117
+ "newLine": false,
118
+ "hidden": "data.connectionType != 'ws'"
119
+ },
120
+ "wsServerPort": {
121
+ "type": "number",
122
+ "label": "Websocket Port",
123
+ "newLine": false,
124
+ "xs": 12,
125
+ "sm": 12,
126
+ "md": 6,
127
+ "lg": 4,
128
+ "xl": 4,
129
+ "hidden": "data.connectionType != 'ws'"
130
+ },
131
+ "wsTokenEnabled": {
132
+ "type": "checkbox",
133
+ "label": "Use Auth-Token",
134
+ "newLine": true,
135
+ "xs": 12,
136
+ "sm": 12,
137
+ "md": 6,
138
+ "lg": 4,
139
+ "xl": 4,
140
+ "hidden": "data.connectionType != 'ws'"
141
+ },
142
+ "wsToken": {
143
+ "type": "password",
144
+ "label": "Auth-Token (special characters are not supported)",
145
+ "newLine": true,
146
+ "xs": 12,
147
+ "sm": 12,
148
+ "md": 6,
149
+ "lg": 5,
150
+ "xl": 4,
151
+ "hidden": "data.wsTokenEnabled != true || data.connectionType != 'ws'"
152
+ },
153
+ "dummyMqtt": {
154
+ "type": "checkbox",
155
+ "label": "Create a dummy MQTT-Server for Zigbee2MQTT",
156
+ "newLine": true,
157
+ "xs": 12,
158
+ "sm": 12,
159
+ "md": 6,
160
+ "lg": 4,
161
+ "xl": 4,
162
+ "hidden": "data.connectionType != 'ws'"
163
+ },
164
+
165
+ "externalMqttServerIP": {
166
+ "type": "text",
167
+ "label": "External MQTT-Server IP-Address",
168
+ "newLine": true,
169
+ "xs": 12,
170
+ "sm": 12,
171
+ "md": 6,
172
+ "lg": 4,
173
+ "xl": 4,
174
+ "hidden": "data.connectionType != 'exmqtt'"
175
+ },
176
+ "externalMqttServerPort": {
177
+ "type": "number",
178
+ "label": "External MQTT-Server Port",
179
+ "newLine": false,
180
+ "xs": 12,
181
+ "sm": 12,
182
+ "md": 6,
183
+ "lg": 4,
184
+ "xl": 4,
185
+ "hidden": "data.connectionType != 'exmqtt'"
186
+ },
187
+ "externalMqttServerCredentials": {
188
+ "type": "checkbox",
189
+ "label": "Use MQTT Credentials",
190
+ "newLine": true,
191
+ "xs": 12,
192
+ "sm": 12,
193
+ "md": 6,
194
+ "lg": 4,
195
+ "xl": 4,
196
+ "hidden": "data.connectionType != 'exmqtt'"
197
+ },
198
+ "externalMqttServerUsername": {
199
+ "type": "text",
200
+ "label": "MQTT Username",
201
+ "newLine": true,
202
+ "xs": 12,
203
+ "sm": 12,
204
+ "md": 6,
205
+ "lg": 4,
206
+ "xl": 4,
207
+ "hidden": "data.externalMqttServerCredentials != true ||data.connectionType != 'exmqtt'"
208
+ },
209
+ "externalMqttServerPassword": {
210
+ "type": "password",
211
+ "label": "MQTT Password",
212
+ "newLine": false,
213
+ "xs": 12,
214
+ "sm": 12,
215
+ "md": 6,
216
+ "lg": 4,
217
+ "xl": 4,
218
+ "visible": true,
219
+ "hidden": "data.externalMqttServerCredentials != true ||data.connectionType != 'exmqtt'"
220
+ },
221
+ "mqttServerIPBind": {
222
+ "type": "ip",
223
+ "label": "MQTT-Server IP-Address bind",
224
+ "listenOnAllPorts": true,
225
+ "xs": 12,
226
+ "sm": 12,
227
+ "md": 6,
228
+ "lg": 4,
229
+ "xl": 4,
230
+ "newLine": true,
231
+ "hidden": "data.connectionType == 'exmqtt' || data.dummyMqtt == false && data.connectionType == 'ws'"
232
+ },
233
+ "mqttServerPort": {
234
+ "type": "number",
235
+ "label": "MQTT-Server Port",
236
+ "xs": 12,
237
+ "sm": 12,
238
+ "md": 6,
239
+ "lg": 4,
240
+ "xl": 4,
241
+ "newLine": false,
242
+ "hidden": "data.connectionType == 'exmqtt' || data.dummyMqtt == false && data.connectionType == 'ws'"
243
+ },
244
+ "spacer02": {
245
+ "type": "staticText",
246
+ "text": "",
247
+ "xs": 12,
248
+ "sm": 12,
249
+ "md": 6,
250
+ "lg": 4,
251
+ "xl": 4,
252
+ "newLine": true,
253
+ "hidden": "data.connectionType == 'ws'"
254
+ },
255
+ "webUIHeader": {
256
+ "type": "header",
257
+ "text": "Configure your zwavews WebUi connection",
258
+ "size": 2,
259
+ "newLine": true
260
+ },
261
+ "webUIScheme": {
262
+ "type": "select",
263
+ "label": "Scheme",
264
+ "options": [
265
+ {
266
+ "label": "HTTP",
267
+ "value": "http"
268
+ },
269
+ {
270
+ "label": "HTTPS",
271
+ "value": "https"
272
+ }
273
+ ],
274
+ "xs": 12,
275
+ "sm": 12,
276
+ "md": 6,
277
+ "lg": 4,
278
+ "xl": 4,
279
+ "newLine": true
280
+ },
281
+ "webUIServer": {
282
+ "type": "text",
283
+ "label": "WebUi Address",
284
+ "xs": 12,
285
+ "sm": 12,
286
+ "md": 6,
287
+ "lg": 4,
288
+ "xl": 4,
289
+ "newLine": false
290
+ },
291
+ "webUIPort": {
292
+ "type": "number",
293
+ "label": "WebUi Port",
294
+ "xs": 12,
295
+ "sm": 12,
296
+ "md": 6,
297
+ "lg": 4,
298
+ "xl": 4,
299
+ "newLine": false
300
+ }
301
+ }
302
+ },
303
+ "_tab_Other Settings": {
304
+ "type": "panel",
305
+ "label": "Other configurations",
306
+ "items": {
307
+ "showNodeInfoMessage": {
308
+ "type": "checkbox",
309
+ "label": "Show Node Info messages to ioBroker log",
310
+ "xs": 12,
311
+ "sm": 12,
312
+ "md": 12,
313
+ "lg": 12,
314
+ "xl": 12,
315
+ "newLine": true
316
+ },
317
+ "useEventInDesc": {
318
+ "type": "checkbox",
319
+ "label": "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name",
320
+ "xs": 12,
321
+ "sm": 12,
322
+ "md": 12,
323
+ "lg": 12,
324
+ "xl": 12
325
+ },
326
+ "wakeUpInfo": {
327
+ "type": "checkbox",
328
+ "label": "Inform about wake up and sleep of battery devices in the log",
329
+ "xs": 12,
330
+ "sm": 12,
331
+ "md": 12,
332
+ "lg": 12,
333
+ "xl": 12
334
+ },
335
+ "newTypeEvent": {
336
+ "type": "checkbox",
337
+ "label": "new Type event Warning in log",
338
+ "xs": 12,
339
+ "sm": 12,
340
+ "md": 12,
341
+ "lg": 12,
342
+ "xl": 12
343
+ }
344
+ }
345
+ }
346
+ }
347
+ }
Binary file
@@ -0,0 +1,246 @@
1
+ {
2
+ "common": {
3
+ "name": "zwavews",
4
+ "version": "0.0.3",
5
+ "news": {
6
+ "0.0.3": {
7
+ "en": "fix title",
8
+ "de": "bersetzung titel",
9
+ "ru": "исправить название",
10
+ "pt": "corrigir título",
11
+ "nl": "titel herstellen",
12
+ "fr": "fixer le titre",
13
+ "it": "titolo di correzione",
14
+ "es": "fijar título",
15
+ "pl": "ustaw tytuł",
16
+ "uk": "заголовок",
17
+ "zh-cn": "固定标题"
18
+ },
19
+ "0.0.2": {
20
+ "en": "first release",
21
+ "de": "erste veröffentlichung",
22
+ "ru": "первый выпуск",
23
+ "pt": "primeira versão",
24
+ "nl": "eerste release",
25
+ "fr": "première sortie",
26
+ "it": "primo rilascio",
27
+ "es": "primera liberación",
28
+ "pl": "pierwsze wydanie",
29
+ "uk": "перший реліз",
30
+ "zh-cn": "第一次发布"
31
+ },
32
+ "0.0.1": {
33
+ "en": "init",
34
+ "de": "init",
35
+ "ru": "инициализация",
36
+ "pt": "inicialização",
37
+ "nl": "init",
38
+ "fr": "initialisation",
39
+ "it": "inizializzazione",
40
+ "es": "inicialización",
41
+ "pl": "init",
42
+ "uk": "ініціалізація",
43
+ "zh-cn": "初始化"
44
+ }
45
+ },
46
+ "messages": [],
47
+ "titleLang": {
48
+ "en": "zwavews",
49
+ "de": "zwavews",
50
+ "ru": "zwavews",
51
+ "pt": "zwavews",
52
+ "nl": "zwavews",
53
+ "fr": "zwavews",
54
+ "it": "zwavews",
55
+ "es": "zwavews",
56
+ "pl": "zwavews",
57
+ "zh-cn": "zwavews",
58
+ "uk": "zwavews"
59
+ },
60
+ "desc": {
61
+ "en": "zwavews adapter for ioBroker",
62
+ "de": "zwavews-Adapter für ioBroker",
63
+ "ru": "Адаптер zwavews для ioBroker",
64
+ "pt": "Adaptador zwavews para ioBroker",
65
+ "nl": "zwavews-adapter voor ioBroker",
66
+ "fr": "Adaptateur zwavews pour ioBroker",
67
+ "it": "Adattatore zwavews per ioBroker",
68
+ "es": "Adaptador zwavews para ioBroker",
69
+ "pl": "Adapter zwavews do ioBroker",
70
+ "zh-cn": "用于 ioBroker 的 zwavews 适配器",
71
+ "uk": "Адаптер zwavews для ioBroker"
72
+ },
73
+ "authors": [
74
+ "arteck <arteck@outlook.com>"
75
+ ],
76
+ "keywords": [
77
+ "zwave",
78
+ "zwavews",
79
+ "zwave-js-ui",
80
+ "zwave-js"
81
+ ],
82
+ "licenseInformation": {
83
+ "license": "MIT",
84
+ "type": "free"
85
+ },
86
+ "platform": "Javascript/Node.js",
87
+ "icon": "zwavews.png",
88
+ "enabled": false,
89
+ "extIcon": "https://raw.githubusercontent.com/arteck/ioBroker.zwavews/main/admin/zwavews.png",
90
+ "readme": "https://github.com/arteck/ioBroker.zwavews/blob/main/README.md",
91
+ "loglevel": "info",
92
+ "mode": "daemon",
93
+ "type": "hardware",
94
+ "compact": true,
95
+ "supportedMessages": {
96
+ "deviceManager": true
97
+ },
98
+ "stopTimeout": 2000,
99
+ "tier": 2,
100
+ "connectionType": "local",
101
+ "dataSource": "push",
102
+ "adminUI": {
103
+ "config": "json"
104
+ },
105
+ "adminTab": {
106
+ "name": {
107
+ "en": "zwavews",
108
+ "de": "zwavews",
109
+ "ru": "zwavews",
110
+ "pt": "zwavews",
111
+ "nl": "zwavews",
112
+ "fr": "zwavews",
113
+ "it": "zwavews",
114
+ "es": "zwavews",
115
+ "pl": "zwavews",
116
+ "zh-cn": "zwavews"
117
+ },
118
+ "link": "%webUIScheme%://%webUIServer%:%webUIPort%",
119
+ "fa-icon": "</i><img style='width:24px;margin-bottom:-6px;' src='/adapter/zwavews/zwavews.png'><i>"
120
+ },
121
+ "localLinks": {
122
+ "_default": {
123
+ "link": "%webUIScheme%://%webUIServer%:%webUIPort%"
124
+ }
125
+ },
126
+ "dependencies": [
127
+ {
128
+ "js-controller": ">=6.0.11"
129
+ }
130
+ ],
131
+ "globalDependencies": [
132
+ {
133
+ "admin": ">=7.4.10"
134
+ }
135
+ ]
136
+ },
137
+ "native": {
138
+ "connectionType": "ws",
139
+ "wsScheme": "ws",
140
+ "wsServerIP": "",
141
+ "wsServerPort": 3000,
142
+ "wsTokenEnabled": false,
143
+ "wsToken": "",
144
+ "dummyMqtt": false,
145
+ "baseTopic": "zwave",
146
+ "externalMqttServerIP": "",
147
+ "externalMqttServerPort": 1883,
148
+ "externalMqttServerCredentials": false,
149
+ "externalMqttServerUsername": "",
150
+ "externalMqttServerPassword": "",
151
+ "mqttServerIPBind": "0.0.0.0",
152
+ "mqttServerPort": 1885,
153
+ "webUIScheme": "http",
154
+ "webUIServer": "",
155
+ "webUIPort": 8091,
156
+ "showNodeInfoMessages": true,
157
+ "renewNodeInfo": true,
158
+ "useEventInDesc": false,
159
+ "wakeUpInfo": false,
160
+ "newTypeEvent": true
161
+ },
162
+ "protectedNative": [
163
+ "externalMqttServerPassword",
164
+ "wsToken"
165
+ ],
166
+ "encryptedNative": [
167
+ "externalMqttServerPassword",
168
+ "wsToken"
169
+ ],
170
+ "objects": [],
171
+ "instanceObjects": [
172
+ {
173
+ "_id": "info",
174
+ "type": "channel",
175
+ "common": {
176
+ "name": "Information"
177
+ },
178
+ "native": {}
179
+ },
180
+ {
181
+ "_id": "info.connection",
182
+ "type": "state",
183
+ "common": {
184
+ "role": "indicator.connected",
185
+ "name": "zwavews connected",
186
+ "type": "boolean",
187
+ "read": true,
188
+ "write": false,
189
+ "def": false
190
+ },
191
+ "native": {}
192
+ },
193
+ {
194
+ "_id": "info.zwave_gateway_status",
195
+ "type": "state",
196
+ "common": {
197
+ "name": "ZWAVE GATEWAY Status",
198
+ "type": "string",
199
+ "role": "indicator.connected",
200
+ "read": true,
201
+ "write": false,
202
+ "def": ""
203
+ },
204
+ "native": {}
205
+ },
206
+ {
207
+ "_id": "info.zwave_gateway_version",
208
+ "type": "state",
209
+ "common": {
210
+ "name": "ZWAVE GATEWAY Version",
211
+ "type": "string",
212
+ "role": "state",
213
+ "read": true,
214
+ "write": false,
215
+ "def": ""
216
+ },
217
+ "native": {}
218
+ },
219
+ {
220
+ "_id": "info.debugId",
221
+ "type": "state",
222
+ "common": {
223
+ "name": "Log changes for xxx",
224
+ "type": "string",
225
+ "role": "state",
226
+ "read": true,
227
+ "write": true,
228
+ "def": ""
229
+ },
230
+ "native": {}
231
+ },
232
+ {
233
+ "_id": "info.debugmessages",
234
+ "type": "state",
235
+ "common": {
236
+ "name": "Log changes for debugId",
237
+ "type": "string",
238
+ "role": "state",
239
+ "read": true,
240
+ "write": true,
241
+ "def": ""
242
+ },
243
+ "native": {}
244
+ }
245
+ ]
246
+ }
@@ -0,0 +1,19 @@
1
+ // This file extends the AdapterConfig type from "@types/iobroker"
2
+ // using the actual properties present in io-package.json
3
+ // in order to provide typings for adapter.config properties
4
+
5
+ import { native } from '../io-package.json';
6
+
7
+ type _AdapterConfig = typeof native;
8
+
9
+ // Augment the globally declared type ioBroker.AdapterConfig
10
+ declare global {
11
+ namespace ioBroker {
12
+ interface AdapterConfig extends _AdapterConfig {
13
+ // Do not enter anything here!
14
+ }
15
+ }
16
+ }
17
+
18
+ // this is required so the above AdapterConfig is found by TypeScript / type checking
19
+ export {};
@@ -0,0 +1,25 @@
1
+
2
+ 'use strict';
3
+
4
+ const timeKey = [
5
+ "lastActive",
6
+ "lastUpdate"
7
+ ];
8
+ const noInfoDP = [
9
+ "eventsQueue",
10
+ "rfRegions",
11
+ "Scene Actuator Configuration",
12
+ "dimmingDuration",
13
+ ];
14
+ const mixedType = [
15
+ "status",
16
+ "interviewStage"
17
+ ];
18
+ const RGB = ["Red", "Green", "Blue"];
19
+
20
+ module.exports = {
21
+ timeKey,
22
+ noInfoDP,
23
+ mixedType,
24
+ RGB
25
+ };