@zwave-js/config 10.0.0-beta.4 → 10.0.0-beta.5

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.
Files changed (62) hide show
  1. package/build/ConfigManager.d.ts.map +1 -1
  2. package/build/ConfigManager.js +15 -10
  3. package/build/ConfigManager.js.map +1 -1
  4. package/build/DeviceClasses.d.ts.map +1 -1
  5. package/build/DeviceClasses.js +1 -2
  6. package/build/DeviceClasses.js.map +1 -1
  7. package/build/Manufacturers.d.ts.map +1 -1
  8. package/build/Manufacturers.js +1 -2
  9. package/build/Manufacturers.js.map +1 -1
  10. package/build/Meters.d.ts.map +1 -1
  11. package/build/Meters.js +1 -2
  12. package/build/Meters.js.map +1 -1
  13. package/build/Notifications.d.ts.map +1 -1
  14. package/build/Notifications.js +2 -3
  15. package/build/Notifications.js.map +1 -1
  16. package/build/SensorTypes.d.ts.map +1 -1
  17. package/build/SensorTypes.js +1 -2
  18. package/build/SensorTypes.js.map +1 -1
  19. package/build/devices/DeviceConfig.d.ts.map +1 -1
  20. package/build/devices/DeviceConfig.js +3 -4
  21. package/build/devices/DeviceConfig.js.map +1 -1
  22. package/build/devices/EndpointConfig.d.ts.map +1 -1
  23. package/build/devices/EndpointConfig.js +1 -2
  24. package/build/devices/EndpointConfig.js.map +1 -1
  25. package/config/devices/0x010f/fgwpb-121.json +0 -4
  26. package/config/devices/0x010f/fgwpg-111.json +448 -0
  27. package/config/devices/0x010f/fgwpg-121.json +98 -102
  28. package/config/devices/0x027a/zen17.json +71 -20
  29. package/config/devices/0x0312/mp20z.json +13 -71
  30. package/config/devices/0x0312/mp21z.json +2 -32
  31. package/config/devices/0x0312/mp21zd.json +8 -8
  32. package/config/devices/0x0312/mp21zp.json +2 -5
  33. package/config/devices/0x0312/mp22z.json +5 -47
  34. package/config/devices/0x0312/mp22zd.json +2 -2
  35. package/config/devices/0x0312/mp22zp.json +1 -7
  36. package/config/devices/0x0312/mp23z.json +2 -32
  37. package/config/devices/0x0312/mp24z.json +5 -45
  38. package/config/devices/0x0312/mr40z.json +3 -3
  39. package/config/devices/0x0312/ms10z.json +11 -25
  40. package/config/devices/0x0312/ms11zs.json +1 -1
  41. package/config/devices/0x0312/ms12z.json +11 -25
  42. package/config/devices/0x0312/ms13z.json +14 -14
  43. package/config/devices/0x0312/n4001.json +1 -7
  44. package/config/devices/0x0312/n4002.json +10 -10
  45. package/config/devices/0x0312/n4003.json +55 -0
  46. package/config/devices/0x0312/nzw30.json +3 -44
  47. package/config/devices/0x0312/nzw30s.json +3 -40
  48. package/config/devices/0x0312/nzw30t.json +2 -22
  49. package/config/devices/0x0312/nzw31.json +2 -21
  50. package/config/devices/0x0312/nzw31s.json +2 -21
  51. package/config/devices/0x0312/nzw36.json +2 -26
  52. package/config/devices/0x0312/nzw96.json +2 -26
  53. package/config/devices/0x0312/templates/minoston_template.json +43 -1
  54. package/config/devices/0x0312/zw30.json +16 -144
  55. package/config/devices/0x0312/zw31.json +16 -146
  56. package/config/devices/0x0312/zw31s.json +10 -10
  57. package/config/devices/0x0312/zw39.json +4 -44
  58. package/config/devices/0x0312/zw922.json +3 -3
  59. package/config/devices/0x0312/zw96.json +5 -32
  60. package/config/devices/0x0312/zw97.json +9 -46
  61. package/config/devices/templates/master_template.json +21 -1
  62. package/package.json +8 -6
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConditionalEndpointConfig = void 0;
4
- const objects_1 = require("alcalzone-shared/objects");
5
4
  const typeguards_1 = require("alcalzone-shared/typeguards");
6
5
  const utils_safe_1 = require("../utils_safe");
7
6
  const AssociationConfig_1 = require("./AssociationConfig");
@@ -17,7 +16,7 @@ class ConditionalEndpointConfig {
17
16
  (0, utils_safe_1.throwInvalidConfig)(`device`, `packages/config/config/devices/${filename}:
18
17
  Endpoint ${index}: associations is not an object`);
19
18
  }
20
- for (const [key, assocDefinition] of (0, objects_1.entries)(definition.associations)) {
19
+ for (const [key, assocDefinition] of Object.entries(definition.associations)) {
21
20
  if (!/^[1-9][0-9]*$/.test(key)) {
22
21
  (0, utils_safe_1.throwInvalidConfig)(`device`, `packages/config/config/devices/${filename}:
23
22
  Endpoint ${index}: found non-numeric group id "${key}" in associations`);
@@ -1 +1 @@
1
- {"version":3,"file":"EndpointConfig.js","sourceRoot":"","sources":["../../src/devices/EndpointConfig.ts"],"names":[],"mappings":";;;AACA,sDAAmD;AACnD,4DAAuD;AACvD,8CAAmD;AACnD,2DAG6B;AAC7B,uDAK2B;AAG3B,MAAa,yBAAyB;IAGrC,YACC,QAAgB,EAChB,KAAa,EACb,UAAsB;QAEtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAA,mCAAiB,EAChB,QAAQ,EACR,UAAU,EACV,YAAY,KAAK,cAAc,CAC/B,CAAC;QACF,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,GAAG,CAAC;QAEhC,IAAI,UAAU,CAAC,YAAY,IAAI,SAAS,EAAE;YACzC,MAAM,YAAY,GAAG,IAAI,GAAG,EAGzB,CAAC;YACJ,IAAI,CAAC,IAAA,qBAAQ,EAAC,UAAU,CAAC,YAAY,CAAC,EAAE;gBACvC,IAAA,+BAAkB,EACjB,QAAQ,EACR,kCAAkC,QAAQ;WACpC,KAAK,iCAAiC,CAC5C,CAAC;aACF;YACD,KAAK,MAAM,CAAC,GAAG,EAAE,eAAe,CAAC,IAAI,IAAA,iBAAO,EAC3C,UAAU,CAAC,YAAY,CACvB,EAAE;gBACF,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;oBAC/B,IAAA,+BAAkB,EACjB,QAAQ,EACR,kCAAkC,QAAQ;WACrC,KAAK,iCAAiC,GAAG,mBAAmB,CACjE,CAAC;iBACF;gBAED,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBACjC,YAAY,CAAC,GAAG,CACf,MAAM,EACN,IAAI,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AU,CAAC,YAAY,CACvB,EAAE;gBACF,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;oBAC/B,IAAA,+BAAkB,EACjB,QAAQ,EACR,kCAAkC,QAAQ;WACrC,KAAK,iCAAiC,GAAG,mBAAmB,CACjE,CAAC;iBACF;gBAED,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;gBACjC,YAAY,CAAC,GAAG,CACf,MAAM,EACN,IAAI,gDAA4B,CAC/B,QAAQ,EACR,MAAM,EACN,eAAsB,CACtB,CACD,CAAC;aACF;YACD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;SACjC;IACF,CAAC;IAUM,iBAAiB,CAAC,QAAmB;QAC3C,IAAI,CAAC,IAAA,kCAAgB,EAAC,IAAI,EAAE,QAAQ,CAAC;YAAE,OAAO;QAC9C,MAAM,GAAG,GAAmB;YAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;SACjB,CAAC;QACF,MAAM,YAAY,GAAG,IAAA,8BAAY,EAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;QAC/D,IAAI,YAAY;YAAE,GAAG,CAAC,YAAY,GAAG,YAAY,CAAC;QAElD,OAAO,GAAG,CAAC;IACZ,CAAC;CACD;AAxED,8DAwEC"}
@@ -7,10 +7,6 @@
7
7
  {
8
8
  "productType": "0x1401",
9
9
  "productId": "0x2000"
10
- },
11
- {
12
- "productType": "0x1801",
13
- "productId": "0x1000"
14
10
  }
15
11
  ],
16
12
  "firmwareVersion": {
@@ -0,0 +1,448 @@
1
+ {
2
+ "manufacturer": "Fibargroup",
3
+ "manufacturerId": "0x010f",
4
+ "label": "FGWPG-111",
5
+ "description": "FIBARO Wall Plug UK",
6
+ "devices": [
7
+ {
8
+ "productType": "0x1801",
9
+ "productId": "0x1000"
10
+ }
11
+ ],
12
+ "firmwareVersion": {
13
+ "min": "0.0",
14
+ "max": "255.255"
15
+ },
16
+ "paramInformation": [
17
+ {
18
+ "#": "2",
19
+ "$import": "~/templates/master_template.json#state_after_power_failure_off_prev"
20
+ },
21
+ {
22
+ "#": "3",
23
+ "label": "Overload",
24
+ "description": "Turn off the controlled device in case of exceeding the defined power.",
25
+ "valueSize": 2,
26
+ "unit": "0.1 W",
27
+ "minValue": 0,
28
+ "maxValue": 30000,
29
+ "defaultValue": 0,
30
+ "options": [
31
+ {
32
+ "label": "Disable",
33
+ "value": 0
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "#": "11",
39
+ "label": "Power Reporting Threshold",
40
+ "valueSize": 1,
41
+ "unit": "%",
42
+ "minValue": 0,
43
+ "maxValue": 100,
44
+ "defaultValue": 15,
45
+ "options": [
46
+ {
47
+ "label": "Disable",
48
+ "value": 0
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "#": "12",
54
+ "label": "Energy Reporting Threshold",
55
+ "valueSize": 2,
56
+ "unit": "0.01 kWh",
57
+ "minValue": 0,
58
+ "maxValue": 500,
59
+ "defaultValue": 10,
60
+ "options": [
61
+ {
62
+ "label": "Disable",
63
+ "value": 0
64
+ }
65
+ ]
66
+ },
67
+ {
68
+ "#": "13",
69
+ "label": "Power Reporting Interval",
70
+ "valueSize": 2,
71
+ "unit": "seconds",
72
+ "minValue": 0,
73
+ "maxValue": 32400,
74
+ "defaultValue": 3600,
75
+ "options": [
76
+ {
77
+ "label": "Disable",
78
+ "value": 0
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ "#": "14",
84
+ "label": "Energy Reporting Interval",
85
+ "valueSize": 2,
86
+ "unit": "seconds",
87
+ "minValue": 0,
88
+ "maxValue": 32400,
89
+ "defaultValue": 3600,
90
+ "options": [
91
+ {
92
+ "label": "Disable",
93
+ "value": 0
94
+ }
95
+ ]
96
+ },
97
+ {
98
+ "#": "15",
99
+ "label": "Consumption",
100
+ "description": "Measure energy consumed by the Wall Plug itself",
101
+ "valueSize": 1,
102
+ "defaultValue": 0,
103
+ "allowManualEntry": false,
104
+ "options": [
105
+ {
106
+ "label": "Disable",
107
+ "value": 0
108
+ },
109
+ {
110
+ "label": "Enable",
111
+ "value": 1
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "#": "24",
117
+ "label": "Group 2: Switch On Value",
118
+ "valueSize": 2,
119
+ "minValue": 0,
120
+ "maxValue": 255,
121
+ "defaultValue": 255,
122
+ "options": [
123
+ {
124
+ "label": "Off",
125
+ "value": 0
126
+ },
127
+ {
128
+ "label": "Last State/On",
129
+ "value": 255
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "#": "25",
135
+ "label": "Group 2: Switch Off Value",
136
+ "valueSize": 2,
137
+ "minValue": 0,
138
+ "maxValue": 255,
139
+ "defaultValue": 0,
140
+ "options": [
141
+ {
142
+ "label": "Off",
143
+ "value": 0
144
+ },
145
+ {
146
+ "label": "Last State/On",
147
+ "value": 255
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "#": "23",
153
+ "label": "Group 3: Control Mode",
154
+ "description": "When to send a command to devices in the association group 3.",
155
+ "valueSize": 1,
156
+ "defaultValue": 3,
157
+ "allowManualEntry": false,
158
+ "options": [
159
+ {
160
+ "label": "Power usage above upper threshold",
161
+ "value": 1
162
+ },
163
+ {
164
+ "label": "Power usage below lower threshold",
165
+ "value": 2
166
+ },
167
+ {
168
+ "label": "Both",
169
+ "value": 3
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ "#": "21",
175
+ "label": "Group 3: Upper Power Threshold",
176
+ "valueSize": 2,
177
+ "minValue": 100,
178
+ "maxValue": 30000,
179
+ "defaultValue": 500
180
+ },
181
+ {
182
+ "#": "22",
183
+ "label": "Group 3: Lower Power Threshold",
184
+ "valueSize": 2,
185
+ "minValue": 0,
186
+ "maxValue": 29900,
187
+ "defaultValue": 300
188
+ },
189
+ {
190
+ "#": "26",
191
+ "label": "Group 3: Upper Threshold Command Value",
192
+ "description": "Which value to send when the power usage is above the upper threshold.",
193
+ "valueSize": 2,
194
+ "minValue": 0,
195
+ "maxValue": 255,
196
+ "defaultValue": 255,
197
+ "options": [
198
+ {
199
+ "label": "Off",
200
+ "value": 0
201
+ },
202
+ {
203
+ "label": "Last State/On",
204
+ "value": 255
205
+ }
206
+ ]
207
+ },
208
+ {
209
+ "#": "27",
210
+ "label": "Group 3: Lower Threshold Command Value",
211
+ "description": "Which value to send when the power usage is below the lower threshold.",
212
+ "valueSize": 2,
213
+ "minValue": 0,
214
+ "maxValue": 255,
215
+ "defaultValue": 0,
216
+ "options": [
217
+ {
218
+ "label": "Off",
219
+ "value": 0
220
+ },
221
+ {
222
+ "label": "Last State/On",
223
+ "value": 255
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "#": "30[0x01]",
229
+ "$import": "~/templates/master_template.json#base_enable_disable",
230
+ "label": "Respond To Alarms: General",
231
+ "defaultValue": 1
232
+ },
233
+ {
234
+ "#": "30[0x02]",
235
+ "$import": "~/templates/master_template.json#base_enable_disable",
236
+ "label": "Respond To Alarms: Smoke",
237
+ "defaultValue": 1
238
+ },
239
+ {
240
+ "#": "30[0x04]",
241
+ "$import": "~/templates/master_template.json#base_enable_disable",
242
+ "label": "Respond To Alarms: Carbon Monoxide",
243
+ "defaultValue": 1
244
+ },
245
+ {
246
+ "#": "30[0x08]",
247
+ "$import": "~/templates/master_template.json#base_enable_disable",
248
+ "label": "Respond To Alarms: Carbon Dioxide",
249
+ "defaultValue": 1
250
+ },
251
+ {
252
+ "#": "30[0x10]",
253
+ "$import": "~/templates/master_template.json#base_enable_disable",
254
+ "label": "Respond To Alarms: High Temperature",
255
+ "defaultValue": 1
256
+ },
257
+ {
258
+ "#": "30[0x20]",
259
+ "$import": "~/templates/master_template.json#base_enable_disable",
260
+ "label": "Respond To Alarms: Flood",
261
+ "defaultValue": 1
262
+ },
263
+ {
264
+ "#": "31",
265
+ "label": "Response to alarm frames",
266
+ "description": "Wall plug response to alarms",
267
+ "valueSize": 1,
268
+ "minValue": 0,
269
+ "maxValue": 50,
270
+ "defaultValue": 0,
271
+ "options": [
272
+ {
273
+ "label": "No Reaction",
274
+ "value": 0
275
+ },
276
+ {
277
+ "label": "On",
278
+ "value": 1
279
+ },
280
+ {
281
+ "label": "Off",
282
+ "value": 2
283
+ }
284
+ ]
285
+ },
286
+ {
287
+ "#": "32",
288
+ "label": "Alarm Duration",
289
+ "valueSize": 2,
290
+ "unit": "seconds",
291
+ "minValue": 1,
292
+ "maxValue": 32400,
293
+ "defaultValue": 600
294
+ },
295
+ {
296
+ "#": "40",
297
+ "label": "LED Indicator: Power Threshold For Violet Color",
298
+ "valueSize": 2,
299
+ "unit": "0.1 W",
300
+ "minValue": 1000,
301
+ "maxValue": 30000,
302
+ "defaultValue": 30000
303
+ },
304
+ {
305
+ "#": "41",
306
+ "label": "LED Indicator: Color When Load On",
307
+ "valueSize": 1,
308
+ "defaultValue": 1,
309
+ "allowManualEntry": false,
310
+ "options": [
311
+ {
312
+ "label": "LED Off",
313
+ "value": 0
314
+ },
315
+ {
316
+ "label": "Active Power (Smooth)",
317
+ "value": 1
318
+ },
319
+ {
320
+ "label": "Active Power (Steps)",
321
+ "value": 2
322
+ },
323
+ {
324
+ "label": "White",
325
+ "value": 3
326
+ },
327
+ {
328
+ "label": "Red",
329
+ "value": 4
330
+ },
331
+ {
332
+ "label": "Green",
333
+ "value": 5
334
+ },
335
+ {
336
+ "label": "Blue",
337
+ "value": 6
338
+ },
339
+ {
340
+ "label": "Yellow",
341
+ "value": 7
342
+ },
343
+ {
344
+ "label": "Cyan",
345
+ "value": 8
346
+ },
347
+ {
348
+ "label": "Magenta",
349
+ "value": 9
350
+ }
351
+ ]
352
+ },
353
+ {
354
+ "#": "42",
355
+ "label": "LED Indicator: Color When Load Off",
356
+ "valueSize": 1,
357
+ "defaultValue": 0,
358
+ "allowManualEntry": false,
359
+ "options": [
360
+ {
361
+ "label": "LED Off",
362
+ "value": 0
363
+ },
364
+ {
365
+ "label": "Last Measured Load",
366
+ "value": 1
367
+ },
368
+ {
369
+ "label": "White",
370
+ "value": 3
371
+ },
372
+ {
373
+ "label": "Red",
374
+ "value": 4
375
+ },
376
+ {
377
+ "label": "Green",
378
+ "value": 5
379
+ },
380
+ {
381
+ "label": "Blue",
382
+ "value": 6
383
+ },
384
+ {
385
+ "label": "Yellow",
386
+ "value": 7
387
+ },
388
+ {
389
+ "label": "Cyan",
390
+ "value": 8
391
+ },
392
+ {
393
+ "label": "Magenta",
394
+ "value": 9
395
+ }
396
+ ]
397
+ },
398
+ {
399
+ "#": "43",
400
+ "label": "LED Indicator: Color During Alarm",
401
+ "valueSize": 1,
402
+ "defaultValue": 2,
403
+ "allowManualEntry": false,
404
+ "options": [
405
+ {
406
+ "label": "LED Off",
407
+ "value": 0
408
+ },
409
+ {
410
+ "label": "No change in color",
411
+ "value": 1
412
+ },
413
+ {
414
+ "label": "Red/White/Blue",
415
+ "value": 2
416
+ },
417
+ {
418
+ "label": "White",
419
+ "value": 3
420
+ },
421
+ {
422
+ "label": "Red",
423
+ "value": 4
424
+ },
425
+ {
426
+ "label": "Green",
427
+ "value": 5
428
+ },
429
+ {
430
+ "label": "Blue",
431
+ "value": 6
432
+ },
433
+ {
434
+ "label": "Yellow",
435
+ "value": 7
436
+ },
437
+ {
438
+ "label": "Cyan",
439
+ "value": 8
440
+ },
441
+ {
442
+ "label": "Magenta",
443
+ "value": 9
444
+ }
445
+ ]
446
+ }
447
+ ]
448
+ }