@zwave-js/config 10.1.0 → 10.2.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.
@@ -161,6 +161,61 @@
161
161
  "value": 1
162
162
  }
163
163
  ]
164
+ },
165
+ {
166
+ "#": "33",
167
+ "$if": "firmwareVersion >= 1.13",
168
+ "$import": "~/templates/master_template.json#base_enable_disable",
169
+ "label": "Indicate Operation Mode On Startup"
170
+ },
171
+ {
172
+ "#": "34",
173
+ "$if": "firmwareVersion >= 1.13",
174
+ "label": "Relative LED Indicator Brightness",
175
+ "valueSize": 1,
176
+ "minValue": 0,
177
+ "maxValue": 6,
178
+ "defaultValue": 3
179
+ },
180
+ {
181
+ "#": "35",
182
+ "$if": "firmwareVersion >= 1.13",
183
+ "label": "Paddle Behavior (Switch Mode)",
184
+ "valueSize": 1,
185
+ "defaultValue": 0,
186
+ "allowManualEntry": false,
187
+ "options": [
188
+ {
189
+ "label": "Top paddle turns on, Bottom paddle turns off",
190
+ "value": 0
191
+ },
192
+ {
193
+ "label": "Both paddles toggle",
194
+ "value": 1
195
+ }
196
+ ]
197
+ },
198
+ {
199
+ "#": "36",
200
+ "$if": "firmwareVersion >= 1.13",
201
+ "label": "Default Brightness (Manual Control)",
202
+ "valueSize": 1,
203
+ "minValue": 0,
204
+ "maxValue": 99,
205
+ "defaultValue": 0,
206
+ "options": [
207
+ {
208
+ "label": "Last non-zero brightness",
209
+ "value": 0
210
+ }
211
+ ]
212
+ },
213
+ {
214
+ "#": "37",
215
+ "$if": "firmwareVersion >= 1.13",
216
+ "$import": "~/templates/master_template.json#base_enable_disable_inverted",
217
+ "label": "Control Load With Paddle",
218
+ "defaultValue": 0
164
219
  }
165
220
  ],
166
221
  "metadata": {
@@ -34,7 +34,7 @@
34
34
  {
35
35
  "$if": "firmwareVersion >= 5.24",
36
36
  "#": "3",
37
- "$import": "~/templates/master_template.json#led_indicator_three_options"
37
+ "$import": "~/templates/master_template.json#led_indicator_three_options_inverted"
38
38
  },
39
39
  {
40
40
  "#": "4",
@@ -8,6 +8,10 @@
8
8
  "productType": "0x0005",
9
9
  "productId": "0x0002"
10
10
  },
11
+ {
12
+ "productType": "0x0005",
13
+ "productId": "0x0012"
14
+ },
11
15
  {
12
16
  "productType": "0x0005",
13
17
  "productId": "0x0112",
@@ -0,0 +1,23 @@
1
+ {
2
+ "manufacturer": "Fakro",
3
+ "manufacturerId": "0x0085",
4
+ "label": "ZRH12",
5
+ "description": "Remote",
6
+ "devices": [
7
+ {
8
+ "productType": "0x0001",
9
+ "productId": "0x0004"
10
+ }
11
+ ],
12
+ "firmwareVersion": {
13
+ "min": "0.0",
14
+ "max": "255.255"
15
+ },
16
+ "associations": {
17
+ "1": {
18
+ "label": "Lifeline",
19
+ "maxNodes": 1,
20
+ "isLifeline": true
21
+ }
22
+ }
23
+ }
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "manufacturer": "Fakro",
3
3
  "manufacturerId": "0x0085",
4
- "label": "ZWS12n",
4
+ "label": "ZWS12",
5
5
  "description": "Chain actuator - window opener",
6
6
  "devices": [
7
7
  {
8
8
  "productType": "0x0002",
9
- "productId": "0x0011"
9
+ "productId": "0x0011",
10
+ "zwaveAllianceId": 2477
10
11
  },
11
12
  {
12
13
  "productType": "0x0002",
@@ -20,7 +21,7 @@
20
21
  "paramInformation": [
21
22
  {
22
23
  "#": "7",
23
- "label": "Motor speed I",
24
+ "label": "Motor Speed I",
24
25
  "valueSize": 1,
25
26
  "minValue": 1,
26
27
  "maxValue": 4,
@@ -28,7 +29,7 @@
28
29
  },
29
30
  {
30
31
  "#": "8",
31
- "label": "1 Motor speed II (rain sensor)",
32
+ "label": "Motor Speed II (Rain Sensor)",
32
33
  "valueSize": 1,
33
34
  "minValue": 1,
34
35
  "maxValue": 4,
@@ -44,12 +45,18 @@
44
45
  },
45
46
  {
46
47
  "#": "15",
47
- "label": "Close after time",
48
+ "label": "Close After Time",
48
49
  "valueSize": 1,
49
50
  "unit": "minutes",
50
51
  "minValue": 0,
51
52
  "maxValue": 120,
52
- "defaultValue": 120
53
+ "defaultValue": 0
53
54
  }
54
- ]
55
+ ],
56
+ "metadata": {
57
+ "inclusion": "Autoinclusion - This feature allow you to add hard to reach devices to Z-Wave network. 3-times ON and OFF the power actuator (OFF-ON-OFFON-OFF-ON) causes the introduction of actuator to Autoinclusion mode.\nPlease note that the procedure has been started the time between on and off can not exceed 20s. Autoinclusion mode is activated for a maximum of 10 minutes. During this time, we can add an actuator to any Z-Wave controller running in the Include procedure.\n\nInclude - This function allow you to add actuator to the network Z-Wave.\nFollow the procedure adding device to the network Z-Wave according to user manual supplied with the product. Then, press the programming button P on the actuator for 1 second",
58
+ "exclusion": "Exclude - This function allow you to remove actuator from the network Z-Wave. Follow the procedure removing device from the network Z-Wave\naccording to user manual supplied with the product. Then, press the\nprogramming button P on the actuator for 1 second. Function removes\ninformation only about network Z-Wave",
59
+ "reset": "Device Reset Locally – This function allows you to reset the Z-Wave\nnetwork without the use of Z-Wave controller. Press 5 times the\nprogramming button P fast, the actuator was removed from the Z-Wave\nnetwork, restore the default parameters, name and locations. \nPlease use this procedure only when the network primary controller is missing or otherwise inoperable",
60
+ "manual": "https://products.z-wavealliance.org/ProductManual/File?folder=&filename=MarketCertificationFiles/2477/170511%20ZWS12%20User%20Manual.pdf"
61
+ }
55
62
  }
@@ -40,6 +40,10 @@
40
40
  {
41
41
  "productType": "0x3200",
42
42
  "productId": "0x015e"
43
+ },
44
+ {
45
+ "productType": "0x1e12",
46
+ "productId": "0x0163"
43
47
  }
44
48
  ],
45
49
  "firmwareVersion": {
@@ -51,7 +51,7 @@
51
51
  "value": 2
52
52
  }
53
53
  ],
54
- "label": "Auto Timer Time Unit"
54
+ "label": "Auto Timer Unit"
55
55
  },
56
56
  "auto_timer_duration_base": {
57
57
  "valueSize": 4,
@@ -102,7 +102,7 @@
102
102
  ]
103
103
  },
104
104
  "led_indicator_brightness": {
105
- "label": "LED Indicator Brightness Level",
105
+ "label": "LED Indicator Brightness",
106
106
  "valueSize": 1,
107
107
  "minValue": 0,
108
108
  "maxValue": 2,
@@ -206,7 +206,7 @@
206
206
  },
207
207
  "dimmer_ramp_rate": {
208
208
  "$import": "~/templates/master_template.json#base_0-99_nounit",
209
- "label": "Dimmer ramp rate (fade-in / fade-out effect for on / off operation) when operated manually",
209
+ "label": "Ramp Rate Off/On (Manual Control)",
210
210
  "unit": "seconds",
211
211
  "options": [
212
212
  {
@@ -215,6 +215,54 @@
215
215
  }
216
216
  ]
217
217
  },
218
+ "dimmer_on_ramp_rate": {
219
+ "$import": "~/templates/master_template.json#base_0-99_nounit",
220
+ "label": "Ramp Rate On (Manual Control)",
221
+ "unit": "seconds",
222
+ "defaultValue": 0,
223
+ "options": [
224
+ {
225
+ "label": "Instant on",
226
+ "value": 0
227
+ }
228
+ ]
229
+ },
230
+ "dimmer_off_ramp_rate": {
231
+ "$import": "~/templates/master_template.json#base_0-99_nounit",
232
+ "label": "Ramp Rate Off (Manual Control)",
233
+ "unit": "seconds",
234
+ "defaultValue": 0,
235
+ "options": [
236
+ {
237
+ "label": "Instant off",
238
+ "value": 0
239
+ }
240
+ ]
241
+ },
242
+ "zwave_on_dimmer_ramp_rate": {
243
+ "$import": "~/templates/master_template.json#base_0-99_nounit",
244
+ "label": "Ramp Rate On (Z-Wave)",
245
+ "unit": "seconds",
246
+ "defaultValue": 0,
247
+ "options": [
248
+ {
249
+ "label": "Instant on",
250
+ "value": 0
251
+ }
252
+ ]
253
+ },
254
+ "zwave_off_dimmer_ramp_rate": {
255
+ "$import": "~/templates/master_template.json#base_0-99_nounit",
256
+ "label": "Ramp Rate Off (Z-Wave)",
257
+ "unit": "seconds",
258
+ "defaultValue": 0,
259
+ "options": [
260
+ {
261
+ "label": "Instant off",
262
+ "value": 0
263
+ }
264
+ ]
265
+ },
218
266
  "min_brightness": {
219
267
  "$import": "~/templates/master_template.json#base_1-99_nounit",
220
268
  "label": "Minimum Brightness",
@@ -0,0 +1,99 @@
1
+ {
2
+ "manufacturer": "Zooz",
3
+ "manufacturerId": "0x027a",
4
+ "label": "ZEN04",
5
+ "description": "Indoor Smart Plug",
6
+ "devices": [
7
+ {
8
+ "productType": "0x7000",
9
+ "productId": "0xb002"
10
+ }
11
+ ],
12
+ "firmwareVersion": {
13
+ "min": "0.0",
14
+ "max": "255.255"
15
+ },
16
+ "paramInformation": [
17
+ {
18
+ "#": "1",
19
+ "label": "LED Indicator",
20
+ "valueSize": 1,
21
+ "defaultValue": 0,
22
+ "allowManualEntry": false,
23
+ "options": [
24
+ {
25
+ "label": "On when load is on",
26
+ "value": 0
27
+ },
28
+ {
29
+ "label": "On when load is off",
30
+ "value": 1
31
+ },
32
+ {
33
+ "label": "Always off",
34
+ "value": 2
35
+ },
36
+ {
37
+ "label": "Always on",
38
+ "value": 3
39
+ }
40
+ ]
41
+ },
42
+ {
43
+ "#": "9",
44
+ "$import": "templates/zooz_template.json#led_indicator_brightness"
45
+ },
46
+ {
47
+ "#": "2",
48
+ "$import": "templates/zooz_template.json#auto_off_timer_duration"
49
+ },
50
+ {
51
+ "#": "3",
52
+ "$import": "templates/zooz_template.json#auto_on_timer_duration"
53
+ },
54
+ {
55
+ "#": "4",
56
+ "$import": "~/templates/master_template.json#state_after_power_failure_prev_off_on"
57
+ },
58
+ {
59
+ "#": "5",
60
+ "label": "Power Wattage Reporting Threshold",
61
+ "unit": "W",
62
+ "valueSize": 1,
63
+ "minValue": 5,
64
+ "maxValue": 50,
65
+ "defaultValue": 5,
66
+ "unsigned": true
67
+ },
68
+ {
69
+ "#": "6",
70
+ "label": "Power Wattage Reporting Frequency",
71
+ "unit": "minutes",
72
+ "valueSize": 4,
73
+ "minValue": 1,
74
+ "maxValue": 65535,
75
+ "defaultValue": 5,
76
+ "unsigned": true
77
+ },
78
+ {
79
+ "#": "7",
80
+ "label": "Electrical Current Reporting Threshold",
81
+ "unit": "0.1 A",
82
+ "valueSize": 1,
83
+ "minValue": 1,
84
+ "maxValue": 10,
85
+ "defaultValue": 1,
86
+ "unsigned": true
87
+ },
88
+ {
89
+ "#": "8",
90
+ "label": "Energy Reporting Threshold",
91
+ "unit": "0.01 kWh",
92
+ "valueSize": 1,
93
+ "minValue": 1,
94
+ "maxValue": 100,
95
+ "defaultValue": 1,
96
+ "unsigned": true
97
+ }
98
+ ]
99
+ }
@@ -84,8 +84,29 @@
84
84
  },
85
85
  {
86
86
  "#": "9",
87
+ "$if": "firmwareVersion <= 10.10",
87
88
  "$import": "templates/zooz_template.json#dimmer_ramp_rate"
88
89
  },
90
+ {
91
+ "#": "9",
92
+ "$if": "firmwareVersion >= 10.20",
93
+ "$import": "templates/zooz_template.json#dimmer_on_ramp_rate"
94
+ },
95
+ {
96
+ "#": "27",
97
+ "$if": "firmwareVersion >= 10.20",
98
+ "$import": "templates/zooz_template.json#dimmer_off_ramp_rate"
99
+ },
100
+ {
101
+ "#": "28",
102
+ "$if": "firmwareVersion >= 10.20",
103
+ "$import": "templates/zooz_template.json#zwave_on_dimmer_ramp_rate"
104
+ },
105
+ {
106
+ "#": "29",
107
+ "$if": "firmwareVersion >= 10.20",
108
+ "$import": "templates/zooz_template.json#zwave_off_dimmer_ramp_rate"
109
+ },
89
110
  {
90
111
  "#": "10",
91
112
  "$import": "templates/zooz_template.json#min_brightness"
@@ -0,0 +1,122 @@
1
+ {
2
+ "manufacturer": "SmartDHOME",
3
+ "manufacturerId": "0x044c",
4
+ "label": "MyOT v4",
5
+ "description": "OpenTherm Actuator v4",
6
+ "devices": [
7
+ {
8
+ "productType": "0x0003",
9
+ "productId": "0x0004"
10
+ }
11
+ ],
12
+ "firmwareVersion": {
13
+ "min": "0.0",
14
+ "max": "255.255"
15
+ },
16
+ "paramInformation": [
17
+ {
18
+ "#": "31",
19
+ "$import": "~/templates/master_template.json#base_enable_disable",
20
+ "label": "Summer Mode",
21
+ "description": "Turn heating on/off"
22
+ },
23
+ {
24
+ "#": "1",
25
+ "$import": "~/templates/master_template.json#base_0-100_nounit",
26
+ "label": "Heating: Maximum Setpoint",
27
+ "unit": "°C",
28
+ "valueSize": 2,
29
+ "readOnly": true
30
+ },
31
+ {
32
+ "#": "2",
33
+ "$import": "~/templates/master_template.json#base_0-100_nounit",
34
+ "label": "Heating: Minimum Setpoint",
35
+ "unit": "°C",
36
+ "valueSize": 2,
37
+ "readOnly": true
38
+ },
39
+ {
40
+ "#": "30",
41
+ "$import": "~/templates/master_template.json#base_enable_disable",
42
+ "label": "Domestic Hot Water"
43
+ },
44
+ {
45
+ "#": "3",
46
+ "$import": "~/templates/master_template.json#base_0-100_nounit",
47
+ "label": "Domestic Hot Water: Maximum Setpoint",
48
+ "unit": "°C",
49
+ "valueSize": 2,
50
+ "readOnly": true
51
+ },
52
+ {
53
+ "#": "4",
54
+ "$import": "~/templates/master_template.json#base_0-100_nounit",
55
+ "label": "Domestic Hot Water: Minimum Setpoint",
56
+ "unit": "°C",
57
+ "valueSize": 2,
58
+ "readOnly": true
59
+ },
60
+ {
61
+ "#": "10",
62
+ "$import": "~/templates/master_template.json#base_0-255_nounit",
63
+ "label": "Current Error Flag",
64
+ "valueSize": 2,
65
+ "readOnly": true
66
+ },
67
+ {
68
+ "#": "11",
69
+ "$import": "~/templates/master_template.json#base_0-255_nounit",
70
+ "label": "Current Error Code",
71
+ "valueSize": 2,
72
+ "readOnly": true
73
+ },
74
+ {
75
+ "#": "90",
76
+ "label": "ID",
77
+ "valueSize": 4,
78
+ "minValue": 0,
79
+ "maxValue": 4294967295,
80
+ "defaultValue": 0,
81
+ "unsigned": true,
82
+ "readOnly": true
83
+ },
84
+ {
85
+ "#": "91",
86
+ "$import": "~/templates/master_template.json#base_0-65535",
87
+ "label": "Version",
88
+ "valueSize": 2,
89
+ "readOnly": true
90
+ },
91
+ {
92
+ "#": "95",
93
+ "$import": "~/templates/master_template.json#base_0-255_nounit",
94
+ "label": "Sensor Report Interval",
95
+ "unit": "minutes",
96
+ "defaultValue": 0,
97
+ "options": [
98
+ {
99
+ "label": "Continuous",
100
+ "value": 0
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "#": "96",
106
+ "$import": "~/templates/master_template.json#base_0-255_nounit",
107
+ "label": "Configuration Report Interval",
108
+ "unit": "minutes",
109
+ "defaultValue": 0,
110
+ "options": [
111
+ {
112
+ "label": "Continuous",
113
+ "value": 0
114
+ }
115
+ ]
116
+ }
117
+ ],
118
+ "metadata": {
119
+ "inclusion": "By pressing the FUNCTIONS button for 8 seconds",
120
+ "exclusion": "By pressing the FUNCTIONS button for 8 seconds"
121
+ }
122
+ }
package/package.json CHANGED
@@ -1,11 +1,18 @@
1
1
  {
2
2
  "name": "@zwave-js/config",
3
- "version": "10.1.0",
3
+ "version": "10.2.0",
4
4
  "description": "zwave-js: configuration files",
5
5
  "publishConfig": {
6
- "access": "public"
6
+ "access": "public",
7
+ "$types": "build/index.d.ts",
8
+ "$typesVersions": {
9
+ "*": {
10
+ "safe": [
11
+ "build/index_safe.d.ts"
12
+ ]
13
+ }
14
+ }
7
15
  },
8
- "keywords": [],
9
16
  "main": "build/index.js",
10
17
  "exports": {
11
18
  ".": "./build/index.js",
@@ -20,6 +27,7 @@
20
27
  ]
21
28
  }
22
29
  },
30
+ "keywords": [],
23
31
  "files": [
24
32
  "build/**/*.{js,d.ts,map}",
25
33
  "config/"
@@ -44,46 +52,52 @@
44
52
  "node": ">=14.13.0 <15 || >= 16 <16.9.0 || >16.9.0"
45
53
  },
46
54
  "scripts": {
47
- "prebuild": "yarn ts maintenance/prebuild.ts",
48
- "build": "yarn prebuild && tsc -b tsconfig.build.json",
55
+ "codegen": "yarn ts maintenance/codegen.ts",
56
+ "build": "tsc -b tsconfig.build.json",
57
+ "clean": "del-cli build/ \"*.tsbuildinfo\"",
49
58
  "extract-api": "yarn api-extractor run",
50
- "clean": "tsc -b tsconfig.build.json --clean",
51
- "watch": "yarn run build --watch --pretty",
52
- "lint_config": "yarn ts maintenance/lintConfigFiles.ts",
53
- "ts": "node -r esbuild-register"
59
+ "//watch": "yarn run build --watch --pretty",
60
+ "lint:zwave": "yarn ts maintenance/lintConfigFiles.ts",
61
+ "ts": "node -r esbuild-register",
62
+ "lint:ts": "eslint --ext .ts --rule \"prettier/prettier: off\" \"src/**/*.ts\"",
63
+ "lint:prettier": "prettier -c \"src/**/*.ts\" \"config/**/*.json\"",
64
+ "lint:ts:fix": "yarn run lint:ts --fix",
65
+ "lint:prettier:fix": "yarn run lint:prettier -w"
54
66
  },
55
67
  "dependencies": {
56
- "@zwave-js/core": "10.1.0",
57
- "@zwave-js/shared": "10.0.4",
58
- "alcalzone-shared": "^4.0.1",
68
+ "@zwave-js/core": "10.2.0",
69
+ "@zwave-js/shared": "10.2.0",
70
+ "alcalzone-shared": "^4.0.8",
59
71
  "ansi-colors": "^4.1.3",
60
72
  "fs-extra": "^10.1.0",
61
73
  "json-logic-js": "^2.0.2",
62
74
  "json5": "^2.2.1",
63
75
  "semver": "^7.3.7",
64
- "winston": "^3.8.1"
76
+ "winston": "^3.8.2"
65
77
  },
66
78
  "devDependencies": {
67
79
  "@esm2cjs/got": "^12.4.1",
68
80
  "@microsoft/api-extractor": "*",
69
81
  "@types/fs-extra": "^9.0.13",
70
- "@types/jest": "^27.5.2",
82
+ "@types/jest": "^29.0.2",
71
83
  "@types/js-levenshtein": "^1.1.1",
72
84
  "@types/json-logic-js": "^2.0.1",
73
- "@types/node": "^14.18.26",
85
+ "@types/node": "^14.18.29",
74
86
  "@types/pegjs": "^0.10.3",
75
87
  "@types/semver": "^7.3.12",
76
88
  "@types/xml2js": "^0.4.11",
77
89
  "@types/yargs": "^17.0.12",
78
- "@zwave-js/maintenance": "10.1.0",
90
+ "@zwave-js/maintenance": "10.2.0",
79
91
  "comment-json": "^4.2.3",
80
- "esbuild": "0.14.51",
92
+ "del-cli": "^5.0.0",
93
+ "esbuild": "0.15.7",
81
94
  "esbuild-register": "^3.3.3",
82
95
  "jest-extended": "^2.0.0",
83
96
  "js-levenshtein": "^1.1.6",
84
97
  "pegjs": "^0.10.0",
98
+ "prettier": "^2.7.1",
85
99
  "ts-pegjs": "^0.3.1",
86
- "typescript": "4.7.4",
100
+ "typescript": "4.8.3",
87
101
  "xml2js": "^0.4.23",
88
102
  "yargs": "^17.5.1"
89
103
  }