@zwave-js/config 10.13.0 → 10.15.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.
@@ -228,6 +228,9 @@
228
228
  },
229
229
  {
230
230
  "$import": "templates/kwikset_template.json#alarm_map_low_battery"
231
+ },
232
+ {
233
+ "$import": "templates/kwikset_template.json#alarm_map_critical_battery"
231
234
  }
232
235
  ]
233
236
  },
@@ -231,6 +231,9 @@
231
231
  },
232
232
  {
233
233
  "$import": "templates/kwikset_template.json#alarm_map_low_battery"
234
+ },
235
+ {
236
+ "$import": "templates/kwikset_template.json#alarm_map_critical_battery"
234
237
  }
235
238
  ]
236
239
  }
@@ -222,6 +222,9 @@
222
222
  },
223
223
  {
224
224
  "$import": "templates/kwikset_template.json#alarm_map_low_battery"
225
+ },
226
+ {
227
+ "$import": "templates/kwikset_template.json#alarm_map_critical_battery"
225
228
  }
226
229
  ]
227
230
  }
@@ -177,6 +177,9 @@
177
177
  },
178
178
  {
179
179
  "$import": "templates/kwikset_template.json#alarm_map_low_battery"
180
+ },
181
+ {
182
+ "$import": "templates/kwikset_template.json#alarm_map_critical_battery"
180
183
  }
181
184
  ]
182
185
  },
@@ -388,11 +388,28 @@
388
388
  },
389
389
  "alarm_map_low_battery": {
390
390
  "from": {
391
+ // Low battery <= 4.8 V
391
392
  "alarmType": 167
392
393
  },
393
394
  "to": {
394
395
  "notificationType": 8, // Power Management
395
- "notificationEvent": 10 // Replace battery soon
396
+ "notificationEvent": 14, // Charge battery soon
397
+ "eventParameters": {
398
+ "batteryLevel": "alarmLevel"
399
+ }
400
+ }
401
+ },
402
+ "alarm_map_critical_battery": {
403
+ "from": {
404
+ // Low battery <= 4.5 V
405
+ "alarmType": 168
406
+ },
407
+ "to": {
408
+ "notificationType": 8, // Power Management
409
+ "notificationEvent": 15, // Charge battery now
410
+ "eventParameters": {
411
+ "batteryLevel": "alarmLevel"
412
+ }
396
413
  }
397
414
  }
398
415
  }
@@ -91,6 +91,9 @@
91
91
  {
92
92
  "$import": "~/0x0129/templates/yale_template.json#alarm_map_low_battery"
93
93
  },
94
+ {
95
+ "$import": "~/0x0129/templates/yale_template.json#alarm_map_critical_battery"
96
+ },
94
97
  {
95
98
  "$import": "~/0x0129/templates/yale_template.json#alarm_map_auto_relock"
96
99
  }
@@ -70,6 +70,9 @@
70
70
  {
71
71
  "$import": "templates/yale_template.json#alarm_map_low_battery"
72
72
  },
73
+ {
74
+ "$import": "templates/yale_template.json#alarm_map_critical_battery"
75
+ },
73
76
  {
74
77
  "$import": "templates/yale_template.json#alarm_map_auto_relock"
75
78
  },
@@ -455,11 +455,25 @@
455
455
  },
456
456
  "alarm_map_low_battery": {
457
457
  "from": {
458
+ // Low battery <= 4.8 V
458
459
  "alarmType": 167
459
460
  },
460
461
  "to": {
461
462
  "notificationType": 8, // Power Management
462
- "notificationEvent": 10, // Replace battery soon
463
+ "notificationEvent": 14, // Charge battery soon
464
+ "eventParameters": {
465
+ "batteryLevel": "alarmLevel"
466
+ }
467
+ }
468
+ },
469
+ "alarm_map_critical_battery": {
470
+ "from": {
471
+ // Low battery <= 4.5 V
472
+ "alarmType": 168
473
+ },
474
+ "to": {
475
+ "notificationType": 8, // Power Management
476
+ "notificationEvent": 15, // Charge battery now
463
477
  "eventParameters": {
464
478
  "batteryLevel": "alarmLevel"
465
479
  }
@@ -76,6 +76,9 @@
76
76
  {
77
77
  "$import": "templates/yale_template.json#alarm_map_low_battery"
78
78
  },
79
+ {
80
+ "$import": "templates/yale_template.json#alarm_map_critical_battery"
81
+ },
79
82
  {
80
83
  "$import": "templates/yale_template.json#alarm_map_auto_relock"
81
84
  }
@@ -76,6 +76,9 @@
76
76
  {
77
77
  "$import": "templates/yale_template.json#alarm_map_low_battery"
78
78
  },
79
+ {
80
+ "$import": "templates/yale_template.json#alarm_map_critical_battery"
81
+ },
79
82
  {
80
83
  "$import": "templates/yale_template.json#alarm_map_auto_relock"
81
84
  }
@@ -92,6 +92,9 @@
92
92
  {
93
93
  "$import": "templates/yale_template.json#alarm_map_low_battery"
94
94
  },
95
+ {
96
+ "$import": "templates/yale_template.json#alarm_map_critical_battery"
97
+ },
95
98
  {
96
99
  "$import": "templates/yale_template.json#alarm_map_auto_relock"
97
100
  }
@@ -112,6 +112,9 @@
112
112
  {
113
113
  "$import": "templates/yale_template.json#alarm_map_low_battery"
114
114
  },
115
+ {
116
+ "$import": "templates/yale_template.json#alarm_map_critical_battery"
117
+ },
115
118
  {
116
119
  "$import": "templates/yale_template.json#alarm_map_auto_relock"
117
120
  }
@@ -98,6 +98,9 @@
98
98
  {
99
99
  "$import": "templates/yale_template.json#alarm_map_low_battery"
100
100
  },
101
+ {
102
+ "$import": "templates/yale_template.json#alarm_map_critical_battery"
103
+ },
101
104
  {
102
105
  "$import": "templates/yale_template.json#alarm_map_auto_relock"
103
106
  }
@@ -98,6 +98,9 @@
98
98
  {
99
99
  "$import": "templates/yale_template.json#alarm_map_low_battery"
100
100
  },
101
+ {
102
+ "$import": "templates/yale_template.json#alarm_map_critical_battery"
103
+ },
101
104
  {
102
105
  "$import": "templates/yale_template.json#alarm_map_auto_relock"
103
106
  }
@@ -79,6 +79,9 @@
79
79
  {
80
80
  "$import": "templates/yale_template.json#alarm_map_low_battery"
81
81
  },
82
+ {
83
+ "$import": "templates/yale_template.json#alarm_map_critical_battery"
84
+ },
82
85
  {
83
86
  "$import": "templates/yale_template.json#alarm_map_auto_relock"
84
87
  }
@@ -108,6 +108,9 @@
108
108
  {
109
109
  "$import": "templates/yale_template.json#alarm_map_low_battery"
110
110
  },
111
+ {
112
+ "$import": "templates/yale_template.json#alarm_map_critical_battery"
113
+ },
111
114
  {
112
115
  "$import": "templates/yale_template.json#alarm_map_auto_relock"
113
116
  }
@@ -88,6 +88,9 @@
88
88
  {
89
89
  "$import": "templates/yale_template.json#alarm_map_low_battery"
90
90
  },
91
+ {
92
+ "$import": "templates/yale_template.json#alarm_map_critical_battery"
93
+ },
91
94
  {
92
95
  "$import": "templates/yale_template.json#alarm_map_auto_relock"
93
96
  }
@@ -174,6 +174,7 @@
174
174
  {
175
175
  "#": "100",
176
176
  "label": "Endpoints I2 Notification Type and Event",
177
+ "description": "After changing this parameter, the device MUST be excluded and then re-included after waiting 30 seconds.",
177
178
  "valueSize": 1,
178
179
  "defaultValue": 1,
179
180
  "unsigned": true,
@@ -216,6 +217,7 @@
216
217
  {
217
218
  "#": "101",
218
219
  "label": "Endpoints I3 Notification Type and Event",
220
+ "description": "After changing this parameter, the device MUST be excluded and then re-included after waiting 30 seconds.",
219
221
  "valueSize": 1,
220
222
  "defaultValue": 1,
221
223
  "unsigned": true,
@@ -272,5 +274,9 @@
272
274
  "maxValue": 127,
273
275
  "defaultValue": 5
274
276
  }
275
- ]
277
+ ],
278
+ "compat": {
279
+ // The device has user-configurable endpoints. We shouldn't hide them
280
+ "preserveEndpoints": "*"
281
+ }
276
282
  }
@@ -0,0 +1,199 @@
1
+ {
2
+ "manufacturer": "ZVIDAR",
3
+ "manufacturerId": "0x045a",
4
+ "label": "Z-CM-V01",
5
+ "description": "Smart Curtain Motor",
6
+ "devices": [
7
+ {
8
+ "productType": "0x0904",
9
+ "productId": "0x0507"
10
+ }
11
+ ],
12
+ "firmwareVersion": {
13
+ "min": "0.0",
14
+ "max": "255.255"
15
+ },
16
+ "paramInformation": [
17
+ {
18
+ "#": "1",
19
+ // TODO: It is unknown what this parameter does. If anyone knows,
20
+ // let us know so we can find a better label for it
21
+ "label": "Set To Start Holding Hands",
22
+ "description": "This parameter can be used to set the motor open hand start function",
23
+ "valueSize": 1,
24
+ "defaultValue": 1,
25
+ "unsigned": true,
26
+ "allowManualEntry": false,
27
+ "options": [
28
+ {
29
+ "label": "Close hand start function",
30
+ "value": 0
31
+ },
32
+ {
33
+ "label": "Open hand start function",
34
+ "value": 1
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "#": "2",
40
+ "label": "Motor Direction",
41
+ "valueSize": 1,
42
+ "defaultValue": 1,
43
+ "unsigned": true,
44
+ "allowManualEntry": false,
45
+ "options": [
46
+ {
47
+ "label": "Forward",
48
+ "value": 1
49
+ },
50
+ // TODO: The difference between these two is unknown.
51
+ // If anyone knows, please tell us.
52
+ {
53
+ "label": "Opposite",
54
+ "value": 2
55
+ },
56
+ {
57
+ "label": "Reverse",
58
+ "value": 3
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ "#": "3",
64
+ "label": "Manually Set Open Boundary",
65
+ "valueSize": 1,
66
+ "defaultValue": 0,
67
+ "unsigned": true,
68
+ "allowManualEntry": false,
69
+ "options": [
70
+ {
71
+ "label": "Cancel",
72
+ "value": 0
73
+ },
74
+ {
75
+ "label": "Start",
76
+ "value": 1
77
+ }
78
+ ]
79
+ },
80
+ {
81
+ "#": "4",
82
+ "label": "Manually Set Closed Boundary",
83
+ "valueSize": 1,
84
+ "defaultValue": 0,
85
+ "unsigned": true,
86
+ "allowManualEntry": false,
87
+ "options": [
88
+ {
89
+ "label": "Cancel",
90
+ "value": 0
91
+ },
92
+ {
93
+ "label": "Start",
94
+ "value": 1
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "#": "5",
100
+ "label": "Control Motor",
101
+ "valueSize": 1,
102
+ "defaultValue": 3,
103
+ "unsigned": true,
104
+ "allowManualEntry": false,
105
+ "options": [
106
+ {
107
+ "label": "Open (Up)",
108
+ "value": 1
109
+ },
110
+ {
111
+ "label": "Close (Down)",
112
+ "value": 2
113
+ },
114
+ {
115
+ "label": "Stop",
116
+ "value": 3
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "#": "6",
122
+ "label": "Calibrate Limit Position",
123
+ "valueSize": 1,
124
+ "defaultValue": 1,
125
+ "unsigned": true,
126
+ "allowManualEntry": false,
127
+ "options": [
128
+ {
129
+ "label": "Upper limit",
130
+ "value": 1
131
+ },
132
+ {
133
+ "label": "Lower limit",
134
+ "value": 2
135
+ },
136
+ {
137
+ "label": "Third limit",
138
+ "value": 3
139
+ }
140
+ ]
141
+ },
142
+ {
143
+ "#": "7",
144
+ "label": "Delete Limit Position",
145
+ "valueSize": 1,
146
+ "defaultValue": 0,
147
+ "unsigned": true,
148
+ "allowManualEntry": false,
149
+ "options": [
150
+ {
151
+ "label": "All limits",
152
+ "value": 0
153
+ },
154
+ {
155
+ "label": "Only upper limit",
156
+ "value": 1
157
+ },
158
+ {
159
+ "label": "Only lower limit",
160
+ "value": 2
161
+ },
162
+ {
163
+ "label": "Only third limit",
164
+ "value": 3
165
+ }
166
+ ]
167
+ },
168
+ {
169
+ "#": "8",
170
+ "label": "Low Battery Level Alarm Threshold",
171
+ "valueSize": 1,
172
+ "minValue": 0,
173
+ "maxValue": 50,
174
+ "defaultValue": 10,
175
+ "unit": "%",
176
+ "unsigned": true
177
+ },
178
+ {
179
+ "#": "9",
180
+ "label": "Battery Report Interval",
181
+ "valueSize": 4,
182
+ "minValue": 0,
183
+ "maxValue": 2678400,
184
+ "defaultValue": 3600,
185
+ "unit": "seconds",
186
+ "unsigned": true
187
+ },
188
+ {
189
+ "#": "10",
190
+ "label": "Battery Change Report Threshold",
191
+ "valueSize": 1,
192
+ "minValue": 0,
193
+ "maxValue": 50,
194
+ "defaultValue": 5,
195
+ "unit": "%",
196
+ "unsigned": true
197
+ }
198
+ ]
199
+ }
@@ -568,7 +568,11 @@
568
568
  },
569
569
  "idleVariables": [
570
570
  // Lock state - Lock jammed
571
- "0x0b"
571
+ "0x0b",
572
+ // Keypad state - Keypad temporary disabled
573
+ "0x10",
574
+ // Keypad state - Keypad busy
575
+ "0x11"
572
576
  ]
573
577
  },
574
578
  "0x06": {
@@ -579,7 +583,11 @@
579
583
  },
580
584
  "idleVariables": [
581
585
  // Lock state - Lock jammed
582
- "0x0b"
586
+ "0x0b",
587
+ // Keypad state - Keypad temporary disabled
588
+ "0x10",
589
+ // Keypad state - Keypad busy
590
+ "0x11"
583
591
  ]
584
592
  },
585
593
  "0x07": {
@@ -628,7 +636,13 @@
628
636
  "params": {
629
637
  "type": "value",
630
638
  "name": "user ID"
631
- }
639
+ },
640
+ "idleVariables": [
641
+ // Keypad state - Keypad temporary disabled
642
+ "0x10",
643
+ // Keypad state - Keypad busy
644
+ "0x11"
645
+ ]
632
646
  },
633
647
  "0x21": {
634
648
  "label": "Lock operation with User Code",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwave-js/config",
3
- "version": "10.13.0",
3
+ "version": "10.15.0",
4
4
  "description": "zwave-js: configuration files",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -66,7 +66,7 @@
66
66
  "test:dirty": "node -r ../../maintenance/esbuild-register.js ../maintenance/src/resolveDirtyTests.ts --run"
67
67
  },
68
68
  "dependencies": {
69
- "@zwave-js/core": "10.13.0",
69
+ "@zwave-js/core": "10.15.0",
70
70
  "@zwave-js/shared": "10.13.0",
71
71
  "alcalzone-shared": "^4.0.8",
72
72
  "ansi-colors": "^4.1.3",
@@ -88,7 +88,7 @@
88
88
  "@types/sinon": "^10.0.13",
89
89
  "@types/xml2js": "^0.4.11",
90
90
  "@types/yargs": "^17.0.12",
91
- "@zwave-js/maintenance": "10.13.0",
91
+ "@zwave-js/maintenance": "10.15.0",
92
92
  "ava": "^4.3.3",
93
93
  "comment-json": "^4.2.3",
94
94
  "del-cli": "^5.0.0",
@@ -100,7 +100,7 @@
100
100
  "sinon": "^14.0.0",
101
101
  "ts-pegjs": "^0.3.1",
102
102
  "typescript": "4.9.5",
103
- "xml2js": "^0.4.23",
103
+ "xml2js": "^0.5.0",
104
104
  "yargs": "^17.5.1"
105
105
  }
106
106
  }