@zwave-js/cc 12.0.0-beta.0 → 12.0.0-beta.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/cc/AlarmSensorCC.js +13 -7
- package/build/cc/AlarmSensorCC.js.map +1 -1
- package/build/cc/AssociationCC.d.ts.map +1 -1
- package/build/cc/AssociationCC.js +70 -11
- package/build/cc/AssociationCC.js.map +1 -1
- package/build/cc/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/cc/AssociationGroupInfoCC.js +98 -11
- package/build/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/cc/BarrierOperatorCC.js +20 -10
- package/build/cc/BarrierOperatorCC.js.map +1 -1
- package/build/cc/BasicCC.js +10 -5
- package/build/cc/BasicCC.js.map +1 -1
- package/build/cc/BatteryCC.js +13 -7
- package/build/cc/BatteryCC.js.map +1 -1
- package/build/cc/BinarySensorCC.js +12 -6
- package/build/cc/BinarySensorCC.js.map +1 -1
- package/build/cc/BinarySwitchCC.js +10 -5
- package/build/cc/BinarySwitchCC.js.map +1 -1
- package/build/cc/CRC16CC.d.ts.map +1 -1
- package/build/cc/CRC16CC.js +9 -5
- package/build/cc/CRC16CC.js.map +1 -1
- package/build/cc/CentralSceneCC.js +17 -9
- package/build/cc/CentralSceneCC.js.map +1 -1
- package/build/cc/ClimateControlScheduleCC.js +21 -11
- package/build/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/cc/ClockCC.js +10 -5
- package/build/cc/ClockCC.js.map +1 -1
- package/build/cc/ColorSwitchCC.js +19 -10
- package/build/cc/ColorSwitchCC.js.map +1 -1
- package/build/cc/ConfigurationCC.js +38 -23
- package/build/cc/ConfigurationCC.js.map +1 -1
- package/build/cc/DeviceResetLocallyCC.js +6 -3
- package/build/cc/DeviceResetLocallyCC.js.map +1 -1
- package/build/cc/DoorLockCC.js +22 -12
- package/build/cc/DoorLockCC.js.map +1 -1
- package/build/cc/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/cc/DoorLockLoggingCC.js +13 -7
- package/build/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/cc/EnergyProductionCC.d.ts.map +1 -1
- package/build/cc/EnergyProductionCC.js +9 -5
- package/build/cc/EnergyProductionCC.js.map +1 -1
- package/build/cc/EntryControlCC.d.ts.map +1 -1
- package/build/cc/EntryControlCC.js +24 -14
- package/build/cc/EntryControlCC.js.map +1 -1
- package/build/cc/FirmwareUpdateMetaDataCC.js +26 -13
- package/build/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/cc/HailCC.js +2 -1
- package/build/cc/HailCC.js.map +1 -1
- package/build/cc/HumidityControlModeCC.js +14 -7
- package/build/cc/HumidityControlModeCC.js.map +1 -1
- package/build/cc/HumidityControlOperatingStateCC.js +8 -4
- package/build/cc/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/cc/HumidityControlSetpointCC.js +25 -14
- package/build/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/cc/InclusionControllerCC.d.ts.map +1 -1
- package/build/cc/InclusionControllerCC.js +10 -4
- package/build/cc/InclusionControllerCC.js.map +1 -1
- package/build/cc/IndicatorCC.d.ts.map +1 -1
- package/build/cc/IndicatorCC.js +64 -11
- package/build/cc/IndicatorCC.js.map +1 -1
- package/build/cc/IrrigationCC.js +47 -27
- package/build/cc/IrrigationCC.js.map +1 -1
- package/build/cc/LanguageCC.js +10 -5
- package/build/cc/LanguageCC.js.map +1 -1
- package/build/cc/LockCC.js +10 -5
- package/build/cc/LockCC.js.map +1 -1
- package/build/cc/ManufacturerProprietaryCC.js +5 -3
- package/build/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/cc/ManufacturerSpecificCC.js +13 -7
- package/build/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/cc/MeterCC.js +17 -10
- package/build/cc/MeterCC.js.map +1 -1
- package/build/cc/MultiChannelAssociationCC.js +17 -9
- package/build/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/cc/MultiChannelCC.d.ts.map +1 -1
- package/build/cc/MultiChannelCC.js +37 -21
- package/build/cc/MultiChannelCC.js.map +1 -1
- package/build/cc/MultiCommandCC.js +7 -4
- package/build/cc/MultiCommandCC.js.map +1 -1
- package/build/cc/MultilevelSensorCC.d.ts.map +1 -1
- package/build/cc/MultilevelSensorCC.js +17 -9
- package/build/cc/MultilevelSensorCC.js.map +1 -1
- package/build/cc/MultilevelSwitchCC.js +18 -9
- package/build/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/cc/NoOperationCC.js +4 -2
- package/build/cc/NoOperationCC.js.map +1 -1
- package/build/cc/NodeNamingCC.js +18 -10
- package/build/cc/NodeNamingCC.js.map +1 -1
- package/build/cc/NotificationCC.d.ts +3 -0
- package/build/cc/NotificationCC.d.ts.map +1 -1
- package/build/cc/NotificationCC.js +27 -14
- package/build/cc/NotificationCC.js.map +1 -1
- package/build/cc/PowerlevelCC.js +16 -8
- package/build/cc/PowerlevelCC.js.map +1 -1
- package/build/cc/ProtectionCC.js +29 -16
- package/build/cc/ProtectionCC.js.map +1 -1
- package/build/cc/SceneActivationCC.js +6 -3
- package/build/cc/SceneActivationCC.js.map +1 -1
- package/build/cc/SceneActuatorConfigurationCC.js +10 -5
- package/build/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/cc/SceneControllerConfigurationCC.js +10 -5
- package/build/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/cc/ScheduleEntryLockCC.js +38 -20
- package/build/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/cc/Security2CC.d.ts.map +1 -1
- package/build/cc/Security2CC.js +49 -32
- package/build/cc/Security2CC.js.map +1 -1
- package/build/cc/SecurityCC.d.ts.map +1 -1
- package/build/cc/SecurityCC.js +33 -19
- package/build/cc/SecurityCC.js.map +1 -1
- package/build/cc/SoundSwitchCC.d.ts.map +1 -1
- package/build/cc/SoundSwitchCC.js +25 -13
- package/build/cc/SoundSwitchCC.js.map +1 -1
- package/build/cc/SupervisionCC.d.ts.map +1 -1
- package/build/cc/SupervisionCC.js +11 -6
- package/build/cc/SupervisionCC.js.map +1 -1
- package/build/cc/ThermostatFanModeCC.js +14 -7
- package/build/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/cc/ThermostatFanStateCC.js +8 -4
- package/build/cc/ThermostatFanStateCC.js.map +1 -1
- package/build/cc/ThermostatModeCC.js +16 -9
- package/build/cc/ThermostatModeCC.js.map +1 -1
- package/build/cc/ThermostatOperatingStateCC.js +8 -4
- package/build/cc/ThermostatOperatingStateCC.js.map +1 -1
- package/build/cc/ThermostatSetbackCC.js +10 -5
- package/build/cc/ThermostatSetbackCC.js.map +1 -1
- package/build/cc/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/cc/ThermostatSetpointCC.js +22 -13
- package/build/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/cc/TimeCC.d.ts.map +1 -1
- package/build/cc/TimeCC.js +30 -9
- package/build/cc/TimeCC.js.map +1 -1
- package/build/cc/TimeParametersCC.js +10 -5
- package/build/cc/TimeParametersCC.js.map +1 -1
- package/build/cc/TransportServiceCC.js +20 -14
- package/build/cc/TransportServiceCC.js.map +1 -1
- package/build/cc/UserCodeCC.d.ts.map +1 -1
- package/build/cc/UserCodeCC.js +50 -30
- package/build/cc/UserCodeCC.js.map +1 -1
- package/build/cc/VersionCC.js +24 -14
- package/build/cc/VersionCC.js.map +1 -1
- package/build/cc/WakeUpCC.js +18 -9
- package/build/cc/WakeUpCC.js.map +1 -1
- package/build/cc/WindowCoveringCC.js +21 -12
- package/build/cc/WindowCoveringCC.js.map +1 -1
- package/build/cc/ZWavePlusCC.js +8 -4
- package/build/cc/ZWavePlusCC.js.map +1 -1
- package/build/cc/ZWaveProtocolCC.d.ts.map +1 -1
- package/build/cc/ZWaveProtocolCC.js +88 -48
- package/build/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/cc/manufacturerProprietary/FibaroCC.js +13 -7
- package/build/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
- package/build/lib/CommandClass.js +1 -1
- package/build/lib/CommandClass.js.map +1 -1
- package/build/lib/Security2/Extension.js +10 -6
- package/build/lib/Security2/Extension.js.map +1 -1
- package/package.json +15 -15
|
@@ -31,13 +31,14 @@ function bitmask2DataRate(mask) {
|
|
|
31
31
|
? core_1.ZWaveDataRate["40k"]
|
|
32
32
|
: core_1.ZWaveDataRate["9k6"];
|
|
33
33
|
}
|
|
34
|
-
let ZWaveProtocolCC =
|
|
34
|
+
let ZWaveProtocolCC = class ZWaveProtocolCC extends CommandClass_1.CommandClass {
|
|
35
35
|
};
|
|
36
|
+
exports.ZWaveProtocolCC = ZWaveProtocolCC;
|
|
36
37
|
exports.ZWaveProtocolCC = ZWaveProtocolCC = __decorate([
|
|
37
38
|
(0, CommandClassDecorators_1.commandClass)(core_1.CommandClasses["Z-Wave Protocol"]),
|
|
38
39
|
(0, CommandClassDecorators_1.implementedVersion)(1)
|
|
39
40
|
], ZWaveProtocolCC);
|
|
40
|
-
let ZWaveProtocolCCNodeInformationFrame =
|
|
41
|
+
let ZWaveProtocolCCNodeInformationFrame = class ZWaveProtocolCCNodeInformationFrame extends ZWaveProtocolCC {
|
|
41
42
|
constructor(host, options) {
|
|
42
43
|
super(host, options);
|
|
43
44
|
let nif;
|
|
@@ -79,16 +80,18 @@ let ZWaveProtocolCCNodeInformationFrame = exports.ZWaveProtocolCCNodeInformation
|
|
|
79
80
|
return super.serialize();
|
|
80
81
|
}
|
|
81
82
|
};
|
|
83
|
+
exports.ZWaveProtocolCCNodeInformationFrame = ZWaveProtocolCCNodeInformationFrame;
|
|
82
84
|
exports.ZWaveProtocolCCNodeInformationFrame = ZWaveProtocolCCNodeInformationFrame = __decorate([
|
|
83
85
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.NodeInformationFrame)
|
|
84
86
|
], ZWaveProtocolCCNodeInformationFrame);
|
|
85
|
-
let ZWaveProtocolCCRequestNodeInformationFrame =
|
|
87
|
+
let ZWaveProtocolCCRequestNodeInformationFrame = class ZWaveProtocolCCRequestNodeInformationFrame extends ZWaveProtocolCC {
|
|
86
88
|
};
|
|
89
|
+
exports.ZWaveProtocolCCRequestNodeInformationFrame = ZWaveProtocolCCRequestNodeInformationFrame;
|
|
87
90
|
exports.ZWaveProtocolCCRequestNodeInformationFrame = ZWaveProtocolCCRequestNodeInformationFrame = __decorate([
|
|
88
91
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.RequestNodeInformationFrame),
|
|
89
92
|
(0, CommandClassDecorators_1.expectedCCResponse)(ZWaveProtocolCCNodeInformationFrame)
|
|
90
93
|
], ZWaveProtocolCCRequestNodeInformationFrame);
|
|
91
|
-
let ZWaveProtocolCCAssignIDs =
|
|
94
|
+
let ZWaveProtocolCCAssignIDs = class ZWaveProtocolCCAssignIDs extends ZWaveProtocolCC {
|
|
92
95
|
constructor(host, options) {
|
|
93
96
|
super(host, options);
|
|
94
97
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -110,10 +113,11 @@ let ZWaveProtocolCCAssignIDs = exports.ZWaveProtocolCCAssignIDs = class ZWavePro
|
|
|
110
113
|
return super.serialize();
|
|
111
114
|
}
|
|
112
115
|
};
|
|
116
|
+
exports.ZWaveProtocolCCAssignIDs = ZWaveProtocolCCAssignIDs;
|
|
113
117
|
exports.ZWaveProtocolCCAssignIDs = ZWaveProtocolCCAssignIDs = __decorate([
|
|
114
118
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.AssignIDs)
|
|
115
119
|
], ZWaveProtocolCCAssignIDs);
|
|
116
|
-
let ZWaveProtocolCCFindNodesInRange =
|
|
120
|
+
let ZWaveProtocolCCFindNodesInRange = class ZWaveProtocolCCFindNodesInRange extends ZWaveProtocolCC {
|
|
117
121
|
constructor(host, options) {
|
|
118
122
|
super(host, options);
|
|
119
123
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -121,8 +125,8 @@ let ZWaveProtocolCCFindNodesInRange = exports.ZWaveProtocolCCFindNodesInRange =
|
|
|
121
125
|
const speedPresent = this.payload[0] & 128;
|
|
122
126
|
const bitmaskLength = this.payload[0] & 31;
|
|
123
127
|
(0, core_1.validatePayload)(this.payload.length >= 1 + bitmaskLength);
|
|
124
|
-
this.candidateNodeIds = (0, core_1.parseBitMask)(this.payload.
|
|
125
|
-
const rest = this.payload.
|
|
128
|
+
this.candidateNodeIds = (0, core_1.parseBitMask)(this.payload.subarray(1, 1 + bitmaskLength));
|
|
129
|
+
const rest = this.payload.subarray(1 + bitmaskLength);
|
|
126
130
|
if (speedPresent) {
|
|
127
131
|
(0, core_1.validatePayload)(rest.length >= 1);
|
|
128
132
|
if (rest.length === 1) {
|
|
@@ -166,17 +170,18 @@ let ZWaveProtocolCCFindNodesInRange = exports.ZWaveProtocolCCFindNodesInRange =
|
|
|
166
170
|
return super.serialize();
|
|
167
171
|
}
|
|
168
172
|
};
|
|
173
|
+
exports.ZWaveProtocolCCFindNodesInRange = ZWaveProtocolCCFindNodesInRange;
|
|
169
174
|
exports.ZWaveProtocolCCFindNodesInRange = ZWaveProtocolCCFindNodesInRange = __decorate([
|
|
170
175
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.FindNodesInRange)
|
|
171
176
|
], ZWaveProtocolCCFindNodesInRange);
|
|
172
|
-
let ZWaveProtocolCCRangeInfo =
|
|
177
|
+
let ZWaveProtocolCCRangeInfo = class ZWaveProtocolCCRangeInfo extends ZWaveProtocolCC {
|
|
173
178
|
constructor(host, options) {
|
|
174
179
|
super(host, options);
|
|
175
180
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
176
181
|
(0, core_1.validatePayload)(this.payload.length >= 1);
|
|
177
182
|
const bitmaskLength = this.payload[0] & 31;
|
|
178
183
|
(0, core_1.validatePayload)(this.payload.length >= 1 + bitmaskLength);
|
|
179
|
-
this.neighborNodeIds = (0, core_1.parseBitMask)(this.payload.
|
|
184
|
+
this.neighborNodeIds = (0, core_1.parseBitMask)(this.payload.subarray(1, 1 + bitmaskLength));
|
|
180
185
|
if (this.payload.length >= 2 + bitmaskLength) {
|
|
181
186
|
this.wakeUpTime = (0, _Types_1.parseWakeUpTime)(this.payload[1 + bitmaskLength]);
|
|
182
187
|
}
|
|
@@ -200,16 +205,18 @@ let ZWaveProtocolCCRangeInfo = exports.ZWaveProtocolCCRangeInfo = class ZWavePro
|
|
|
200
205
|
return super.serialize();
|
|
201
206
|
}
|
|
202
207
|
};
|
|
208
|
+
exports.ZWaveProtocolCCRangeInfo = ZWaveProtocolCCRangeInfo;
|
|
203
209
|
exports.ZWaveProtocolCCRangeInfo = ZWaveProtocolCCRangeInfo = __decorate([
|
|
204
210
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.RangeInfo)
|
|
205
211
|
], ZWaveProtocolCCRangeInfo);
|
|
206
|
-
let ZWaveProtocolCCGetNodesInRange =
|
|
212
|
+
let ZWaveProtocolCCGetNodesInRange = class ZWaveProtocolCCGetNodesInRange extends ZWaveProtocolCC {
|
|
207
213
|
};
|
|
214
|
+
exports.ZWaveProtocolCCGetNodesInRange = ZWaveProtocolCCGetNodesInRange;
|
|
208
215
|
exports.ZWaveProtocolCCGetNodesInRange = ZWaveProtocolCCGetNodesInRange = __decorate([
|
|
209
216
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.GetNodesInRange),
|
|
210
217
|
(0, CommandClassDecorators_1.expectedCCResponse)(ZWaveProtocolCCRangeInfo)
|
|
211
218
|
], ZWaveProtocolCCGetNodesInRange);
|
|
212
|
-
let ZWaveProtocolCCCommandComplete =
|
|
219
|
+
let ZWaveProtocolCCCommandComplete = class ZWaveProtocolCCCommandComplete extends ZWaveProtocolCC {
|
|
213
220
|
constructor(host, options) {
|
|
214
221
|
super(host, options);
|
|
215
222
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -226,10 +233,11 @@ let ZWaveProtocolCCCommandComplete = exports.ZWaveProtocolCCCommandComplete = cl
|
|
|
226
233
|
return super.serialize();
|
|
227
234
|
}
|
|
228
235
|
};
|
|
236
|
+
exports.ZWaveProtocolCCCommandComplete = ZWaveProtocolCCCommandComplete;
|
|
229
237
|
exports.ZWaveProtocolCCCommandComplete = ZWaveProtocolCCCommandComplete = __decorate([
|
|
230
238
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.CommandComplete)
|
|
231
239
|
], ZWaveProtocolCCCommandComplete);
|
|
232
|
-
let ZWaveProtocolCCTransferPresentation =
|
|
240
|
+
let ZWaveProtocolCCTransferPresentation = class ZWaveProtocolCCTransferPresentation extends ZWaveProtocolCC {
|
|
233
241
|
constructor(host, options) {
|
|
234
242
|
super(host, options);
|
|
235
243
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -260,10 +268,11 @@ let ZWaveProtocolCCTransferPresentation = exports.ZWaveProtocolCCTransferPresent
|
|
|
260
268
|
return super.serialize();
|
|
261
269
|
}
|
|
262
270
|
};
|
|
271
|
+
exports.ZWaveProtocolCCTransferPresentation = ZWaveProtocolCCTransferPresentation;
|
|
263
272
|
exports.ZWaveProtocolCCTransferPresentation = ZWaveProtocolCCTransferPresentation = __decorate([
|
|
264
273
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.TransferPresentation)
|
|
265
274
|
], ZWaveProtocolCCTransferPresentation);
|
|
266
|
-
let ZWaveProtocolCCTransferNodeInformation =
|
|
275
|
+
let ZWaveProtocolCCTransferNodeInformation = class ZWaveProtocolCCTransferNodeInformation extends ZWaveProtocolCC {
|
|
267
276
|
constructor(host, options) {
|
|
268
277
|
super(host, options);
|
|
269
278
|
let info;
|
|
@@ -271,7 +280,7 @@ let ZWaveProtocolCCTransferNodeInformation = exports.ZWaveProtocolCCTransferNode
|
|
|
271
280
|
(0, core_1.validatePayload)(this.payload.length >= 2);
|
|
272
281
|
this.sequenceNumber = this.payload[0];
|
|
273
282
|
this.sourceNodeId = this.payload[1];
|
|
274
|
-
info = (0, core_1.parseNodeProtocolInfoAndDeviceClass)(this.payload.
|
|
283
|
+
info = (0, core_1.parseNodeProtocolInfoAndDeviceClass)(this.payload.subarray(2)).info;
|
|
275
284
|
}
|
|
276
285
|
else {
|
|
277
286
|
this.sequenceNumber = options.sequenceNumber;
|
|
@@ -313,10 +322,11 @@ let ZWaveProtocolCCTransferNodeInformation = exports.ZWaveProtocolCCTransferNode
|
|
|
313
322
|
return super.serialize();
|
|
314
323
|
}
|
|
315
324
|
};
|
|
325
|
+
exports.ZWaveProtocolCCTransferNodeInformation = ZWaveProtocolCCTransferNodeInformation;
|
|
316
326
|
exports.ZWaveProtocolCCTransferNodeInformation = ZWaveProtocolCCTransferNodeInformation = __decorate([
|
|
317
327
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.TransferNodeInformation)
|
|
318
328
|
], ZWaveProtocolCCTransferNodeInformation);
|
|
319
|
-
let ZWaveProtocolCCTransferRangeInformation =
|
|
329
|
+
let ZWaveProtocolCCTransferRangeInformation = class ZWaveProtocolCCTransferRangeInformation extends ZWaveProtocolCC {
|
|
320
330
|
constructor(host, options) {
|
|
321
331
|
super(host, options);
|
|
322
332
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -325,7 +335,7 @@ let ZWaveProtocolCCTransferRangeInformation = exports.ZWaveProtocolCCTransferRan
|
|
|
325
335
|
this.testedNodeId = this.payload[1];
|
|
326
336
|
const bitmaskLength = this.payload[2];
|
|
327
337
|
(0, core_1.validatePayload)(this.payload.length >= 3 + bitmaskLength);
|
|
328
|
-
this.neighborNodeIds = (0, core_1.parseBitMask)(this.payload.
|
|
338
|
+
this.neighborNodeIds = (0, core_1.parseBitMask)(this.payload.subarray(3, 3 + bitmaskLength));
|
|
329
339
|
}
|
|
330
340
|
else {
|
|
331
341
|
this.sequenceNumber = options.sequenceNumber;
|
|
@@ -349,10 +359,11 @@ let ZWaveProtocolCCTransferRangeInformation = exports.ZWaveProtocolCCTransferRan
|
|
|
349
359
|
return super.serialize();
|
|
350
360
|
}
|
|
351
361
|
};
|
|
362
|
+
exports.ZWaveProtocolCCTransferRangeInformation = ZWaveProtocolCCTransferRangeInformation;
|
|
352
363
|
exports.ZWaveProtocolCCTransferRangeInformation = ZWaveProtocolCCTransferRangeInformation = __decorate([
|
|
353
364
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.TransferRangeInformation)
|
|
354
365
|
], ZWaveProtocolCCTransferRangeInformation);
|
|
355
|
-
let ZWaveProtocolCCTransferEnd =
|
|
366
|
+
let ZWaveProtocolCCTransferEnd = class ZWaveProtocolCCTransferEnd extends ZWaveProtocolCC {
|
|
356
367
|
constructor(host, options) {
|
|
357
368
|
super(host, options);
|
|
358
369
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -369,10 +380,11 @@ let ZWaveProtocolCCTransferEnd = exports.ZWaveProtocolCCTransferEnd = class ZWav
|
|
|
369
380
|
return super.serialize();
|
|
370
381
|
}
|
|
371
382
|
};
|
|
383
|
+
exports.ZWaveProtocolCCTransferEnd = ZWaveProtocolCCTransferEnd;
|
|
372
384
|
exports.ZWaveProtocolCCTransferEnd = ZWaveProtocolCCTransferEnd = __decorate([
|
|
373
385
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.TransferEnd)
|
|
374
386
|
], ZWaveProtocolCCTransferEnd);
|
|
375
|
-
let ZWaveProtocolCCAssignReturnRoute =
|
|
387
|
+
let ZWaveProtocolCCAssignReturnRoute = class ZWaveProtocolCCAssignReturnRoute extends ZWaveProtocolCC {
|
|
376
388
|
constructor(host, options) {
|
|
377
389
|
super(host, options);
|
|
378
390
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -380,7 +392,7 @@ let ZWaveProtocolCCAssignReturnRoute = exports.ZWaveProtocolCCAssignReturnRoute
|
|
|
380
392
|
this.destinationNodeId = this.payload[0];
|
|
381
393
|
this.routeIndex = this.payload[1] >>> 4;
|
|
382
394
|
const numRepeaters = this.payload[1] & 0b1111;
|
|
383
|
-
this.repeaters = [...this.payload.
|
|
395
|
+
this.repeaters = [...this.payload.subarray(2, 2 + numRepeaters)];
|
|
384
396
|
const speedAndWakeup = this.payload[2 + numRepeaters];
|
|
385
397
|
this.destinationSpeed = bitmask2DataRate((speedAndWakeup >>> 3) & 0b111);
|
|
386
398
|
this.destinationWakeUp = (speedAndWakeup >>> 1) & 0b11;
|
|
@@ -414,17 +426,18 @@ let ZWaveProtocolCCAssignReturnRoute = exports.ZWaveProtocolCCAssignReturnRoute
|
|
|
414
426
|
return super.serialize();
|
|
415
427
|
}
|
|
416
428
|
};
|
|
429
|
+
exports.ZWaveProtocolCCAssignReturnRoute = ZWaveProtocolCCAssignReturnRoute;
|
|
417
430
|
exports.ZWaveProtocolCCAssignReturnRoute = ZWaveProtocolCCAssignReturnRoute = __decorate([
|
|
418
431
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.AssignReturnRoute)
|
|
419
432
|
], ZWaveProtocolCCAssignReturnRoute);
|
|
420
|
-
let ZWaveProtocolCCNewNodeRegistered =
|
|
433
|
+
let ZWaveProtocolCCNewNodeRegistered = class ZWaveProtocolCCNewNodeRegistered extends ZWaveProtocolCC {
|
|
421
434
|
constructor(host, options) {
|
|
422
435
|
super(host, options);
|
|
423
436
|
let nif;
|
|
424
437
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
425
438
|
(0, core_1.validatePayload)(this.payload.length >= 1);
|
|
426
439
|
this.newNodeId = this.payload[0];
|
|
427
|
-
nif = (0, core_1.parseNodeInformationFrame)(this.payload.
|
|
440
|
+
nif = (0, core_1.parseNodeInformationFrame)(this.payload.subarray(1));
|
|
428
441
|
}
|
|
429
442
|
else {
|
|
430
443
|
this.newNodeId = options.newNodeId;
|
|
@@ -466,17 +479,20 @@ let ZWaveProtocolCCNewNodeRegistered = exports.ZWaveProtocolCCNewNodeRegistered
|
|
|
466
479
|
return super.serialize();
|
|
467
480
|
}
|
|
468
481
|
};
|
|
482
|
+
exports.ZWaveProtocolCCNewNodeRegistered = ZWaveProtocolCCNewNodeRegistered;
|
|
469
483
|
exports.ZWaveProtocolCCNewNodeRegistered = ZWaveProtocolCCNewNodeRegistered = __decorate([
|
|
470
484
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.NewNodeRegistered)
|
|
471
485
|
], ZWaveProtocolCCNewNodeRegistered);
|
|
472
|
-
let ZWaveProtocolCCNewRangeRegistered =
|
|
486
|
+
let ZWaveProtocolCCNewRangeRegistered = class ZWaveProtocolCCNewRangeRegistered extends ZWaveProtocolCC {
|
|
473
487
|
constructor(host, options) {
|
|
474
488
|
super(host, options);
|
|
475
489
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
476
490
|
(0, core_1.validatePayload)(this.payload.length >= 2);
|
|
477
491
|
this.testedNodeId = this.payload[0];
|
|
478
492
|
const numNeighbors = this.payload[1];
|
|
479
|
-
this.neighborNodeIds = [
|
|
493
|
+
this.neighborNodeIds = [
|
|
494
|
+
...this.payload.subarray(2, 2 + numNeighbors),
|
|
495
|
+
];
|
|
480
496
|
}
|
|
481
497
|
else {
|
|
482
498
|
this.testedNodeId = options.testedNodeId;
|
|
@@ -494,10 +510,11 @@ let ZWaveProtocolCCNewRangeRegistered = exports.ZWaveProtocolCCNewRangeRegistere
|
|
|
494
510
|
return super.serialize();
|
|
495
511
|
}
|
|
496
512
|
};
|
|
513
|
+
exports.ZWaveProtocolCCNewRangeRegistered = ZWaveProtocolCCNewRangeRegistered;
|
|
497
514
|
exports.ZWaveProtocolCCNewRangeRegistered = ZWaveProtocolCCNewRangeRegistered = __decorate([
|
|
498
515
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.NewRangeRegistered)
|
|
499
516
|
], ZWaveProtocolCCNewRangeRegistered);
|
|
500
|
-
let ZWaveProtocolCCTransferNewPrimaryControllerComplete =
|
|
517
|
+
let ZWaveProtocolCCTransferNewPrimaryControllerComplete = class ZWaveProtocolCCTransferNewPrimaryControllerComplete extends ZWaveProtocolCC {
|
|
501
518
|
constructor(host, options) {
|
|
502
519
|
super(host, options);
|
|
503
520
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -514,15 +531,17 @@ let ZWaveProtocolCCTransferNewPrimaryControllerComplete = exports.ZWaveProtocolC
|
|
|
514
531
|
return super.serialize();
|
|
515
532
|
}
|
|
516
533
|
};
|
|
534
|
+
exports.ZWaveProtocolCCTransferNewPrimaryControllerComplete = ZWaveProtocolCCTransferNewPrimaryControllerComplete;
|
|
517
535
|
exports.ZWaveProtocolCCTransferNewPrimaryControllerComplete = ZWaveProtocolCCTransferNewPrimaryControllerComplete = __decorate([
|
|
518
536
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.TransferNewPrimaryControllerComplete)
|
|
519
537
|
], ZWaveProtocolCCTransferNewPrimaryControllerComplete);
|
|
520
|
-
let ZWaveProtocolCCAutomaticControllerUpdateStart =
|
|
538
|
+
let ZWaveProtocolCCAutomaticControllerUpdateStart = class ZWaveProtocolCCAutomaticControllerUpdateStart extends ZWaveProtocolCC {
|
|
521
539
|
};
|
|
540
|
+
exports.ZWaveProtocolCCAutomaticControllerUpdateStart = ZWaveProtocolCCAutomaticControllerUpdateStart;
|
|
522
541
|
exports.ZWaveProtocolCCAutomaticControllerUpdateStart = ZWaveProtocolCCAutomaticControllerUpdateStart = __decorate([
|
|
523
542
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.AutomaticControllerUpdateStart)
|
|
524
543
|
], ZWaveProtocolCCAutomaticControllerUpdateStart);
|
|
525
|
-
let ZWaveProtocolCCSUCNodeID =
|
|
544
|
+
let ZWaveProtocolCCSUCNodeID = class ZWaveProtocolCCSUCNodeID extends ZWaveProtocolCC {
|
|
526
545
|
constructor(host, options) {
|
|
527
546
|
super(host, options);
|
|
528
547
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -543,10 +562,11 @@ let ZWaveProtocolCCSUCNodeID = exports.ZWaveProtocolCCSUCNodeID = class ZWavePro
|
|
|
543
562
|
return super.serialize();
|
|
544
563
|
}
|
|
545
564
|
};
|
|
565
|
+
exports.ZWaveProtocolCCSUCNodeID = ZWaveProtocolCCSUCNodeID;
|
|
546
566
|
exports.ZWaveProtocolCCSUCNodeID = ZWaveProtocolCCSUCNodeID = __decorate([
|
|
547
567
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.SUCNodeID)
|
|
548
568
|
], ZWaveProtocolCCSUCNodeID);
|
|
549
|
-
let ZWaveProtocolCCSetSUC =
|
|
569
|
+
let ZWaveProtocolCCSetSUC = class ZWaveProtocolCCSetSUC extends ZWaveProtocolCC {
|
|
550
570
|
constructor(host, options) {
|
|
551
571
|
super(host, options);
|
|
552
572
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -565,10 +585,11 @@ let ZWaveProtocolCCSetSUC = exports.ZWaveProtocolCCSetSUC = class ZWaveProtocolC
|
|
|
565
585
|
return super.serialize();
|
|
566
586
|
}
|
|
567
587
|
};
|
|
588
|
+
exports.ZWaveProtocolCCSetSUC = ZWaveProtocolCCSetSUC;
|
|
568
589
|
exports.ZWaveProtocolCCSetSUC = ZWaveProtocolCCSetSUC = __decorate([
|
|
569
590
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.SetSUC)
|
|
570
591
|
], ZWaveProtocolCCSetSUC);
|
|
571
|
-
let ZWaveProtocolCCSetSUCAck =
|
|
592
|
+
let ZWaveProtocolCCSetSUCAck = class ZWaveProtocolCCSetSUCAck extends ZWaveProtocolCC {
|
|
572
593
|
constructor(host, options) {
|
|
573
594
|
super(host, options);
|
|
574
595
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -592,20 +613,22 @@ let ZWaveProtocolCCSetSUCAck = exports.ZWaveProtocolCCSetSUCAck = class ZWavePro
|
|
|
592
613
|
return super.serialize();
|
|
593
614
|
}
|
|
594
615
|
};
|
|
616
|
+
exports.ZWaveProtocolCCSetSUCAck = ZWaveProtocolCCSetSUCAck;
|
|
595
617
|
exports.ZWaveProtocolCCSetSUCAck = ZWaveProtocolCCSetSUCAck = __decorate([
|
|
596
618
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.SetSUCAck)
|
|
597
619
|
], ZWaveProtocolCCSetSUCAck);
|
|
598
|
-
let ZWaveProtocolCCAssignSUCReturnRoute =
|
|
620
|
+
let ZWaveProtocolCCAssignSUCReturnRoute = class ZWaveProtocolCCAssignSUCReturnRoute extends ZWaveProtocolCCAssignReturnRoute {
|
|
599
621
|
};
|
|
622
|
+
exports.ZWaveProtocolCCAssignSUCReturnRoute = ZWaveProtocolCCAssignSUCReturnRoute;
|
|
600
623
|
exports.ZWaveProtocolCCAssignSUCReturnRoute = ZWaveProtocolCCAssignSUCReturnRoute = __decorate([
|
|
601
624
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.AssignSUCReturnRoute)
|
|
602
625
|
], ZWaveProtocolCCAssignSUCReturnRoute);
|
|
603
|
-
let ZWaveProtocolCCStaticRouteRequest =
|
|
626
|
+
let ZWaveProtocolCCStaticRouteRequest = class ZWaveProtocolCCStaticRouteRequest extends ZWaveProtocolCC {
|
|
604
627
|
constructor(host, options) {
|
|
605
628
|
super(host, options);
|
|
606
629
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
607
630
|
(0, core_1.validatePayload)(this.payload.length >= 5);
|
|
608
|
-
this.nodeIds = [...this.payload.
|
|
631
|
+
this.nodeIds = [...this.payload.subarray(0, 5)].filter((id) => id > 0 && id <= core_1.MAX_NODES);
|
|
609
632
|
}
|
|
610
633
|
else {
|
|
611
634
|
if (options.nodeIds.some((n) => n < 1 || n > core_1.MAX_NODES)) {
|
|
@@ -623,10 +646,11 @@ let ZWaveProtocolCCStaticRouteRequest = exports.ZWaveProtocolCCStaticRouteReques
|
|
|
623
646
|
return super.serialize();
|
|
624
647
|
}
|
|
625
648
|
};
|
|
649
|
+
exports.ZWaveProtocolCCStaticRouteRequest = ZWaveProtocolCCStaticRouteRequest;
|
|
626
650
|
exports.ZWaveProtocolCCStaticRouteRequest = ZWaveProtocolCCStaticRouteRequest = __decorate([
|
|
627
651
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.StaticRouteRequest)
|
|
628
652
|
], ZWaveProtocolCCStaticRouteRequest);
|
|
629
|
-
let ZWaveProtocolCCLost =
|
|
653
|
+
let ZWaveProtocolCCLost = class ZWaveProtocolCCLost extends ZWaveProtocolCC {
|
|
630
654
|
constructor(host, options) {
|
|
631
655
|
super(host, options);
|
|
632
656
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -643,10 +667,11 @@ let ZWaveProtocolCCLost = exports.ZWaveProtocolCCLost = class ZWaveProtocolCCLos
|
|
|
643
667
|
return super.serialize();
|
|
644
668
|
}
|
|
645
669
|
};
|
|
670
|
+
exports.ZWaveProtocolCCLost = ZWaveProtocolCCLost;
|
|
646
671
|
exports.ZWaveProtocolCCLost = ZWaveProtocolCCLost = __decorate([
|
|
647
672
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.Lost)
|
|
648
673
|
], ZWaveProtocolCCLost);
|
|
649
|
-
let ZWaveProtocolCCAcceptLost =
|
|
674
|
+
let ZWaveProtocolCCAcceptLost = class ZWaveProtocolCCAcceptLost extends ZWaveProtocolCC {
|
|
650
675
|
constructor(host, options) {
|
|
651
676
|
super(host, options);
|
|
652
677
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -664,10 +689,11 @@ let ZWaveProtocolCCAcceptLost = exports.ZWaveProtocolCCAcceptLost = class ZWaveP
|
|
|
664
689
|
return super.serialize();
|
|
665
690
|
}
|
|
666
691
|
};
|
|
692
|
+
exports.ZWaveProtocolCCAcceptLost = ZWaveProtocolCCAcceptLost;
|
|
667
693
|
exports.ZWaveProtocolCCAcceptLost = ZWaveProtocolCCAcceptLost = __decorate([
|
|
668
694
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.AcceptLost)
|
|
669
695
|
], ZWaveProtocolCCAcceptLost);
|
|
670
|
-
let ZWaveProtocolCCNOPPower =
|
|
696
|
+
let ZWaveProtocolCCNOPPower = class ZWaveProtocolCCNOPPower extends ZWaveProtocolCC {
|
|
671
697
|
constructor(host, options) {
|
|
672
698
|
super(host, options);
|
|
673
699
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -714,17 +740,20 @@ let ZWaveProtocolCCNOPPower = exports.ZWaveProtocolCCNOPPower = class ZWaveProto
|
|
|
714
740
|
return super.serialize();
|
|
715
741
|
}
|
|
716
742
|
};
|
|
743
|
+
exports.ZWaveProtocolCCNOPPower = ZWaveProtocolCCNOPPower;
|
|
717
744
|
exports.ZWaveProtocolCCNOPPower = ZWaveProtocolCCNOPPower = __decorate([
|
|
718
745
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.NOPPower)
|
|
719
746
|
], ZWaveProtocolCCNOPPower);
|
|
720
|
-
let ZWaveProtocolCCReservedIDs =
|
|
747
|
+
let ZWaveProtocolCCReservedIDs = class ZWaveProtocolCCReservedIDs extends ZWaveProtocolCC {
|
|
721
748
|
constructor(host, options) {
|
|
722
749
|
super(host, options);
|
|
723
750
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
724
751
|
(0, core_1.validatePayload)(this.payload.length >= 1);
|
|
725
752
|
const numNodeIDs = this.payload[0];
|
|
726
753
|
(0, core_1.validatePayload)(this.payload.length >= 1 + numNodeIDs);
|
|
727
|
-
this.reservedNodeIDs = [
|
|
754
|
+
this.reservedNodeIDs = [
|
|
755
|
+
...this.payload.subarray(1, 1 + numNodeIDs),
|
|
756
|
+
];
|
|
728
757
|
}
|
|
729
758
|
else {
|
|
730
759
|
this.reservedNodeIDs = options.reservedNodeIDs;
|
|
@@ -739,10 +768,11 @@ let ZWaveProtocolCCReservedIDs = exports.ZWaveProtocolCCReservedIDs = class ZWav
|
|
|
739
768
|
return super.serialize();
|
|
740
769
|
}
|
|
741
770
|
};
|
|
771
|
+
exports.ZWaveProtocolCCReservedIDs = ZWaveProtocolCCReservedIDs;
|
|
742
772
|
exports.ZWaveProtocolCCReservedIDs = ZWaveProtocolCCReservedIDs = __decorate([
|
|
743
773
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.ReservedIDs)
|
|
744
774
|
], ZWaveProtocolCCReservedIDs);
|
|
745
|
-
let ZWaveProtocolCCReserveNodeIDs =
|
|
775
|
+
let ZWaveProtocolCCReserveNodeIDs = class ZWaveProtocolCCReserveNodeIDs extends ZWaveProtocolCC {
|
|
746
776
|
constructor(host, options) {
|
|
747
777
|
super(host, options);
|
|
748
778
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -759,11 +789,12 @@ let ZWaveProtocolCCReserveNodeIDs = exports.ZWaveProtocolCCReserveNodeIDs = clas
|
|
|
759
789
|
return super.serialize();
|
|
760
790
|
}
|
|
761
791
|
};
|
|
792
|
+
exports.ZWaveProtocolCCReserveNodeIDs = ZWaveProtocolCCReserveNodeIDs;
|
|
762
793
|
exports.ZWaveProtocolCCReserveNodeIDs = ZWaveProtocolCCReserveNodeIDs = __decorate([
|
|
763
794
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.ReserveNodeIDs),
|
|
764
795
|
(0, CommandClassDecorators_1.expectedCCResponse)(ZWaveProtocolCCReservedIDs)
|
|
765
796
|
], ZWaveProtocolCCReserveNodeIDs);
|
|
766
|
-
let ZWaveProtocolCCNodesExistReply =
|
|
797
|
+
let ZWaveProtocolCCNodesExistReply = class ZWaveProtocolCCNodesExistReply extends ZWaveProtocolCC {
|
|
767
798
|
constructor(host, options) {
|
|
768
799
|
super(host, options);
|
|
769
800
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -786,13 +817,14 @@ let ZWaveProtocolCCNodesExistReply = exports.ZWaveProtocolCCNodesExistReply = cl
|
|
|
786
817
|
return super.serialize();
|
|
787
818
|
}
|
|
788
819
|
};
|
|
820
|
+
exports.ZWaveProtocolCCNodesExistReply = ZWaveProtocolCCNodesExistReply;
|
|
789
821
|
exports.ZWaveProtocolCCNodesExistReply = ZWaveProtocolCCNodesExistReply = __decorate([
|
|
790
822
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.NodesExistReply)
|
|
791
823
|
], ZWaveProtocolCCNodesExistReply);
|
|
792
824
|
function testResponseForZWaveProtocolNodesExist(sent, received) {
|
|
793
825
|
return received.nodeMaskType === sent.nodeMaskType;
|
|
794
826
|
}
|
|
795
|
-
let ZWaveProtocolCCNodesExist =
|
|
827
|
+
let ZWaveProtocolCCNodesExist = class ZWaveProtocolCCNodesExist extends ZWaveProtocolCC {
|
|
796
828
|
constructor(host, options) {
|
|
797
829
|
super(host, options);
|
|
798
830
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -800,7 +832,7 @@ let ZWaveProtocolCCNodesExist = exports.ZWaveProtocolCCNodesExist = class ZWaveP
|
|
|
800
832
|
this.nodeMaskType = this.payload[0];
|
|
801
833
|
const numNodeIDs = this.payload[1];
|
|
802
834
|
(0, core_1.validatePayload)(this.payload.length >= 2 + numNodeIDs);
|
|
803
|
-
this.nodeIDs = [...this.payload.
|
|
835
|
+
this.nodeIDs = [...this.payload.subarray(2, 2 + numNodeIDs)];
|
|
804
836
|
}
|
|
805
837
|
else {
|
|
806
838
|
this.nodeMaskType = options.nodeMaskType;
|
|
@@ -818,11 +850,12 @@ let ZWaveProtocolCCNodesExist = exports.ZWaveProtocolCCNodesExist = class ZWaveP
|
|
|
818
850
|
return super.serialize();
|
|
819
851
|
}
|
|
820
852
|
};
|
|
853
|
+
exports.ZWaveProtocolCCNodesExist = ZWaveProtocolCCNodesExist;
|
|
821
854
|
exports.ZWaveProtocolCCNodesExist = ZWaveProtocolCCNodesExist = __decorate([
|
|
822
855
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.NodesExist),
|
|
823
856
|
(0, CommandClassDecorators_1.expectedCCResponse)(ZWaveProtocolCCNodesExistReply, testResponseForZWaveProtocolNodesExist)
|
|
824
857
|
], ZWaveProtocolCCNodesExist);
|
|
825
|
-
let ZWaveProtocolCCSetNWIMode =
|
|
858
|
+
let ZWaveProtocolCCSetNWIMode = class ZWaveProtocolCCSetNWIMode extends ZWaveProtocolCC {
|
|
826
859
|
constructor(host, options) {
|
|
827
860
|
super(host, options);
|
|
828
861
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -845,15 +878,17 @@ let ZWaveProtocolCCSetNWIMode = exports.ZWaveProtocolCCSetNWIMode = class ZWaveP
|
|
|
845
878
|
return super.serialize();
|
|
846
879
|
}
|
|
847
880
|
};
|
|
881
|
+
exports.ZWaveProtocolCCSetNWIMode = ZWaveProtocolCCSetNWIMode;
|
|
848
882
|
exports.ZWaveProtocolCCSetNWIMode = ZWaveProtocolCCSetNWIMode = __decorate([
|
|
849
883
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.SetNWIMode)
|
|
850
884
|
], ZWaveProtocolCCSetNWIMode);
|
|
851
|
-
let ZWaveProtocolCCExcludeRequest =
|
|
885
|
+
let ZWaveProtocolCCExcludeRequest = class ZWaveProtocolCCExcludeRequest extends ZWaveProtocolCCNodeInformationFrame {
|
|
852
886
|
};
|
|
887
|
+
exports.ZWaveProtocolCCExcludeRequest = ZWaveProtocolCCExcludeRequest;
|
|
853
888
|
exports.ZWaveProtocolCCExcludeRequest = ZWaveProtocolCCExcludeRequest = __decorate([
|
|
854
889
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.ExcludeRequest)
|
|
855
890
|
], ZWaveProtocolCCExcludeRequest);
|
|
856
|
-
let ZWaveProtocolCCAssignReturnRoutePriority =
|
|
891
|
+
let ZWaveProtocolCCAssignReturnRoutePriority = class ZWaveProtocolCCAssignReturnRoutePriority extends ZWaveProtocolCC {
|
|
857
892
|
constructor(host, options) {
|
|
858
893
|
super(host, options);
|
|
859
894
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -873,20 +908,22 @@ let ZWaveProtocolCCAssignReturnRoutePriority = exports.ZWaveProtocolCCAssignRetu
|
|
|
873
908
|
return super.serialize();
|
|
874
909
|
}
|
|
875
910
|
};
|
|
911
|
+
exports.ZWaveProtocolCCAssignReturnRoutePriority = ZWaveProtocolCCAssignReturnRoutePriority;
|
|
876
912
|
exports.ZWaveProtocolCCAssignReturnRoutePriority = ZWaveProtocolCCAssignReturnRoutePriority = __decorate([
|
|
877
913
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.AssignReturnRoutePriority)
|
|
878
914
|
], ZWaveProtocolCCAssignReturnRoutePriority);
|
|
879
|
-
let ZWaveProtocolCCAssignSUCReturnRoutePriority =
|
|
915
|
+
let ZWaveProtocolCCAssignSUCReturnRoutePriority = class ZWaveProtocolCCAssignSUCReturnRoutePriority extends ZWaveProtocolCCAssignReturnRoutePriority {
|
|
880
916
|
};
|
|
917
|
+
exports.ZWaveProtocolCCAssignSUCReturnRoutePriority = ZWaveProtocolCCAssignSUCReturnRoutePriority;
|
|
881
918
|
exports.ZWaveProtocolCCAssignSUCReturnRoutePriority = ZWaveProtocolCCAssignSUCReturnRoutePriority = __decorate([
|
|
882
919
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.AssignSUCReturnRoutePriority)
|
|
883
920
|
], ZWaveProtocolCCAssignSUCReturnRoutePriority);
|
|
884
|
-
let ZWaveProtocolCCSmartStartIncludedNodeInformation =
|
|
921
|
+
let ZWaveProtocolCCSmartStartIncludedNodeInformation = class ZWaveProtocolCCSmartStartIncludedNodeInformation extends ZWaveProtocolCC {
|
|
885
922
|
constructor(host, options) {
|
|
886
923
|
super(host, options);
|
|
887
924
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
888
925
|
(0, core_1.validatePayload)(this.payload.length >= 4);
|
|
889
|
-
this.nwiHomeId = this.payload.
|
|
926
|
+
this.nwiHomeId = this.payload.subarray(0, 4);
|
|
890
927
|
}
|
|
891
928
|
else {
|
|
892
929
|
if (options.nwiHomeId.length !== 4) {
|
|
@@ -901,16 +938,19 @@ let ZWaveProtocolCCSmartStartIncludedNodeInformation = exports.ZWaveProtocolCCSm
|
|
|
901
938
|
return super.serialize();
|
|
902
939
|
}
|
|
903
940
|
};
|
|
941
|
+
exports.ZWaveProtocolCCSmartStartIncludedNodeInformation = ZWaveProtocolCCSmartStartIncludedNodeInformation;
|
|
904
942
|
exports.ZWaveProtocolCCSmartStartIncludedNodeInformation = ZWaveProtocolCCSmartStartIncludedNodeInformation = __decorate([
|
|
905
943
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.SmartStartIncludedNodeInformation)
|
|
906
944
|
], ZWaveProtocolCCSmartStartIncludedNodeInformation);
|
|
907
|
-
let ZWaveProtocolCCSmartStartPrime =
|
|
945
|
+
let ZWaveProtocolCCSmartStartPrime = class ZWaveProtocolCCSmartStartPrime extends ZWaveProtocolCCNodeInformationFrame {
|
|
908
946
|
};
|
|
947
|
+
exports.ZWaveProtocolCCSmartStartPrime = ZWaveProtocolCCSmartStartPrime;
|
|
909
948
|
exports.ZWaveProtocolCCSmartStartPrime = ZWaveProtocolCCSmartStartPrime = __decorate([
|
|
910
949
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.SmartStartPrime)
|
|
911
950
|
], ZWaveProtocolCCSmartStartPrime);
|
|
912
|
-
let ZWaveProtocolCCSmartStartInclusionRequest =
|
|
951
|
+
let ZWaveProtocolCCSmartStartInclusionRequest = class ZWaveProtocolCCSmartStartInclusionRequest extends ZWaveProtocolCCNodeInformationFrame {
|
|
913
952
|
};
|
|
953
|
+
exports.ZWaveProtocolCCSmartStartInclusionRequest = ZWaveProtocolCCSmartStartInclusionRequest;
|
|
914
954
|
exports.ZWaveProtocolCCSmartStartInclusionRequest = ZWaveProtocolCCSmartStartInclusionRequest = __decorate([
|
|
915
955
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.SmartStartInclusionRequest)
|
|
916
956
|
], ZWaveProtocolCCSmartStartInclusionRequest);
|