zwave-js 9.0.0 → 9.0.2
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.
- package/build/lib/commandclass/AssociationCC.js +2 -2
- package/build/lib/commandclass/ClimateControlScheduleCC.js +3 -3
- package/build/lib/commandclass/ColorSwitchCC.js +27 -27
- package/build/lib/commandclass/ConfigurationCC.js +22 -22
- package/build/lib/commandclass/DoorLockCC.d.ts +13 -5
- package/build/lib/commandclass/DoorLockCC.d.ts.map +1 -1
- package/build/lib/commandclass/DoorLockCC.js +147 -47
- package/build/lib/commandclass/DoorLockCC.js.map +1 -1
- package/build/lib/commandclass/FirmwareUpdateMetaDataCC.js +16 -16
- package/build/lib/commandclass/IndicatorCC.js +3 -3
- package/build/lib/commandclass/IrrigationCC.js +15 -15
- package/build/lib/commandclass/MeterCC.js +6 -6
- package/build/lib/commandclass/MultiChannelAssociationCC.js +12 -12
- package/build/lib/commandclass/MultilevelSwitchCC.d.ts +2 -0
- package/build/lib/commandclass/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultilevelSwitchCC.js +6 -6
- package/build/lib/commandclass/MultilevelSwitchCC.js.map +1 -1
- package/build/lib/commandclass/NotificationCC.js +9 -9
- package/build/lib/commandclass/TimeCC.js +4 -4
- package/build/lib/commandclass/UserCodeCC.js +9 -9
- package/build/lib/driver/NetworkCache.d.ts.map +1 -1
- package/build/lib/driver/NetworkCache.js +41 -0
- package/build/lib/driver/NetworkCache.js.map +1 -1
- package/package.json +4 -4
|
@@ -52,12 +52,12 @@ const __assertType__AssociationCCRemoveOptions = $o => {
|
|
|
52
52
|
function _0($o) {
|
|
53
53
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
54
54
|
return {};
|
|
55
|
-
if ("groupId" in $o) {
|
|
55
|
+
if ("groupId" in $o && $o["groupId"] !== undefined) {
|
|
56
56
|
const error = _number($o["groupId"]);
|
|
57
57
|
if (error)
|
|
58
58
|
return error;
|
|
59
59
|
}
|
|
60
|
-
if ("nodeIds" in $o) {
|
|
60
|
+
if ("nodeIds" in $o && $o["nodeIds"] !== undefined) {
|
|
61
61
|
const error = sa__number_ea_3($o["nodeIds"]);
|
|
62
62
|
if (error)
|
|
63
63
|
return error;
|
|
@@ -47,21 +47,21 @@ const __assertType__sa__2_ea_2 = $o => {
|
|
|
47
47
|
function _2($o) {
|
|
48
48
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
49
49
|
return {};
|
|
50
|
-
if ("hour" in $o) {
|
|
50
|
+
if ("hour" in $o && $o["hour"] !== undefined) {
|
|
51
51
|
const error = _number($o["hour"]);
|
|
52
52
|
if (error)
|
|
53
53
|
return error;
|
|
54
54
|
}
|
|
55
55
|
else
|
|
56
56
|
return {};
|
|
57
|
-
if ("minute" in $o) {
|
|
57
|
+
if ("minute" in $o && $o["minute"] !== undefined) {
|
|
58
58
|
const error = _number($o["minute"]);
|
|
59
59
|
if (error)
|
|
60
60
|
return error;
|
|
61
61
|
}
|
|
62
62
|
else
|
|
63
63
|
return {};
|
|
64
|
-
if ("state" in $o) {
|
|
64
|
+
if ("state" in $o && $o["state"] !== undefined) {
|
|
65
65
|
const error = su__undefined__number__6__7__8_eu($o["state"]);
|
|
66
66
|
if (error)
|
|
67
67
|
return error;
|
|
@@ -42,47 +42,47 @@ const __assertType__ColorSwitchCCSetOptions = $o => {
|
|
|
42
42
|
function _2($o) {
|
|
43
43
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
44
44
|
return {};
|
|
45
|
-
if ("warmWhite" in $o) {
|
|
45
|
+
if ("warmWhite" in $o && $o["warmWhite"] !== undefined) {
|
|
46
46
|
const error = su__undefined__number_eu($o["warmWhite"]);
|
|
47
47
|
if (error)
|
|
48
48
|
return error;
|
|
49
49
|
}
|
|
50
|
-
if ("coldWhite" in $o) {
|
|
50
|
+
if ("coldWhite" in $o && $o["coldWhite"] !== undefined) {
|
|
51
51
|
const error = su__undefined__number_eu($o["coldWhite"]);
|
|
52
52
|
if (error)
|
|
53
53
|
return error;
|
|
54
54
|
}
|
|
55
|
-
if ("red" in $o) {
|
|
55
|
+
if ("red" in $o && $o["red"] !== undefined) {
|
|
56
56
|
const error = su__undefined__number_eu($o["red"]);
|
|
57
57
|
if (error)
|
|
58
58
|
return error;
|
|
59
59
|
}
|
|
60
|
-
if ("green" in $o) {
|
|
60
|
+
if ("green" in $o && $o["green"] !== undefined) {
|
|
61
61
|
const error = su__undefined__number_eu($o["green"]);
|
|
62
62
|
if (error)
|
|
63
63
|
return error;
|
|
64
64
|
}
|
|
65
|
-
if ("blue" in $o) {
|
|
65
|
+
if ("blue" in $o && $o["blue"] !== undefined) {
|
|
66
66
|
const error = su__undefined__number_eu($o["blue"]);
|
|
67
67
|
if (error)
|
|
68
68
|
return error;
|
|
69
69
|
}
|
|
70
|
-
if ("amber" in $o) {
|
|
70
|
+
if ("amber" in $o && $o["amber"] !== undefined) {
|
|
71
71
|
const error = su__undefined__number_eu($o["amber"]);
|
|
72
72
|
if (error)
|
|
73
73
|
return error;
|
|
74
74
|
}
|
|
75
|
-
if ("cyan" in $o) {
|
|
75
|
+
if ("cyan" in $o && $o["cyan"] !== undefined) {
|
|
76
76
|
const error = su__undefined__number_eu($o["cyan"]);
|
|
77
77
|
if (error)
|
|
78
78
|
return error;
|
|
79
79
|
}
|
|
80
|
-
if ("purple" in $o) {
|
|
80
|
+
if ("purple" in $o && $o["purple"] !== undefined) {
|
|
81
81
|
const error = su__undefined__number_eu($o["purple"]);
|
|
82
82
|
if (error)
|
|
83
83
|
return error;
|
|
84
84
|
}
|
|
85
|
-
if ("index" in $o) {
|
|
85
|
+
if ("index" in $o && $o["index"] !== undefined) {
|
|
86
86
|
const error = su__undefined__number_eu($o["index"]);
|
|
87
87
|
if (error)
|
|
88
88
|
return error;
|
|
@@ -95,7 +95,7 @@ const __assertType__ColorSwitchCCSetOptions = $o => {
|
|
|
95
95
|
function _3($o) {
|
|
96
96
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
97
97
|
return {};
|
|
98
|
-
if ("duration" in $o) {
|
|
98
|
+
if ("duration" in $o && $o["duration"] !== undefined) {
|
|
99
99
|
const error = _11($o["duration"]);
|
|
100
100
|
if (error)
|
|
101
101
|
return error;
|
|
@@ -114,47 +114,47 @@ const __assertType__ColorSwitchCCSetOptions = $o => {
|
|
|
114
114
|
function _5($o) {
|
|
115
115
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
116
116
|
return {};
|
|
117
|
-
if ("0" in $o) {
|
|
117
|
+
if ("0" in $o && $o["0"] !== undefined) {
|
|
118
118
|
const error = su__undefined__number_eu($o["0"]);
|
|
119
119
|
if (error)
|
|
120
120
|
return error;
|
|
121
121
|
}
|
|
122
|
-
if ("1" in $o) {
|
|
122
|
+
if ("1" in $o && $o["1"] !== undefined) {
|
|
123
123
|
const error = su__undefined__number_eu($o["1"]);
|
|
124
124
|
if (error)
|
|
125
125
|
return error;
|
|
126
126
|
}
|
|
127
|
-
if ("2" in $o) {
|
|
127
|
+
if ("2" in $o && $o["2"] !== undefined) {
|
|
128
128
|
const error = su__undefined__number_eu($o["2"]);
|
|
129
129
|
if (error)
|
|
130
130
|
return error;
|
|
131
131
|
}
|
|
132
|
-
if ("3" in $o) {
|
|
132
|
+
if ("3" in $o && $o["3"] !== undefined) {
|
|
133
133
|
const error = su__undefined__number_eu($o["3"]);
|
|
134
134
|
if (error)
|
|
135
135
|
return error;
|
|
136
136
|
}
|
|
137
|
-
if ("4" in $o) {
|
|
137
|
+
if ("4" in $o && $o["4"] !== undefined) {
|
|
138
138
|
const error = su__undefined__number_eu($o["4"]);
|
|
139
139
|
if (error)
|
|
140
140
|
return error;
|
|
141
141
|
}
|
|
142
|
-
if ("5" in $o) {
|
|
142
|
+
if ("5" in $o && $o["5"] !== undefined) {
|
|
143
143
|
const error = su__undefined__number_eu($o["5"]);
|
|
144
144
|
if (error)
|
|
145
145
|
return error;
|
|
146
146
|
}
|
|
147
|
-
if ("6" in $o) {
|
|
147
|
+
if ("6" in $o && $o["6"] !== undefined) {
|
|
148
148
|
const error = su__undefined__number_eu($o["6"]);
|
|
149
149
|
if (error)
|
|
150
150
|
return error;
|
|
151
151
|
}
|
|
152
|
-
if ("7" in $o) {
|
|
152
|
+
if ("7" in $o && $o["7"] !== undefined) {
|
|
153
153
|
const error = su__undefined__number_eu($o["7"]);
|
|
154
154
|
if (error)
|
|
155
155
|
return error;
|
|
156
156
|
}
|
|
157
|
-
if ("8" in $o) {
|
|
157
|
+
if ("8" in $o && $o["8"] !== undefined) {
|
|
158
158
|
const error = su__undefined__number_eu($o["8"]);
|
|
159
159
|
if (error)
|
|
160
160
|
return error;
|
|
@@ -176,7 +176,7 @@ const __assertType__ColorSwitchCCSetOptions = $o => {
|
|
|
176
176
|
function _7($o) {
|
|
177
177
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
178
178
|
return {};
|
|
179
|
-
if ("hexColor" in $o) {
|
|
179
|
+
if ("hexColor" in $o && $o["hexColor"] !== undefined) {
|
|
180
180
|
const error = _string($o["hexColor"]);
|
|
181
181
|
if (error)
|
|
182
182
|
return error;
|
|
@@ -263,14 +263,14 @@ const __assertType__ColorSwitchCCStartLevelChangeOptions = $o => {
|
|
|
263
263
|
function _2($o) {
|
|
264
264
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
265
265
|
return {};
|
|
266
|
-
if ("colorComponent" in $o) {
|
|
266
|
+
if ("colorComponent" in $o && $o["colorComponent"] !== undefined) {
|
|
267
267
|
const error = su__8__9__10__11__12__13__14__15__16_eu($o["colorComponent"]);
|
|
268
268
|
if (error)
|
|
269
269
|
return error;
|
|
270
270
|
}
|
|
271
271
|
else
|
|
272
272
|
return {};
|
|
273
|
-
if ("direction" in $o) {
|
|
273
|
+
if ("direction" in $o && $o["direction"] !== undefined) {
|
|
274
274
|
const error = su__18__19_eu($o["direction"]);
|
|
275
275
|
if (error)
|
|
276
276
|
return error;
|
|
@@ -288,14 +288,14 @@ const __assertType__ColorSwitchCCStartLevelChangeOptions = $o => {
|
|
|
288
288
|
function _3($o) {
|
|
289
289
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
290
290
|
return {};
|
|
291
|
-
if ("ignoreStartLevel" in $o) {
|
|
291
|
+
if ("ignoreStartLevel" in $o && $o["ignoreStartLevel"] !== undefined) {
|
|
292
292
|
const error = _true($o["ignoreStartLevel"]);
|
|
293
293
|
if (error)
|
|
294
294
|
return error;
|
|
295
295
|
}
|
|
296
296
|
else
|
|
297
297
|
return {};
|
|
298
|
-
if ("startLevel" in $o) {
|
|
298
|
+
if ("startLevel" in $o && $o["startLevel"] !== undefined) {
|
|
299
299
|
const error = _number($o["startLevel"]);
|
|
300
300
|
if (error)
|
|
301
301
|
return error;
|
|
@@ -308,7 +308,7 @@ const __assertType__ColorSwitchCCStartLevelChangeOptions = $o => {
|
|
|
308
308
|
function _4($o) {
|
|
309
309
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
310
310
|
return {};
|
|
311
|
-
if ("duration" in $o) {
|
|
311
|
+
if ("duration" in $o && $o["duration"] !== undefined) {
|
|
312
312
|
const error = _20($o["duration"]);
|
|
313
313
|
if (error)
|
|
314
314
|
return error;
|
|
@@ -330,14 +330,14 @@ const __assertType__ColorSwitchCCStartLevelChangeOptions = $o => {
|
|
|
330
330
|
function _6($o) {
|
|
331
331
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
332
332
|
return {};
|
|
333
|
-
if ("ignoreStartLevel" in $o) {
|
|
333
|
+
if ("ignoreStartLevel" in $o && $o["ignoreStartLevel"] !== undefined) {
|
|
334
334
|
const error = _false($o["ignoreStartLevel"]);
|
|
335
335
|
if (error)
|
|
336
336
|
return error;
|
|
337
337
|
}
|
|
338
338
|
else
|
|
339
339
|
return {};
|
|
340
|
-
if ("startLevel" in $o) {
|
|
340
|
+
if ("startLevel" in $o && $o["startLevel"] !== undefined) {
|
|
341
341
|
const error = _number($o["startLevel"]);
|
|
342
342
|
if (error)
|
|
343
343
|
return error;
|
|
@@ -30,12 +30,12 @@ const __assertType__optional__0 = $o => {
|
|
|
30
30
|
function _0($o) {
|
|
31
31
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
32
32
|
return {};
|
|
33
|
-
if ("valueBitMask" in $o) {
|
|
33
|
+
if ("valueBitMask" in $o && $o["valueBitMask"] !== undefined) {
|
|
34
34
|
const error = _number($o["valueBitMask"]);
|
|
35
35
|
if (error)
|
|
36
36
|
return error;
|
|
37
37
|
}
|
|
38
|
-
if ("allowUnexpectedResponse" in $o) {
|
|
38
|
+
if ("allowUnexpectedResponse" in $o && $o["allowUnexpectedResponse"] !== undefined) {
|
|
39
39
|
const error = _boolean($o["allowUnexpectedResponse"]);
|
|
40
40
|
if (error)
|
|
41
41
|
return error;
|
|
@@ -59,14 +59,14 @@ const __assertType__sa__2_ea_2 = $o => {
|
|
|
59
59
|
function _2($o) {
|
|
60
60
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
61
61
|
return {};
|
|
62
|
-
if ("parameter" in $o) {
|
|
62
|
+
if ("parameter" in $o && $o["parameter"] !== undefined) {
|
|
63
63
|
const error = _number($o["parameter"]);
|
|
64
64
|
if (error)
|
|
65
65
|
return error;
|
|
66
66
|
}
|
|
67
67
|
else
|
|
68
68
|
return {};
|
|
69
|
-
if ("bitMask" in $o) {
|
|
69
|
+
if ("bitMask" in $o && $o["bitMask"] !== undefined) {
|
|
70
70
|
const error = _number($o["bitMask"]);
|
|
71
71
|
if (error)
|
|
72
72
|
return error;
|
|
@@ -174,7 +174,7 @@ const __assertType__su_st__number_su__number__8_4_4_4_eu_su__11__12__13_eu_su__u
|
|
|
174
174
|
function _26($o) {
|
|
175
175
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
176
176
|
return {};
|
|
177
|
-
if ("parameter" in $o) {
|
|
177
|
+
if ("parameter" in $o && $o["parameter"] !== undefined) {
|
|
178
178
|
const error = _number($o["parameter"]);
|
|
179
179
|
if (error)
|
|
180
180
|
return error;
|
|
@@ -186,12 +186,12 @@ const __assertType__su_st__number_su__number__8_4_4_4_eu_su__11__12__13_eu_su__u
|
|
|
186
186
|
function _27($o) {
|
|
187
187
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
188
188
|
return {};
|
|
189
|
-
if ("bitMask" in $o) {
|
|
189
|
+
if ("bitMask" in $o && $o["bitMask"] !== undefined) {
|
|
190
190
|
const error = _undefined($o["bitMask"]);
|
|
191
191
|
if (error)
|
|
192
192
|
return error;
|
|
193
193
|
}
|
|
194
|
-
if ("value" in $o) {
|
|
194
|
+
if ("value" in $o && $o["value"] !== undefined) {
|
|
195
195
|
const error = su__number__8_4_4_4_eu($o["value"]);
|
|
196
196
|
if (error)
|
|
197
197
|
return error;
|
|
@@ -221,26 +221,26 @@ const __assertType__su_st__number_su__number__8_4_4_4_eu_su__11__12__13_eu_su__u
|
|
|
221
221
|
function _29($o) {
|
|
222
222
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
223
223
|
return {};
|
|
224
|
-
if ("bitMask" in $o) {
|
|
224
|
+
if ("bitMask" in $o && $o["bitMask"] !== undefined) {
|
|
225
225
|
const error = _undefined($o["bitMask"]);
|
|
226
226
|
if (error)
|
|
227
227
|
return error;
|
|
228
228
|
}
|
|
229
|
-
if ("value" in $o) {
|
|
229
|
+
if ("value" in $o && $o["value"] !== undefined) {
|
|
230
230
|
const error = su__number__8_4_4_4_eu($o["value"]);
|
|
231
231
|
if (error)
|
|
232
232
|
return error;
|
|
233
233
|
}
|
|
234
234
|
else
|
|
235
235
|
return {};
|
|
236
|
-
if ("valueSize" in $o) {
|
|
236
|
+
if ("valueSize" in $o && $o["valueSize"] !== undefined) {
|
|
237
237
|
const error = su__11__12__13_eu($o["valueSize"]);
|
|
238
238
|
if (error)
|
|
239
239
|
return error;
|
|
240
240
|
}
|
|
241
241
|
else
|
|
242
242
|
return {};
|
|
243
|
-
if ("valueFormat" in $o) {
|
|
243
|
+
if ("valueFormat" in $o && $o["valueFormat"] !== undefined) {
|
|
244
244
|
const error = su__17__18__19__20_eu($o["valueFormat"]);
|
|
245
245
|
if (error)
|
|
246
246
|
return error;
|
|
@@ -261,14 +261,14 @@ const __assertType__su_st__number_su__number__8_4_4_4_eu_su__11__12__13_eu_su__u
|
|
|
261
261
|
function _31($o) {
|
|
262
262
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
263
263
|
return {};
|
|
264
|
-
if ("bitMask" in $o) {
|
|
264
|
+
if ("bitMask" in $o && $o["bitMask"] !== undefined) {
|
|
265
265
|
const error = _number($o["bitMask"]);
|
|
266
266
|
if (error)
|
|
267
267
|
return error;
|
|
268
268
|
}
|
|
269
269
|
else
|
|
270
270
|
return {};
|
|
271
|
-
if ("value" in $o) {
|
|
271
|
+
if ("value" in $o && $o["value"] !== undefined) {
|
|
272
272
|
const error = _number($o["value"]);
|
|
273
273
|
if (error)
|
|
274
274
|
return error;
|
|
@@ -323,7 +323,7 @@ const __assertType__sa_su_si__4__5_ei_si__4__7_ei_si__4__9_ei_eu_ea_2 = $o => {
|
|
|
323
323
|
function _4($o) {
|
|
324
324
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
325
325
|
return {};
|
|
326
|
-
if ("parameter" in $o) {
|
|
326
|
+
if ("parameter" in $o && $o["parameter"] !== undefined) {
|
|
327
327
|
const error = _number($o["parameter"]);
|
|
328
328
|
if (error)
|
|
329
329
|
return error;
|
|
@@ -353,12 +353,12 @@ const __assertType__sa_su_si__4__5_ei_si__4__7_ei_si__4__9_ei_eu_ea_2 = $o => {
|
|
|
353
353
|
function _5($o) {
|
|
354
354
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
355
355
|
return {};
|
|
356
|
-
if ("bitMask" in $o) {
|
|
356
|
+
if ("bitMask" in $o && $o["bitMask"] !== undefined) {
|
|
357
357
|
const error = _undefined($o["bitMask"]);
|
|
358
358
|
if (error)
|
|
359
359
|
return error;
|
|
360
360
|
}
|
|
361
|
-
if ("value" in $o) {
|
|
361
|
+
if ("value" in $o && $o["value"] !== undefined) {
|
|
362
362
|
const error = su__number__13_11_11_11_eu($o["value"]);
|
|
363
363
|
if (error)
|
|
364
364
|
return error;
|
|
@@ -418,26 +418,26 @@ const __assertType__sa_su_si__4__5_ei_si__4__7_ei_si__4__9_ei_eu_ea_2 = $o => {
|
|
|
418
418
|
function _7($o) {
|
|
419
419
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
420
420
|
return {};
|
|
421
|
-
if ("bitMask" in $o) {
|
|
421
|
+
if ("bitMask" in $o && $o["bitMask"] !== undefined) {
|
|
422
422
|
const error = _undefined($o["bitMask"]);
|
|
423
423
|
if (error)
|
|
424
424
|
return error;
|
|
425
425
|
}
|
|
426
|
-
if ("value" in $o) {
|
|
426
|
+
if ("value" in $o && $o["value"] !== undefined) {
|
|
427
427
|
const error = su__number__13_11_11_11_eu($o["value"]);
|
|
428
428
|
if (error)
|
|
429
429
|
return error;
|
|
430
430
|
}
|
|
431
431
|
else
|
|
432
432
|
return {};
|
|
433
|
-
if ("valueSize" in $o) {
|
|
433
|
+
if ("valueSize" in $o && $o["valueSize"] !== undefined) {
|
|
434
434
|
const error = su__15__16__17_eu($o["valueSize"]);
|
|
435
435
|
if (error)
|
|
436
436
|
return error;
|
|
437
437
|
}
|
|
438
438
|
else
|
|
439
439
|
return {};
|
|
440
|
-
if ("valueFormat" in $o) {
|
|
440
|
+
if ("valueFormat" in $o && $o["valueFormat"] !== undefined) {
|
|
441
441
|
const error = su__19__20__21__22_eu($o["valueFormat"]);
|
|
442
442
|
if (error)
|
|
443
443
|
return error;
|
|
@@ -458,14 +458,14 @@ const __assertType__sa_su_si__4__5_ei_si__4__7_ei_si__4__9_ei_eu_ea_2 = $o => {
|
|
|
458
458
|
function _9($o) {
|
|
459
459
|
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
460
460
|
return {};
|
|
461
|
-
if ("bitMask" in $o) {
|
|
461
|
+
if ("bitMask" in $o && $o["bitMask"] !== undefined) {
|
|
462
462
|
const error = _number($o["bitMask"]);
|
|
463
463
|
if (error)
|
|
464
464
|
return error;
|
|
465
465
|
}
|
|
466
466
|
else
|
|
467
467
|
return {};
|
|
468
|
-
if ("value" in $o) {
|
|
468
|
+
if ("value" in $o && $o["value"] !== undefined) {
|
|
469
469
|
const error = _number($o["value"]);
|
|
470
470
|
if (error)
|
|
471
471
|
return error;
|
|
@@ -31,12 +31,19 @@ export declare enum DoorLockOperationType {
|
|
|
31
31
|
export declare type DoorHandleStatus = [boolean, boolean, boolean, boolean];
|
|
32
32
|
export declare function getTargetModeValueId(endpoint: number): ValueID;
|
|
33
33
|
export declare function getCurrentModeValueId(endpoint: number): ValueID;
|
|
34
|
+
export declare function getOperationTypeValueId(endpoint: number): ValueID;
|
|
35
|
+
export declare function getLatchSupportedValueId(endpoint: number): ValueID;
|
|
36
|
+
export declare function getBoltSupportedValueId(endpoint: number): ValueID;
|
|
37
|
+
export declare function getDoorSupportedValueId(endpoint: number): ValueID;
|
|
38
|
+
export declare function getLatchStatusValueId(endpoint: number): ValueID;
|
|
39
|
+
export declare function getBoltStatusValueId(endpoint: number): ValueID;
|
|
40
|
+
export declare function getDoorStatusValueId(endpoint: number): ValueID;
|
|
34
41
|
export declare class DoorLockCCAPI extends PhysicalCCAPI {
|
|
35
42
|
supportsCommand(cmd: DoorLockCommand): Maybe<boolean>;
|
|
36
43
|
protected [SET_VALUE]: SetValueImplementation;
|
|
37
44
|
protected [POLL_VALUE]: PollValueImplementation;
|
|
38
|
-
getCapabilities(): Promise<Pick<DoorLockCCCapabilitiesReport, "
|
|
39
|
-
get(): Promise<Pick<DoorLockCCOperationReport, "duration" | "targetMode" | "currentMode" | "
|
|
45
|
+
getCapabilities(): Promise<Pick<DoorLockCCCapabilitiesReport, "latchSupported" | "boltSupported" | "doorSupported" | "autoRelockSupported" | "blockToBlockSupported" | "holdAndReleaseSupported" | "twistAssistSupported" | "supportedDoorLockModes" | "supportedInsideHandles" | "supportedOperationTypes" | "supportedOutsideHandles"> | undefined>;
|
|
46
|
+
get(): Promise<Pick<DoorLockCCOperationReport, "duration" | "targetMode" | "currentMode" | "latchStatus" | "boltStatus" | "doorStatus" | "outsideHandlesCanOpenDoor" | "insideHandlesCanOpenDoor" | "lockTimeout"> | undefined>;
|
|
40
47
|
set(mode: DoorLockMode): Promise<void>;
|
|
41
48
|
setConfiguration(configuration: DoorLockCCConfigurationSetOptions): Promise<void>;
|
|
42
49
|
getConfiguration(): Promise<Pick<DoorLockCCConfigurationReport, "operationType" | "outsideHandlesCanOpenDoorConfiguration" | "insideHandlesCanOpenDoorConfiguration" | "lockTimeoutConfiguration" | "autoRelockTime" | "holdAndReleaseTime" | "twistAssist" | "blockToBlock"> | undefined>;
|
|
@@ -57,14 +64,15 @@ export declare class DoorLockCCOperationSet extends DoorLockCC {
|
|
|
57
64
|
}
|
|
58
65
|
export declare class DoorLockCCOperationReport extends DoorLockCC {
|
|
59
66
|
constructor(driver: Driver, options: CommandClassDeserializationOptions);
|
|
67
|
+
persistValues(): boolean;
|
|
60
68
|
readonly currentMode: DoorLockMode;
|
|
61
69
|
readonly targetMode?: DoorLockMode;
|
|
62
70
|
readonly duration?: Duration;
|
|
63
71
|
readonly outsideHandlesCanOpenDoor: DoorHandleStatus;
|
|
64
72
|
readonly insideHandlesCanOpenDoor: DoorHandleStatus;
|
|
65
|
-
readonly latchStatus
|
|
66
|
-
readonly boltStatus
|
|
67
|
-
readonly doorStatus
|
|
73
|
+
readonly latchStatus?: "open" | "closed";
|
|
74
|
+
readonly boltStatus?: "locked" | "unlocked";
|
|
75
|
+
readonly doorStatus?: "open" | "closed";
|
|
68
76
|
readonly lockTimeout?: number;
|
|
69
77
|
toLogEntry(): MessageOrCCLogEntry;
|
|
70
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DoorLockCC.d.ts","sourceRoot":"","sources":["../../../src/lib/commandclass/DoorLockCC.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EACX,mBAAmB,EAEnB,OAAO,EACP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEN,QAAQ,EAER,KAAK,EAML,MAAM,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EACN,aAAa,EACb,uBAAuB,EACvB,UAAU,EACV,sBAAsB,EACtB,SAAS,EAGT,MAAM,OAAO,CAAC;AACf,OAAO,EAGN,gBAAgB,EAGhB,YAAY,EAEZ,kCAAkC,EAIlC,MAAM,gBAAgB,CAAC;AAGxB,oBAAY,eAAe;IAC1B,YAAY,IAAO;IACnB,YAAY,IAAO;IACnB,eAAe,IAAO;IACtB,gBAAgB,IAAO;IACvB,gBAAgB,IAAO;IACvB,mBAAmB,IAAO;IAC1B,eAAe,IAAO;IACtB,kBAAkB,IAAO;CACzB;AAGD,oBAAY,YAAY;IACvB,SAAS,IAAO;IAChB,oBAAoB,IAAO;IAC3B,eAAe,KAAO;IACtB,0BAA0B,KAAO;IACjC,gBAAgB,KAAO;IACvB,2BAA2B,KAAO;IAClC,OAAO,MAAO;IACd,OAAO,MAAO;CACd;AAGD,oBAAY,qBAAqB;IAChC,QAAQ,IAAO;IACf,KAAK,IAAO;CACZ;AAGD,oBAAY,gBAAgB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAEpE,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAM9D;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAM/D;
|
|
1
|
+
{"version":3,"file":"DoorLockCC.d.ts","sourceRoot":"","sources":["../../../src/lib/commandclass/DoorLockCC.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EACX,mBAAmB,EAEnB,OAAO,EACP,MAAM,gBAAgB,CAAC;AACxB,O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