@zwave-js/config 10.10.0 → 10.11.0

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,390 @@
1
+ {
2
+ "manufacturer": "Namron",
3
+ "manufacturerId": "0x0438",
4
+ "label": "SR-ZV9032A-EU",
5
+ "description": "Multisensor",
6
+ "devices": [
7
+ {
8
+ "productType": "0x0400",
9
+ "productId": "0xd10a"
10
+ }
11
+ ],
12
+ "firmwareVersion": {
13
+ "min": "0.0",
14
+ "max": "255.255"
15
+ },
16
+ "associations": {
17
+ "1": {
18
+ "label": "Lifeline",
19
+ "maxNodes": 5,
20
+ "isLifeline": true
21
+ },
22
+ "2": {
23
+ "label": "Motion Control",
24
+ "maxNodes": 5
25
+ }
26
+ },
27
+ "paramInformation": [
28
+ {
29
+ "#": "2",
30
+ "label": "Battery Change Report Threshold",
31
+ "unit": "%",
32
+ "valueSize": 1,
33
+ "minValue": 1,
34
+ "maxValue": 50,
35
+ "defaultValue": 10
36
+ },
37
+ {
38
+ "#": "3",
39
+ "label": "Motion Sensitivity",
40
+ "description": "Allowable range: 8 (high) - 255 (low)",
41
+ "valueSize": 2,
42
+ "minValue": 0,
43
+ "maxValue": 255,
44
+ "defaultValue": 15,
45
+ "unsigned": true,
46
+ "options": [
47
+ {
48
+ "label": "Disable",
49
+ "value": 0
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "#": "4",
55
+ "label": "Motion Blind Time",
56
+ "description": "The amount of time the sensor will not report motion after it has reported motion.",
57
+ "valueSize": 1,
58
+ "minValue": 0,
59
+ "maxValue": 15,
60
+ "defaultValue": 15,
61
+ "allowManualEntry": false,
62
+ "options": [
63
+ {
64
+ "label": "0.5s",
65
+ "value": 0
66
+ },
67
+ {
68
+ "label": "1s",
69
+ "value": 1
70
+ },
71
+ {
72
+ "label": "1.5s",
73
+ "value": 2
74
+ },
75
+ {
76
+ "label": "2s",
77
+ "value": 3
78
+ },
79
+ {
80
+ "label": "2.5s",
81
+ "value": 4
82
+ },
83
+ {
84
+ "label": "3s",
85
+ "value": 5
86
+ },
87
+ {
88
+ "label": "3.5s",
89
+ "value": 6
90
+ },
91
+ {
92
+ "label": "4s",
93
+ "value": 7
94
+ },
95
+ {
96
+ "label": "4.5s",
97
+ "value": 8
98
+ },
99
+ {
100
+ "label": "5s",
101
+ "value": 9
102
+ },
103
+ {
104
+ "label": "5.5s",
105
+ "value": 10
106
+ },
107
+ {
108
+ "label": "6s",
109
+ "value": 11
110
+ },
111
+ {
112
+ "label": "6.5s",
113
+ "value": 12
114
+ },
115
+ {
116
+ "label": "7s",
117
+ "value": 13
118
+ },
119
+ {
120
+ "label": "7.5s",
121
+ "value": 14
122
+ },
123
+ {
124
+ "label": "8s",
125
+ "value": 15
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "#": "5",
131
+ "label": "Pulse Count",
132
+ "description": "Number of moves required for the sensor to report motion. Higher values = less sensitive.",
133
+ "valueSize": 1,
134
+ "minValue": 0,
135
+ "maxValue": 3,
136
+ "defaultValue": 1,
137
+ "allowManualEntry": false,
138
+ "options": [
139
+ {
140
+ "label": "1",
141
+ "value": 0
142
+ },
143
+ {
144
+ "label": "2",
145
+ "value": 1
146
+ },
147
+ {
148
+ "label": "3",
149
+ "value": 2
150
+ },
151
+ {
152
+ "label": "4",
153
+ "value": 3
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ "#": "6",
159
+ "label": "Motion Window Time",
160
+ "description": "The amount of time the moves specified in parameter #3 need to take place in for the sensor to report motion. Higher values = more sensitive.",
161
+ "valueSize": 1,
162
+ "minValue": 0,
163
+ "maxValue": 3,
164
+ "defaultValue": 2,
165
+ "allowManualEntry": false,
166
+ "options": [
167
+ {
168
+ "label": "4s",
169
+ "value": 0
170
+ },
171
+ {
172
+ "label": "8s",
173
+ "value": 1
174
+ },
175
+ {
176
+ "label": "12s",
177
+ "value": 2
178
+ },
179
+ {
180
+ "label": "16s",
181
+ "value": 3
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "#": "7",
187
+ "label": "Motion Clear Time",
188
+ "valueSize": 2,
189
+ "unit": "seconds",
190
+ "minValue": 3,
191
+ "maxValue": 28800,
192
+ "defaultValue": 30
193
+ },
194
+ {
195
+ "#": "8",
196
+ "label": "Association Group: Basic Set Commands",
197
+ "valueSize": 1,
198
+ "defaultValue": 0,
199
+ "allowManualEntry": false,
200
+ "options": [
201
+ {
202
+ "label": "Motion and no motion",
203
+ "value": 0
204
+ },
205
+ {
206
+ "label": "Motion only",
207
+ "value": 1
208
+ },
209
+ {
210
+ "label": "No motion only",
211
+ "value": 2
212
+ }
213
+ ]
214
+ },
215
+ {
216
+ "#": "9",
217
+ "label": "Association Group: Value of Basic Set (Motion)",
218
+ "description": "Allowable range: 0-99, 255",
219
+ "valueSize": 2,
220
+ "defaultValue": 255,
221
+ "allowManualEntry": false,
222
+ "options": [
223
+ {
224
+ "label": "Off",
225
+ "value": 0
226
+ },
227
+ {
228
+ "label": "On / Last non-zero value",
229
+ "value": 255
230
+ }
231
+ ]
232
+ },
233
+ {
234
+ "#": "10",
235
+ "label": "Association Group: Value of Basic Set (No Motion)",
236
+ "description": "Allowable range: 0-99, 255",
237
+ "valueSize": 2,
238
+ "defaultValue": 0,
239
+ "allowManualEntry": false,
240
+ "options": [
241
+ {
242
+ "label": "Off",
243
+ "value": 0
244
+ },
245
+ {
246
+ "label": "On / Last non-zero value",
247
+ "value": 255
248
+ }
249
+ ]
250
+ },
251
+ {
252
+ "#": "11",
253
+ "label": "Motion Sensor Night/Day Mode",
254
+ "valueSize": 1,
255
+ "defaultValue": 0,
256
+ "allowManualEntry": false,
257
+ "options": [
258
+ {
259
+ "label": "Always active",
260
+ "value": 0
261
+ },
262
+ {
263
+ "label": "Day only",
264
+ "value": 1
265
+ },
266
+ {
267
+ "label": "Night only",
268
+ "value": 2
269
+ }
270
+ ]
271
+ },
272
+ {
273
+ "#": "12",
274
+ "label": "Night/Day Threshold",
275
+ "valueSize": 2,
276
+ "unit": "lux",
277
+ "minValue": 1,
278
+ "maxValue": 32767,
279
+ "defaultValue": 200,
280
+ "unsigned": true
281
+ },
282
+ {
283
+ "#": "13",
284
+ "label": "Brightness Report Interval",
285
+ "description": "Allowable range: 5-2678400",
286
+ "valueSize": 4,
287
+ "unit": "seconds",
288
+ "minValue": 0,
289
+ "maxValue": 2678400,
290
+ "defaultValue": 3600,
291
+ "options": [
292
+ {
293
+ "label": "Disable",
294
+ "value": 0
295
+ }
296
+ ]
297
+ },
298
+ {
299
+ "#": "14",
300
+ "label": "Brightness Change Report Threshold",
301
+ "valueSize": 2,
302
+ "unit": "lux",
303
+ "minValue": 0,
304
+ "maxValue": 32767,
305
+ "defaultValue": 100,
306
+ "options": [
307
+ {
308
+ "label": "Disable",
309
+ "value": 0
310
+ }
311
+ ]
312
+ },
313
+ {
314
+ "#": "15",
315
+ "$import": "~/templates/master_template.json#base_enable_disable",
316
+ "label": "Association Group: Send Secure Commands",
317
+ "defaultValue": 1
318
+ },
319
+ {
320
+ "#": "16",
321
+ "label": "Temperature/Humidity Report Interval",
322
+ "description": "Allowable range: 5-2678400",
323
+ "valueSize": 4,
324
+ "unit": "seconds",
325
+ "minValue": 0,
326
+ "maxValue": 2678400,
327
+ "defaultValue": 3600,
328
+ "options": [
329
+ {
330
+ "label": "Disable",
331
+ "value": 0
332
+ }
333
+ ]
334
+ },
335
+ {
336
+ "#": "17",
337
+ "label": "Temperature Change Report Threshold",
338
+ "valueSize": 2,
339
+ "unit": "0.1 °C",
340
+ "minValue": 0,
341
+ "maxValue": 255,
342
+ "defaultValue": 10,
343
+ "options": [
344
+ {
345
+ "label": "Disable",
346
+ "value": 0
347
+ }
348
+ ]
349
+ },
350
+ {
351
+ "#": "18",
352
+ "label": "Humidity Change Report Threshold",
353
+ "valueSize": 2,
354
+ "unit": "rh%",
355
+ "minValue": 0,
356
+ "maxValue": 127,
357
+ "defaultValue": 5,
358
+ "options": [
359
+ {
360
+ "label": "Disable",
361
+ "value": 0
362
+ }
363
+ ]
364
+ },
365
+ {
366
+ "#": "19",
367
+ "label": "Temperature Calibration",
368
+ "valueSize": 2,
369
+ "unit": "0.1 °C",
370
+ "minValue": -1000,
371
+ "maxValue": 1000,
372
+ "defaultValue": 0
373
+ },
374
+ {
375
+ "#": "20",
376
+ "label": "Humidity Calibration",
377
+ "description": "The value to be added to the actual measured humidity.",
378
+ "valueSize": 2,
379
+ "unit": "%rH",
380
+ "minValue": -100,
381
+ "maxValue": 100,
382
+ "defaultValue": 0
383
+ }
384
+ ],
385
+ "metadata": {
386
+ "inclusion": "Triple press the action button, the sensor will be set to inclusion mode",
387
+ "exclusion": "Triple press the action button, the sensor will be set to exclusion mode",
388
+ "reset": "Press and hold down action button for over 10 seconds, then LED indicator will flash 3 times slowly to indicate successful factory reset, the sensor will be removed from the network and reset to factory defaults."
389
+ }
390
+ }
@@ -13,5 +13,11 @@
13
13
  "firmwareVersion": {
14
14
  "min": "0.0",
15
15
  "max": "255.255"
16
+ },
17
+ "compat": {
18
+ // This device only accepts Thermostat Setpoint Set commands with a precision of 1
19
+ "overrideFloatEncoding": {
20
+ "precision": 1
21
+ }
16
22
  }
17
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwave-js/config",
3
- "version": "10.10.0",
3
+ "version": "10.11.0",
4
4
  "description": "zwave-js: configuration files",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -56,17 +56,18 @@
56
56
  "build": "tsc -b tsconfig.build.json",
57
57
  "clean": "del-cli build/ \"*.tsbuildinfo\"",
58
58
  "extract-api": "yarn api-extractor run",
59
- "//watch": "yarn run build --watch --pretty",
60
59
  "lint:zwave": "yarn ts maintenance/lintConfigFiles.ts",
61
60
  "ts": "node -r esbuild-register",
62
61
  "lint:ts": "eslint --ext .ts --rule \"prettier/prettier: off\" \"src/**/*.ts\"",
63
62
  "lint:prettier": "prettier -c \"src/**/*.ts\" \"config/**/*.json\"",
64
63
  "lint:ts:fix": "yarn run lint:ts --fix",
65
- "lint:prettier:fix": "yarn run lint:prettier -w"
64
+ "lint:prettier:fix": "yarn run lint:prettier -w",
65
+ "test:ts": "ava",
66
+ "test:dirty": "node -r ../../maintenance/esbuild-register.js ../maintenance/src/resolveDirtyTests.ts --run"
66
67
  },
67
68
  "dependencies": {
68
- "@zwave-js/core": "10.10.0",
69
- "@zwave-js/shared": "10.10.0",
69
+ "@zwave-js/core": "10.11.0",
70
+ "@zwave-js/shared": "10.11.0",
70
71
  "alcalzone-shared": "^4.0.8",
71
72
  "ansi-colors": "^4.1.3",
72
73
  "fs-extra": "^10.1.0",
@@ -79,23 +80,24 @@
79
80
  "@esm2cjs/got": "^12.5.3",
80
81
  "@microsoft/api-extractor": "*",
81
82
  "@types/fs-extra": "^9.0.13",
82
- "@types/jest": "^29.0.2",
83
83
  "@types/js-levenshtein": "^1.1.1",
84
84
  "@types/json-logic-js": "^2.0.1",
85
85
  "@types/node": "^14.18.36",
86
86
  "@types/pegjs": "^0.10.3",
87
87
  "@types/semver": "^7.3.12",
88
+ "@types/sinon": "^10.0.13",
88
89
  "@types/xml2js": "^0.4.11",
89
90
  "@types/yargs": "^17.0.12",
90
- "@zwave-js/maintenance": "10.10.0",
91
+ "@zwave-js/maintenance": "10.11.0",
92
+ "ava": "^4.3.3",
91
93
  "comment-json": "^4.2.3",
92
94
  "del-cli": "^5.0.0",
93
95
  "esbuild": "0.15.7",
94
96
  "esbuild-register": "^3.3.3",
95
- "jest-extended": "^2.0.0",
96
97
  "js-levenshtein": "^1.1.6",
97
98
  "pegjs": "^0.10.0",
98
99
  "prettier": "^2.8.1",
100
+ "sinon": "^14.0.0",
99
101
  "ts-pegjs": "^0.3.1",
100
102
  "typescript": "4.9.4",
101
103
  "xml2js": "^0.4.23",