@zwave-js/cc 11.0.0 → 11.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.
- package/build/cc/AlarmSensorCC.js +12 -18
- package/build/cc/AlarmSensorCC.js.map +1 -1
- package/build/cc/AssociationCC.d.ts +21 -13
- package/build/cc/AssociationCC.d.ts.map +1 -1
- package/build/cc/AssociationCC.js +85 -58
- package/build/cc/AssociationCC.js.map +1 -1
- package/build/cc/AssociationGroupInfoCC.d.ts +24 -5
- package/build/cc/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/cc/AssociationGroupInfoCC.js +229 -70
- package/build/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/cc/BarrierOperatorCC.js +20 -30
- package/build/cc/BarrierOperatorCC.js.map +1 -1
- package/build/cc/BasicCC.js +10 -15
- package/build/cc/BasicCC.js.map +1 -1
- package/build/cc/BatteryCC.js +12 -18
- package/build/cc/BatteryCC.js.map +1 -1
- package/build/cc/BinarySensorCC.js +12 -18
- package/build/cc/BinarySensorCC.js.map +1 -1
- package/build/cc/BinarySwitchCC.js +10 -15
- package/build/cc/BinarySwitchCC.js.map +1 -1
- package/build/cc/CRC16CC.js +6 -9
- package/build/cc/CRC16CC.js.map +1 -1
- package/build/cc/CentralSceneCC.js +16 -24
- package/build/cc/CentralSceneCC.js.map +1 -1
- package/build/cc/ClimateControlScheduleCC.js +20 -30
- package/build/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/cc/ClockCC.js +10 -15
- package/build/cc/ClockCC.js.map +1 -1
- package/build/cc/ColorSwitchCC.js +18 -27
- package/build/cc/ColorSwitchCC.js.map +1 -1
- package/build/cc/ConfigurationCC.js +30 -45
- package/build/cc/ConfigurationCC.js.map +1 -1
- package/build/cc/DeviceResetLocallyCC.d.ts +6 -0
- package/build/cc/DeviceResetLocallyCC.d.ts.map +1 -1
- package/build/cc/DeviceResetLocallyCC.js +40 -9
- package/build/cc/DeviceResetLocallyCC.js.map +1 -1
- package/build/cc/DoorLockCC.js +20 -30
- package/build/cc/DoorLockCC.js.map +1 -1
- package/build/cc/DoorLockLoggingCC.js +12 -18
- package/build/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/cc/EnergyProductionCC.d.ts +3 -1
- package/build/cc/EnergyProductionCC.d.ts.map +1 -1
- package/build/cc/EnergyProductionCC.js +24 -12
- package/build/cc/EnergyProductionCC.js.map +1 -1
- package/build/cc/EntryControlCC.js +20 -30
- package/build/cc/EntryControlCC.js.map +1 -1
- package/build/cc/FirmwareUpdateMetaDataCC.js +26 -46
- package/build/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/cc/HailCC.js +2 -3
- package/build/cc/HailCC.js.map +1 -1
- package/build/cc/HumidityControlModeCC.js +14 -21
- package/build/cc/HumidityControlModeCC.js.map +1 -1
- package/build/cc/HumidityControlOperatingStateCC.js +8 -12
- package/build/cc/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/cc/HumidityControlSetpointCC.js +22 -33
- package/build/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/cc/InclusionControllerCC.js +8 -12
- package/build/cc/InclusionControllerCC.js.map +1 -1
- package/build/cc/IndicatorCC.d.ts +18 -6
- package/build/cc/IndicatorCC.d.ts.map +1 -1
- package/build/cc/IndicatorCC.js +197 -105
- package/build/cc/IndicatorCC.js.map +1 -1
- package/build/cc/IrrigationCC.js +40 -60
- package/build/cc/IrrigationCC.js.map +1 -1
- package/build/cc/LanguageCC.js +10 -15
- package/build/cc/LanguageCC.js.map +1 -1
- package/build/cc/LockCC.js +10 -15
- package/build/cc/LockCC.js.map +1 -1
- package/build/cc/ManufacturerProprietaryCC.js +4 -6
- package/build/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/cc/ManufacturerSpecificCC.js +12 -18
- package/build/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/cc/MeterCC.js +14 -21
- package/build/cc/MeterCC.js.map +1 -1
- package/build/cc/MultiChannelAssociationCC.js +16 -24
- package/build/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/cc/MultiChannelCC.js +28 -42
- package/build/cc/MultiChannelCC.js.map +1 -1
- package/build/cc/MultiCommandCC.js +6 -11
- package/build/cc/MultiCommandCC.js.map +1 -1
- package/build/cc/MultilevelSensorCC.js +16 -24
- package/build/cc/MultilevelSensorCC.js.map +1 -1
- package/build/cc/MultilevelSwitchCC.js +18 -27
- package/build/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/cc/NoOperationCC.js +4 -6
- package/build/cc/NoOperationCC.js.map +1 -1
- package/build/cc/NodeNamingCC.js +16 -24
- package/build/cc/NodeNamingCC.js.map +1 -1
- package/build/cc/NotificationCC.js +18 -27
- package/build/cc/NotificationCC.js.map +1 -1
- package/build/cc/PowerlevelCC.js +16 -24
- package/build/cc/PowerlevelCC.js.map +1 -1
- package/build/cc/ProtectionCC.js +26 -39
- package/build/cc/ProtectionCC.js.map +1 -1
- package/build/cc/SceneActivationCC.js +6 -9
- package/build/cc/SceneActivationCC.js.map +1 -1
- package/build/cc/SceneActuatorConfigurationCC.js +10 -15
- package/build/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/cc/SceneControllerConfigurationCC.js +10 -15
- package/build/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/cc/ScheduleEntryLockCC.js +36 -54
- package/build/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/cc/Security2CC.js +32 -48
- package/build/cc/Security2CC.js.map +1 -1
- package/build/cc/SecurityCC.js +26 -39
- package/build/cc/SecurityCC.js.map +1 -1
- package/build/cc/SoundSwitchCC.js +24 -36
- package/build/cc/SoundSwitchCC.js.map +1 -1
- package/build/cc/SupervisionCC.d.ts.map +1 -1
- package/build/cc/SupervisionCC.js +10 -13
- package/build/cc/SupervisionCC.js.map +1 -1
- package/build/cc/ThermostatFanModeCC.js +14 -21
- package/build/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/cc/ThermostatFanStateCC.js +8 -12
- package/build/cc/ThermostatFanStateCC.js.map +1 -1
- package/build/cc/ThermostatModeCC.d.ts +1 -1
- package/build/cc/ThermostatModeCC.d.ts.map +1 -1
- package/build/cc/ThermostatModeCC.js +39 -26
- package/build/cc/ThermostatModeCC.js.map +1 -1
- package/build/cc/ThermostatOperatingStateCC.js +8 -12
- package/build/cc/ThermostatOperatingStateCC.js.map +1 -1
- package/build/cc/ThermostatSetbackCC.js +10 -15
- package/build/cc/ThermostatSetbackCC.js.map +1 -1
- package/build/cc/ThermostatSetpointCC.js +18 -32
- package/build/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/cc/TimeCC.js +18 -27
- package/build/cc/TimeCC.js.map +1 -1
- package/build/cc/TimeParametersCC.js +10 -15
- package/build/cc/TimeParametersCC.js.map +1 -1
- package/build/cc/TransportServiceCC.js +12 -22
- package/build/cc/TransportServiceCC.js.map +1 -1
- package/build/cc/UserCodeCC.js +40 -60
- package/build/cc/UserCodeCC.js.map +1 -1
- package/build/cc/VersionCC.js +20 -30
- package/build/cc/VersionCC.js.map +1 -1
- package/build/cc/WakeUpCC.d.ts.map +1 -1
- package/build/cc/WakeUpCC.js +49 -54
- package/build/cc/WakeUpCC.js.map +1 -1
- package/build/cc/WindowCoveringCC.js +18 -27
- package/build/cc/WindowCoveringCC.js.map +1 -1
- package/build/cc/ZWavePlusCC.js +8 -12
- package/build/cc/ZWavePlusCC.js.map +1 -1
- package/build/cc/ZWaveProtocolCC.d.ts +14 -14
- package/build/cc/ZWaveProtocolCC.d.ts.map +1 -1
- package/build/cc/ZWaveProtocolCC.js +120 -138
- package/build/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/cc/manufacturerProprietary/FibaroCC.js +14 -20
- package/build/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
- package/build/lib/API.d.ts +5 -2
- package/build/lib/API.d.ts.map +1 -1
- package/build/lib/API.js +10 -4
- package/build/lib/API.js.map +1 -1
- package/build/lib/Security2/Extension.js +8 -12
- package/build/lib/Security2/Extension.js.map +1 -1
- package/build/lib/Security2/shared.js +3 -3
- package/build/lib/Security2/shared.js.map +1 -1
- package/build/lib/SetValueResult.js +1 -1
- package/build/lib/SetValueResult.js.map +1 -1
- package/build/lib/Values.d.ts +3 -3
- package/build/lib/_Types.js +118 -118
- package/build/lib/_Types.js.map +1 -1
- package/package.json +11 -11
|
@@ -11,16 +11,33 @@ const core_1 = require("@zwave-js/core");
|
|
|
11
11
|
const CommandClass_1 = require("../lib/CommandClass");
|
|
12
12
|
const CommandClassDecorators_1 = require("../lib/CommandClassDecorators");
|
|
13
13
|
const _Types_1 = require("../lib/_Types");
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
var DataRateBitmask;
|
|
15
|
+
(function (DataRateBitmask) {
|
|
16
|
+
DataRateBitmask[DataRateBitmask["9k6"] = 1] = "9k6";
|
|
17
|
+
DataRateBitmask[DataRateBitmask["40k"] = 2] = "40k";
|
|
18
|
+
DataRateBitmask[DataRateBitmask["100k"] = 4] = "100k";
|
|
19
|
+
})(DataRateBitmask || (DataRateBitmask = {}));
|
|
20
|
+
function dataRate2Bitmask(dataRate) {
|
|
21
|
+
return dataRate === core_1.ZWaveDataRate["100k"]
|
|
22
|
+
? DataRateBitmask["100k"]
|
|
23
|
+
: dataRate === core_1.ZWaveDataRate["40k"]
|
|
24
|
+
? DataRateBitmask["40k"]
|
|
25
|
+
: DataRateBitmask["9k6"];
|
|
26
|
+
}
|
|
27
|
+
function bitmask2DataRate(mask) {
|
|
28
|
+
return mask === DataRateBitmask["100k"]
|
|
29
|
+
? core_1.ZWaveDataRate["100k"]
|
|
30
|
+
: mask === DataRateBitmask["40k"]
|
|
31
|
+
? core_1.ZWaveDataRate["40k"]
|
|
32
|
+
: core_1.ZWaveDataRate["9k6"];
|
|
33
|
+
}
|
|
34
|
+
let ZWaveProtocolCC = exports.ZWaveProtocolCC = class ZWaveProtocolCC extends CommandClass_1.CommandClass {
|
|
17
35
|
};
|
|
18
|
-
ZWaveProtocolCC = __decorate([
|
|
36
|
+
exports.ZWaveProtocolCC = ZWaveProtocolCC = __decorate([
|
|
19
37
|
(0, CommandClassDecorators_1.commandClass)(core_1.CommandClasses["Z-Wave Protocol"]),
|
|
20
38
|
(0, CommandClassDecorators_1.implementedVersion)(1)
|
|
21
39
|
], ZWaveProtocolCC);
|
|
22
|
-
exports.
|
|
23
|
-
let ZWaveProtocolCCNodeInformationFrame = class ZWaveProtocolCCNodeInformationFrame extends ZWaveProtocolCC {
|
|
40
|
+
let ZWaveProtocolCCNodeInformationFrame = exports.ZWaveProtocolCCNodeInformationFrame = class ZWaveProtocolCCNodeInformationFrame extends ZWaveProtocolCC {
|
|
24
41
|
constructor(host, options) {
|
|
25
42
|
super(host, options);
|
|
26
43
|
let nif;
|
|
@@ -49,42 +66,39 @@ let ZWaveProtocolCCNodeInformationFrame = class ZWaveProtocolCCNodeInformationFr
|
|
|
49
66
|
return super.serialize();
|
|
50
67
|
}
|
|
51
68
|
};
|
|
52
|
-
ZWaveProtocolCCNodeInformationFrame = __decorate([
|
|
69
|
+
exports.ZWaveProtocolCCNodeInformationFrame = ZWaveProtocolCCNodeInformationFrame = __decorate([
|
|
53
70
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.NodeInformationFrame)
|
|
54
71
|
], ZWaveProtocolCCNodeInformationFrame);
|
|
55
|
-
exports.
|
|
56
|
-
let ZWaveProtocolCCRequestNodeInformationFrame = class ZWaveProtocolCCRequestNodeInformationFrame extends ZWaveProtocolCC {
|
|
72
|
+
let ZWaveProtocolCCRequestNodeInformationFrame = exports.ZWaveProtocolCCRequestNodeInformationFrame = class ZWaveProtocolCCRequestNodeInformationFrame extends ZWaveProtocolCC {
|
|
57
73
|
};
|
|
58
|
-
ZWaveProtocolCCRequestNodeInformationFrame = __decorate([
|
|
74
|
+
exports.ZWaveProtocolCCRequestNodeInformationFrame = ZWaveProtocolCCRequestNodeInformationFrame = __decorate([
|
|
59
75
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.RequestNodeInformationFrame),
|
|
60
76
|
(0, CommandClassDecorators_1.expectedCCResponse)(ZWaveProtocolCCNodeInformationFrame)
|
|
61
77
|
], ZWaveProtocolCCRequestNodeInformationFrame);
|
|
62
|
-
exports.
|
|
63
|
-
let ZWaveProtocolCCAssignIDs = class ZWaveProtocolCCAssignIDs extends ZWaveProtocolCC {
|
|
78
|
+
let ZWaveProtocolCCAssignIDs = exports.ZWaveProtocolCCAssignIDs = class ZWaveProtocolCCAssignIDs extends ZWaveProtocolCC {
|
|
64
79
|
constructor(host, options) {
|
|
65
80
|
super(host, options);
|
|
66
81
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
67
82
|
(0, core_1.validatePayload)(this.payload.length >= 5);
|
|
68
|
-
this.
|
|
83
|
+
this.assignedNodeId = this.payload[0];
|
|
69
84
|
this.homeId = this.payload.readUInt32BE(1);
|
|
70
85
|
}
|
|
71
86
|
else {
|
|
72
|
-
this.
|
|
87
|
+
this.assignedNodeId = options.assignedNodeId;
|
|
73
88
|
this.homeId = options.homeId;
|
|
74
89
|
}
|
|
75
90
|
}
|
|
76
91
|
serialize() {
|
|
77
92
|
this.payload = Buffer.allocUnsafe(5);
|
|
78
|
-
this.payload[0] = this.
|
|
93
|
+
this.payload[0] = this.assignedNodeId;
|
|
79
94
|
this.payload.writeUInt32BE(this.homeId, 1);
|
|
80
95
|
return super.serialize();
|
|
81
96
|
}
|
|
82
97
|
};
|
|
83
|
-
ZWaveProtocolCCAssignIDs = __decorate([
|
|
98
|
+
exports.ZWaveProtocolCCAssignIDs = ZWaveProtocolCCAssignIDs = __decorate([
|
|
84
99
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.AssignIDs)
|
|
85
100
|
], ZWaveProtocolCCAssignIDs);
|
|
86
|
-
exports.
|
|
87
|
-
let ZWaveProtocolCCFindNodesInRange = class ZWaveProtocolCCFindNodesInRange extends ZWaveProtocolCC {
|
|
101
|
+
let ZWaveProtocolCCFindNodesInRange = exports.ZWaveProtocolCCFindNodesInRange = class ZWaveProtocolCCFindNodesInRange extends ZWaveProtocolCC {
|
|
88
102
|
constructor(host, options) {
|
|
89
103
|
super(host, options);
|
|
90
104
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -134,11 +148,10 @@ let ZWaveProtocolCCFindNodesInRange = class ZWaveProtocolCCFindNodesInRange exte
|
|
|
134
148
|
return super.serialize();
|
|
135
149
|
}
|
|
136
150
|
};
|
|
137
|
-
ZWaveProtocolCCFindNodesInRange = __decorate([
|
|
151
|
+
exports.ZWaveProtocolCCFindNodesInRange = ZWaveProtocolCCFindNodesInRange = __decorate([
|
|
138
152
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.FindNodesInRange)
|
|
139
153
|
], ZWaveProtocolCCFindNodesInRange);
|
|
140
|
-
exports.
|
|
141
|
-
let ZWaveProtocolCCRangeInfo = class ZWaveProtocolCCRangeInfo extends ZWaveProtocolCC {
|
|
154
|
+
let ZWaveProtocolCCRangeInfo = exports.ZWaveProtocolCCRangeInfo = class ZWaveProtocolCCRangeInfo extends ZWaveProtocolCC {
|
|
142
155
|
constructor(host, options) {
|
|
143
156
|
super(host, options);
|
|
144
157
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -167,18 +180,16 @@ let ZWaveProtocolCCRangeInfo = class ZWaveProtocolCCRangeInfo extends ZWaveProto
|
|
|
167
180
|
return super.serialize();
|
|
168
181
|
}
|
|
169
182
|
};
|
|
170
|
-
ZWaveProtocolCCRangeInfo = __decorate([
|
|
183
|
+
exports.ZWaveProtocolCCRangeInfo = ZWaveProtocolCCRangeInfo = __decorate([
|
|
171
184
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.RangeInfo)
|
|
172
185
|
], ZWaveProtocolCCRangeInfo);
|
|
173
|
-
exports.
|
|
174
|
-
let ZWaveProtocolCCGetNodesInRange = class ZWaveProtocolCCGetNodesInRange extends ZWaveProtocolCC {
|
|
186
|
+
let ZWaveProtocolCCGetNodesInRange = exports.ZWaveProtocolCCGetNodesInRange = class ZWaveProtocolCCGetNodesInRange extends ZWaveProtocolCC {
|
|
175
187
|
};
|
|
176
|
-
ZWaveProtocolCCGetNodesInRange = __decorate([
|
|
188
|
+
exports.ZWaveProtocolCCGetNodesInRange = ZWaveProtocolCCGetNodesInRange = __decorate([
|
|
177
189
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.GetNodesInRange),
|
|
178
190
|
(0, CommandClassDecorators_1.expectedCCResponse)(ZWaveProtocolCCRangeInfo)
|
|
179
191
|
], ZWaveProtocolCCGetNodesInRange);
|
|
180
|
-
exports.
|
|
181
|
-
let ZWaveProtocolCCCommandComplete = class ZWaveProtocolCCCommandComplete extends ZWaveProtocolCC {
|
|
192
|
+
let ZWaveProtocolCCCommandComplete = exports.ZWaveProtocolCCCommandComplete = class ZWaveProtocolCCCommandComplete extends ZWaveProtocolCC {
|
|
182
193
|
constructor(host, options) {
|
|
183
194
|
super(host, options);
|
|
184
195
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -194,11 +205,10 @@ let ZWaveProtocolCCCommandComplete = class ZWaveProtocolCCCommandComplete extend
|
|
|
194
205
|
return super.serialize();
|
|
195
206
|
}
|
|
196
207
|
};
|
|
197
|
-
ZWaveProtocolCCCommandComplete = __decorate([
|
|
208
|
+
exports.ZWaveProtocolCCCommandComplete = ZWaveProtocolCCCommandComplete = __decorate([
|
|
198
209
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.CommandComplete)
|
|
199
210
|
], ZWaveProtocolCCCommandComplete);
|
|
200
|
-
exports.
|
|
201
|
-
let ZWaveProtocolCCTransferPresentation = class ZWaveProtocolCCTransferPresentation extends ZWaveProtocolCC {
|
|
211
|
+
let ZWaveProtocolCCTransferPresentation = exports.ZWaveProtocolCCTransferPresentation = class ZWaveProtocolCCTransferPresentation extends ZWaveProtocolCC {
|
|
202
212
|
constructor(host, options) {
|
|
203
213
|
super(host, options);
|
|
204
214
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -226,23 +236,22 @@ let ZWaveProtocolCCTransferPresentation = class ZWaveProtocolCCTransferPresentat
|
|
|
226
236
|
return super.serialize();
|
|
227
237
|
}
|
|
228
238
|
};
|
|
229
|
-
ZWaveProtocolCCTransferPresentation = __decorate([
|
|
239
|
+
exports.ZWaveProtocolCCTransferPresentation = ZWaveProtocolCCTransferPresentation = __decorate([
|
|
230
240
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.TransferPresentation)
|
|
231
241
|
], ZWaveProtocolCCTransferPresentation);
|
|
232
|
-
exports.
|
|
233
|
-
let ZWaveProtocolCCTransferNodeInformation = class ZWaveProtocolCCTransferNodeInformation extends ZWaveProtocolCC {
|
|
242
|
+
let ZWaveProtocolCCTransferNodeInformation = exports.ZWaveProtocolCCTransferNodeInformation = class ZWaveProtocolCCTransferNodeInformation extends ZWaveProtocolCC {
|
|
234
243
|
constructor(host, options) {
|
|
235
244
|
super(host, options);
|
|
236
245
|
let info;
|
|
237
246
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
238
247
|
(0, core_1.validatePayload)(this.payload.length >= 2);
|
|
239
248
|
this.sequenceNumber = this.payload[0];
|
|
240
|
-
this.
|
|
249
|
+
this.sourceNodeId = this.payload[1];
|
|
241
250
|
info = (0, core_1.parseNodeProtocolInfoAndDeviceClass)(this.payload.slice(2)).info;
|
|
242
251
|
}
|
|
243
252
|
else {
|
|
244
253
|
this.sequenceNumber = options.sequenceNumber;
|
|
245
|
-
this.
|
|
254
|
+
this.sourceNodeId = options.sourceNodeId;
|
|
246
255
|
info = options;
|
|
247
256
|
}
|
|
248
257
|
this.basicDeviceClass = info.basicDeviceClass;
|
|
@@ -260,30 +269,29 @@ let ZWaveProtocolCCTransferNodeInformation = class ZWaveProtocolCCTransferNodeIn
|
|
|
260
269
|
}
|
|
261
270
|
serialize() {
|
|
262
271
|
this.payload = Buffer.concat([
|
|
263
|
-
Buffer.from([this.sequenceNumber, this.
|
|
272
|
+
Buffer.from([this.sequenceNumber, this.sourceNodeId]),
|
|
264
273
|
(0, core_1.encodeNodeProtocolInfoAndDeviceClass)(this),
|
|
265
274
|
]);
|
|
266
275
|
return super.serialize();
|
|
267
276
|
}
|
|
268
277
|
};
|
|
269
|
-
ZWaveProtocolCCTransferNodeInformation = __decorate([
|
|
278
|
+
exports.ZWaveProtocolCCTransferNodeInformation = ZWaveProtocolCCTransferNodeInformation = __decorate([
|
|
270
279
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.TransferNodeInformation)
|
|
271
280
|
], ZWaveProtocolCCTransferNodeInformation);
|
|
272
|
-
exports.
|
|
273
|
-
let ZWaveProtocolCCTransferRangeInformation = class ZWaveProtocolCCTransferRangeInformation extends ZWaveProtocolCC {
|
|
281
|
+
let ZWaveProtocolCCTransferRangeInformation = exports.ZWaveProtocolCCTransferRangeInformation = class ZWaveProtocolCCTransferRangeInformation extends ZWaveProtocolCC {
|
|
274
282
|
constructor(host, options) {
|
|
275
283
|
super(host, options);
|
|
276
284
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
277
285
|
(0, core_1.validatePayload)(this.payload.length >= 3);
|
|
278
286
|
this.sequenceNumber = this.payload[0];
|
|
279
|
-
this.
|
|
287
|
+
this.testedNodeId = this.payload[1];
|
|
280
288
|
const bitmaskLength = this.payload[2];
|
|
281
289
|
(0, core_1.validatePayload)(this.payload.length >= 3 + bitmaskLength);
|
|
282
290
|
this.neighborNodeIds = (0, core_1.parseBitMask)(this.payload.slice(3, 3 + bitmaskLength));
|
|
283
291
|
}
|
|
284
292
|
else {
|
|
285
293
|
this.sequenceNumber = options.sequenceNumber;
|
|
286
|
-
this.
|
|
294
|
+
this.testedNodeId = options.testedNodeId;
|
|
287
295
|
this.neighborNodeIds = options.neighborNodeIds;
|
|
288
296
|
}
|
|
289
297
|
}
|
|
@@ -292,7 +300,7 @@ let ZWaveProtocolCCTransferRangeInformation = class ZWaveProtocolCCTransferRange
|
|
|
292
300
|
this.payload = Buffer.concat([
|
|
293
301
|
Buffer.from([
|
|
294
302
|
this.sequenceNumber,
|
|
295
|
-
this.
|
|
303
|
+
this.testedNodeId,
|
|
296
304
|
nodesBitmask.length,
|
|
297
305
|
]),
|
|
298
306
|
nodesBitmask,
|
|
@@ -300,11 +308,10 @@ let ZWaveProtocolCCTransferRangeInformation = class ZWaveProtocolCCTransferRange
|
|
|
300
308
|
return super.serialize();
|
|
301
309
|
}
|
|
302
310
|
};
|
|
303
|
-
ZWaveProtocolCCTransferRangeInformation = __decorate([
|
|
311
|
+
exports.ZWaveProtocolCCTransferRangeInformation = ZWaveProtocolCCTransferRangeInformation = __decorate([
|
|
304
312
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.TransferRangeInformation)
|
|
305
313
|
], ZWaveProtocolCCTransferRangeInformation);
|
|
306
|
-
exports.
|
|
307
|
-
let ZWaveProtocolCCTransferEnd = class ZWaveProtocolCCTransferEnd extends ZWaveProtocolCC {
|
|
314
|
+
let ZWaveProtocolCCTransferEnd = exports.ZWaveProtocolCCTransferEnd = class ZWaveProtocolCCTransferEnd extends ZWaveProtocolCC {
|
|
308
315
|
constructor(host, options) {
|
|
309
316
|
super(host, options);
|
|
310
317
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -320,28 +327,27 @@ let ZWaveProtocolCCTransferEnd = class ZWaveProtocolCCTransferEnd extends ZWaveP
|
|
|
320
327
|
return super.serialize();
|
|
321
328
|
}
|
|
322
329
|
};
|
|
323
|
-
ZWaveProtocolCCTransferEnd = __decorate([
|
|
330
|
+
exports.ZWaveProtocolCCTransferEnd = ZWaveProtocolCCTransferEnd = __decorate([
|
|
324
331
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.TransferEnd)
|
|
325
332
|
], ZWaveProtocolCCTransferEnd);
|
|
326
|
-
exports.
|
|
327
|
-
let ZWaveProtocolCCAssignReturnRoute = class ZWaveProtocolCCAssignReturnRoute extends ZWaveProtocolCC {
|
|
333
|
+
let ZWaveProtocolCCAssignReturnRoute = exports.ZWaveProtocolCCAssignReturnRoute = class ZWaveProtocolCCAssignReturnRoute extends ZWaveProtocolCC {
|
|
328
334
|
constructor(host, options) {
|
|
329
335
|
super(host, options);
|
|
330
336
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
331
337
|
(0, core_1.validatePayload)(this.payload.length >= 7);
|
|
332
|
-
this.
|
|
338
|
+
this.destinationNodeId = this.payload[0];
|
|
333
339
|
this.routeIndex = this.payload[1] >>> 4;
|
|
334
340
|
const numRepeaters = this.payload[1] & 0b1111;
|
|
335
341
|
this.repeaters = [...this.payload.slice(2, 2 + numRepeaters)];
|
|
336
342
|
const speedAndWakeup = this.payload[2 + numRepeaters];
|
|
337
|
-
this.destinationSpeed = (speedAndWakeup >>> 3) & 0b111;
|
|
343
|
+
this.destinationSpeed = bitmask2DataRate((speedAndWakeup >>> 3) & 0b111);
|
|
338
344
|
this.destinationWakeUp = (speedAndWakeup >>> 1) & 0b11;
|
|
339
345
|
}
|
|
340
346
|
else {
|
|
341
347
|
if (options.repeaters.length > core_1.MAX_REPEATERS) {
|
|
342
348
|
throw new core_1.ZWaveError(`${this.constructor.name}: too many repeaters`, core_1.ZWaveErrorCodes.Argument_Invalid);
|
|
343
349
|
}
|
|
344
|
-
this.
|
|
350
|
+
this.destinationNodeId = options.destinationNodeId;
|
|
345
351
|
this.routeIndex = options.routeIndex;
|
|
346
352
|
this.repeaters = options.repeaters;
|
|
347
353
|
this.destinationWakeUp = options.destinationWakeUp;
|
|
@@ -349,33 +355,32 @@ let ZWaveProtocolCCAssignReturnRoute = class ZWaveProtocolCCAssignReturnRoute ex
|
|
|
349
355
|
}
|
|
350
356
|
}
|
|
351
357
|
serialize() {
|
|
358
|
+
const routeByte = (this.routeIndex << 4) | this.repeaters.length;
|
|
359
|
+
const speedMask = dataRate2Bitmask(this.destinationSpeed);
|
|
360
|
+
const speedByte = (speedMask << 3) | (this.destinationWakeUp << 1);
|
|
352
361
|
this.payload = Buffer.from([
|
|
353
|
-
this.
|
|
354
|
-
|
|
355
|
-
this.repeaters
|
|
356
|
-
|
|
357
|
-
this.repeaters[2] ?? 0,
|
|
358
|
-
this.repeaters[3] ?? 0,
|
|
359
|
-
(this.destinationSpeed << 3) | (this.destinationWakeUp << 1),
|
|
362
|
+
this.destinationNodeId,
|
|
363
|
+
routeByte,
|
|
364
|
+
...this.repeaters,
|
|
365
|
+
speedByte,
|
|
360
366
|
]);
|
|
361
367
|
return super.serialize();
|
|
362
368
|
}
|
|
363
369
|
};
|
|
364
|
-
ZWaveProtocolCCAssignReturnRoute = __decorate([
|
|
370
|
+
exports.ZWaveProtocolCCAssignReturnRoute = ZWaveProtocolCCAssignReturnRoute = __decorate([
|
|
365
371
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.AssignReturnRoute)
|
|
366
372
|
], ZWaveProtocolCCAssignReturnRoute);
|
|
367
|
-
exports.
|
|
368
|
-
let ZWaveProtocolCCNewNodeRegistered = class ZWaveProtocolCCNewNodeRegistered extends ZWaveProtocolCC {
|
|
373
|
+
let ZWaveProtocolCCNewNodeRegistered = exports.ZWaveProtocolCCNewNodeRegistered = class ZWaveProtocolCCNewNodeRegistered extends ZWaveProtocolCC {
|
|
369
374
|
constructor(host, options) {
|
|
370
375
|
super(host, options);
|
|
371
376
|
let nif;
|
|
372
377
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
373
378
|
(0, core_1.validatePayload)(this.payload.length >= 1);
|
|
374
|
-
this.
|
|
379
|
+
this.newNodeId = this.payload[0];
|
|
375
380
|
nif = (0, core_1.parseNodeInformationFrame)(this.payload.slice(1));
|
|
376
381
|
}
|
|
377
382
|
else {
|
|
378
|
-
this.
|
|
383
|
+
this.newNodeId = options.newNodeId;
|
|
379
384
|
nif = options;
|
|
380
385
|
}
|
|
381
386
|
this.basicDeviceClass = nif.basicDeviceClass;
|
|
@@ -394,44 +399,42 @@ let ZWaveProtocolCCNewNodeRegistered = class ZWaveProtocolCCNewNodeRegistered ex
|
|
|
394
399
|
}
|
|
395
400
|
serialize() {
|
|
396
401
|
this.payload = Buffer.concat([
|
|
397
|
-
Buffer.from([this.
|
|
402
|
+
Buffer.from([this.newNodeId]),
|
|
398
403
|
(0, core_1.encodeNodeInformationFrame)(this),
|
|
399
404
|
]);
|
|
400
405
|
return super.serialize();
|
|
401
406
|
}
|
|
402
407
|
};
|
|
403
|
-
ZWaveProtocolCCNewNodeRegistered = __decorate([
|
|
408
|
+
exports.ZWaveProtocolCCNewNodeRegistered = ZWaveProtocolCCNewNodeRegistered = __decorate([
|
|
404
409
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.NewNodeRegistered)
|
|
405
410
|
], ZWaveProtocolCCNewNodeRegistered);
|
|
406
|
-
exports.
|
|
407
|
-
let ZWaveProtocolCCNewRangeRegistered = class ZWaveProtocolCCNewRangeRegistered extends ZWaveProtocolCC {
|
|
411
|
+
let ZWaveProtocolCCNewRangeRegistered = exports.ZWaveProtocolCCNewRangeRegistered = class ZWaveProtocolCCNewRangeRegistered extends ZWaveProtocolCC {
|
|
408
412
|
constructor(host, options) {
|
|
409
413
|
super(host, options);
|
|
410
414
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
411
415
|
(0, core_1.validatePayload)(this.payload.length >= 2);
|
|
412
|
-
this.
|
|
416
|
+
this.testedNodeId = this.payload[0];
|
|
413
417
|
const numNeighbors = this.payload[1];
|
|
414
418
|
this.neighborNodeIds = [...this.payload.slice(2, 2 + numNeighbors)];
|
|
415
419
|
}
|
|
416
420
|
else {
|
|
417
|
-
this.
|
|
421
|
+
this.testedNodeId = options.testedNodeId;
|
|
418
422
|
this.neighborNodeIds = options.neighborNodeIds;
|
|
419
423
|
}
|
|
420
424
|
}
|
|
421
425
|
serialize() {
|
|
422
426
|
const nodesBitmask = (0, core_1.encodeBitMask)(this.neighborNodeIds, core_1.MAX_NODES);
|
|
423
427
|
this.payload = Buffer.concat([
|
|
424
|
-
Buffer.from([this.
|
|
428
|
+
Buffer.from([this.testedNodeId, nodesBitmask.length]),
|
|
425
429
|
nodesBitmask,
|
|
426
430
|
]);
|
|
427
431
|
return super.serialize();
|
|
428
432
|
}
|
|
429
433
|
};
|
|
430
|
-
ZWaveProtocolCCNewRangeRegistered = __decorate([
|
|
434
|
+
exports.ZWaveProtocolCCNewRangeRegistered = ZWaveProtocolCCNewRangeRegistered = __decorate([
|
|
431
435
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.NewRangeRegistered)
|
|
432
436
|
], ZWaveProtocolCCNewRangeRegistered);
|
|
433
|
-
exports.
|
|
434
|
-
let ZWaveProtocolCCTransferNewPrimaryControllerComplete = class ZWaveProtocolCCTransferNewPrimaryControllerComplete extends ZWaveProtocolCC {
|
|
437
|
+
let ZWaveProtocolCCTransferNewPrimaryControllerComplete = exports.ZWaveProtocolCCTransferNewPrimaryControllerComplete = class ZWaveProtocolCCTransferNewPrimaryControllerComplete extends ZWaveProtocolCC {
|
|
435
438
|
constructor(host, options) {
|
|
436
439
|
super(host, options);
|
|
437
440
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -447,17 +450,15 @@ let ZWaveProtocolCCTransferNewPrimaryControllerComplete = class ZWaveProtocolCCT
|
|
|
447
450
|
return super.serialize();
|
|
448
451
|
}
|
|
449
452
|
};
|
|
450
|
-
ZWaveProtocolCCTransferNewPrimaryControllerComplete = __decorate([
|
|
453
|
+
exports.ZWaveProtocolCCTransferNewPrimaryControllerComplete = ZWaveProtocolCCTransferNewPrimaryControllerComplete = __decorate([
|
|
451
454
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.TransferNewPrimaryControllerComplete)
|
|
452
455
|
], ZWaveProtocolCCTransferNewPrimaryControllerComplete);
|
|
453
|
-
exports.
|
|
454
|
-
let ZWaveProtocolCCAutomaticControllerUpdateStart = class ZWaveProtocolCCAutomaticControllerUpdateStart extends ZWaveProtocolCC {
|
|
456
|
+
let ZWaveProtocolCCAutomaticControllerUpdateStart = exports.ZWaveProtocolCCAutomaticControllerUpdateStart = class ZWaveProtocolCCAutomaticControllerUpdateStart extends ZWaveProtocolCC {
|
|
455
457
|
};
|
|
456
|
-
ZWaveProtocolCCAutomaticControllerUpdateStart = __decorate([
|
|
458
|
+
exports.ZWaveProtocolCCAutomaticControllerUpdateStart = ZWaveProtocolCCAutomaticControllerUpdateStart = __decorate([
|
|
457
459
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.AutomaticControllerUpdateStart)
|
|
458
460
|
], ZWaveProtocolCCAutomaticControllerUpdateStart);
|
|
459
|
-
exports.
|
|
460
|
-
let ZWaveProtocolCCSUCNodeID = class ZWaveProtocolCCSUCNodeID extends ZWaveProtocolCC {
|
|
461
|
+
let ZWaveProtocolCCSUCNodeID = exports.ZWaveProtocolCCSUCNodeID = class ZWaveProtocolCCSUCNodeID extends ZWaveProtocolCC {
|
|
461
462
|
constructor(host, options) {
|
|
462
463
|
super(host, options);
|
|
463
464
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -476,11 +477,10 @@ let ZWaveProtocolCCSUCNodeID = class ZWaveProtocolCCSUCNodeID extends ZWaveProto
|
|
|
476
477
|
return super.serialize();
|
|
477
478
|
}
|
|
478
479
|
};
|
|
479
|
-
ZWaveProtocolCCSUCNodeID = __decorate([
|
|
480
|
+
exports.ZWaveProtocolCCSUCNodeID = ZWaveProtocolCCSUCNodeID = __decorate([
|
|
480
481
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.SUCNodeID)
|
|
481
482
|
], ZWaveProtocolCCSUCNodeID);
|
|
482
|
-
exports.
|
|
483
|
-
let ZWaveProtocolCCSetSUC = class ZWaveProtocolCCSetSUC extends ZWaveProtocolCC {
|
|
483
|
+
let ZWaveProtocolCCSetSUC = exports.ZWaveProtocolCCSetSUC = class ZWaveProtocolCCSetSUC extends ZWaveProtocolCC {
|
|
484
484
|
constructor(host, options) {
|
|
485
485
|
super(host, options);
|
|
486
486
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -498,11 +498,10 @@ let ZWaveProtocolCCSetSUC = class ZWaveProtocolCCSetSUC extends ZWaveProtocolCC
|
|
|
498
498
|
return super.serialize();
|
|
499
499
|
}
|
|
500
500
|
};
|
|
501
|
-
ZWaveProtocolCCSetSUC = __decorate([
|
|
501
|
+
exports.ZWaveProtocolCCSetSUC = ZWaveProtocolCCSetSUC = __decorate([
|
|
502
502
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.SetSUC)
|
|
503
503
|
], ZWaveProtocolCCSetSUC);
|
|
504
|
-
exports.
|
|
505
|
-
let ZWaveProtocolCCSetSUCAck = class ZWaveProtocolCCSetSUCAck extends ZWaveProtocolCC {
|
|
504
|
+
let ZWaveProtocolCCSetSUCAck = exports.ZWaveProtocolCCSetSUCAck = class ZWaveProtocolCCSetSUCAck extends ZWaveProtocolCC {
|
|
506
505
|
constructor(host, options) {
|
|
507
506
|
super(host, options);
|
|
508
507
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -524,17 +523,15 @@ let ZWaveProtocolCCSetSUCAck = class ZWaveProtocolCCSetSUCAck extends ZWaveProto
|
|
|
524
523
|
return super.serialize();
|
|
525
524
|
}
|
|
526
525
|
};
|
|
527
|
-
ZWaveProtocolCCSetSUCAck = __decorate([
|
|
526
|
+
exports.ZWaveProtocolCCSetSUCAck = ZWaveProtocolCCSetSUCAck = __decorate([
|
|
528
527
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.SetSUCAck)
|
|
529
528
|
], ZWaveProtocolCCSetSUCAck);
|
|
530
|
-
exports.
|
|
531
|
-
let ZWaveProtocolCCAssignSUCReturnRoute = class ZWaveProtocolCCAssignSUCReturnRoute extends ZWaveProtocolCCAssignReturnRoute {
|
|
529
|
+
let ZWaveProtocolCCAssignSUCReturnRoute = exports.ZWaveProtocolCCAssignSUCReturnRoute = class ZWaveProtocolCCAssignSUCReturnRoute extends ZWaveProtocolCCAssignReturnRoute {
|
|
532
530
|
};
|
|
533
|
-
ZWaveProtocolCCAssignSUCReturnRoute = __decorate([
|
|
531
|
+
exports.ZWaveProtocolCCAssignSUCReturnRoute = ZWaveProtocolCCAssignSUCReturnRoute = __decorate([
|
|
534
532
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.AssignSUCReturnRoute)
|
|
535
533
|
], ZWaveProtocolCCAssignSUCReturnRoute);
|
|
536
|
-
exports.
|
|
537
|
-
let ZWaveProtocolCCStaticRouteRequest = class ZWaveProtocolCCStaticRouteRequest extends ZWaveProtocolCC {
|
|
534
|
+
let ZWaveProtocolCCStaticRouteRequest = exports.ZWaveProtocolCCStaticRouteRequest = class ZWaveProtocolCCStaticRouteRequest extends ZWaveProtocolCC {
|
|
538
535
|
constructor(host, options) {
|
|
539
536
|
super(host, options);
|
|
540
537
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -556,31 +553,29 @@ let ZWaveProtocolCCStaticRouteRequest = class ZWaveProtocolCCStaticRouteRequest
|
|
|
556
553
|
return super.serialize();
|
|
557
554
|
}
|
|
558
555
|
};
|
|
559
|
-
ZWaveProtocolCCStaticRouteRequest = __decorate([
|
|
556
|
+
exports.ZWaveProtocolCCStaticRouteRequest = ZWaveProtocolCCStaticRouteRequest = __decorate([
|
|
560
557
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.StaticRouteRequest)
|
|
561
558
|
], ZWaveProtocolCCStaticRouteRequest);
|
|
562
|
-
exports.
|
|
563
|
-
let ZWaveProtocolCCLost = class ZWaveProtocolCCLost extends ZWaveProtocolCC {
|
|
559
|
+
let ZWaveProtocolCCLost = exports.ZWaveProtocolCCLost = class ZWaveProtocolCCLost extends ZWaveProtocolCC {
|
|
564
560
|
constructor(host, options) {
|
|
565
561
|
super(host, options);
|
|
566
562
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
567
563
|
(0, core_1.validatePayload)(this.payload.length >= 1);
|
|
568
|
-
this.
|
|
564
|
+
this.lostNodeId = this.payload[0];
|
|
569
565
|
}
|
|
570
566
|
else {
|
|
571
|
-
this.
|
|
567
|
+
this.lostNodeId = options.lostNodeId;
|
|
572
568
|
}
|
|
573
569
|
}
|
|
574
570
|
serialize() {
|
|
575
|
-
this.payload = Buffer.from([this.
|
|
571
|
+
this.payload = Buffer.from([this.lostNodeId]);
|
|
576
572
|
return super.serialize();
|
|
577
573
|
}
|
|
578
574
|
};
|
|
579
|
-
ZWaveProtocolCCLost = __decorate([
|
|
575
|
+
exports.ZWaveProtocolCCLost = ZWaveProtocolCCLost = __decorate([
|
|
580
576
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.Lost)
|
|
581
577
|
], ZWaveProtocolCCLost);
|
|
582
|
-
exports.
|
|
583
|
-
let ZWaveProtocolCCAcceptLost = class ZWaveProtocolCCAcceptLost extends ZWaveProtocolCC {
|
|
578
|
+
let ZWaveProtocolCCAcceptLost = exports.ZWaveProtocolCCAcceptLost = class ZWaveProtocolCCAcceptLost extends ZWaveProtocolCC {
|
|
584
579
|
constructor(host, options) {
|
|
585
580
|
super(host, options);
|
|
586
581
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -597,11 +592,10 @@ let ZWaveProtocolCCAcceptLost = class ZWaveProtocolCCAcceptLost extends ZWavePro
|
|
|
597
592
|
return super.serialize();
|
|
598
593
|
}
|
|
599
594
|
};
|
|
600
|
-
ZWaveProtocolCCAcceptLost = __decorate([
|
|
595
|
+
exports.ZWaveProtocolCCAcceptLost = ZWaveProtocolCCAcceptLost = __decorate([
|
|
601
596
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.AcceptLost)
|
|
602
597
|
], ZWaveProtocolCCAcceptLost);
|
|
603
|
-
exports.
|
|
604
|
-
let ZWaveProtocolCCNOPPower = class ZWaveProtocolCCNOPPower extends ZWaveProtocolCC {
|
|
598
|
+
let ZWaveProtocolCCNOPPower = exports.ZWaveProtocolCCNOPPower = class ZWaveProtocolCCNOPPower extends ZWaveProtocolCC {
|
|
605
599
|
constructor(host, options) {
|
|
606
600
|
super(host, options);
|
|
607
601
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -633,11 +627,10 @@ let ZWaveProtocolCCNOPPower = class ZWaveProtocolCCNOPPower extends ZWaveProtoco
|
|
|
633
627
|
return super.serialize();
|
|
634
628
|
}
|
|
635
629
|
};
|
|
636
|
-
ZWaveProtocolCCNOPPower = __decorate([
|
|
630
|
+
exports.ZWaveProtocolCCNOPPower = ZWaveProtocolCCNOPPower = __decorate([
|
|
637
631
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.NOPPower)
|
|
638
632
|
], ZWaveProtocolCCNOPPower);
|
|
639
|
-
exports.
|
|
640
|
-
let ZWaveProtocolCCReservedIDs = class ZWaveProtocolCCReservedIDs extends ZWaveProtocolCC {
|
|
633
|
+
let ZWaveProtocolCCReservedIDs = exports.ZWaveProtocolCCReservedIDs = class ZWaveProtocolCCReservedIDs extends ZWaveProtocolCC {
|
|
641
634
|
constructor(host, options) {
|
|
642
635
|
super(host, options);
|
|
643
636
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -658,11 +651,10 @@ let ZWaveProtocolCCReservedIDs = class ZWaveProtocolCCReservedIDs extends ZWaveP
|
|
|
658
651
|
return super.serialize();
|
|
659
652
|
}
|
|
660
653
|
};
|
|
661
|
-
ZWaveProtocolCCReservedIDs = __decorate([
|
|
654
|
+
exports.ZWaveProtocolCCReservedIDs = ZWaveProtocolCCReservedIDs = __decorate([
|
|
662
655
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.ReservedIDs)
|
|
663
656
|
], ZWaveProtocolCCReservedIDs);
|
|
664
|
-
exports.
|
|
665
|
-
let ZWaveProtocolCCReserveNodeIDs = class ZWaveProtocolCCReserveNodeIDs extends ZWaveProtocolCC {
|
|
657
|
+
let ZWaveProtocolCCReserveNodeIDs = exports.ZWaveProtocolCCReserveNodeIDs = class ZWaveProtocolCCReserveNodeIDs extends ZWaveProtocolCC {
|
|
666
658
|
constructor(host, options) {
|
|
667
659
|
super(host, options);
|
|
668
660
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -678,12 +670,11 @@ let ZWaveProtocolCCReserveNodeIDs = class ZWaveProtocolCCReserveNodeIDs extends
|
|
|
678
670
|
return super.serialize();
|
|
679
671
|
}
|
|
680
672
|
};
|
|
681
|
-
ZWaveProtocolCCReserveNodeIDs = __decorate([
|
|
673
|
+
exports.ZWaveProtocolCCReserveNodeIDs = ZWaveProtocolCCReserveNodeIDs = __decorate([
|
|
682
674
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.ReserveNodeIDs),
|
|
683
675
|
(0, CommandClassDecorators_1.expectedCCResponse)(ZWaveProtocolCCReservedIDs)
|
|
684
676
|
], ZWaveProtocolCCReserveNodeIDs);
|
|
685
|
-
exports.
|
|
686
|
-
let ZWaveProtocolCCNodesExistReply = class ZWaveProtocolCCNodesExistReply extends ZWaveProtocolCC {
|
|
677
|
+
let ZWaveProtocolCCNodesExistReply = exports.ZWaveProtocolCCNodesExistReply = class ZWaveProtocolCCNodesExistReply extends ZWaveProtocolCC {
|
|
687
678
|
constructor(host, options) {
|
|
688
679
|
super(host, options);
|
|
689
680
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -704,14 +695,13 @@ let ZWaveProtocolCCNodesExistReply = class ZWaveProtocolCCNodesExistReply extend
|
|
|
704
695
|
return super.serialize();
|
|
705
696
|
}
|
|
706
697
|
};
|
|
707
|
-
ZWaveProtocolCCNodesExistReply = __decorate([
|
|
698
|
+
exports.ZWaveProtocolCCNodesExistReply = ZWaveProtocolCCNodesExistReply = __decorate([
|
|
708
699
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.NodesExistReply)
|
|
709
700
|
], ZWaveProtocolCCNodesExistReply);
|
|
710
|
-
exports.ZWaveProtocolCCNodesExistReply = ZWaveProtocolCCNodesExistReply;
|
|
711
701
|
function testResponseForZWaveProtocolNodesExist(sent, received) {
|
|
712
702
|
return received.nodeMaskType === sent.nodeMaskType;
|
|
713
703
|
}
|
|
714
|
-
let ZWaveProtocolCCNodesExist = class ZWaveProtocolCCNodesExist extends ZWaveProtocolCC {
|
|
704
|
+
let ZWaveProtocolCCNodesExist = exports.ZWaveProtocolCCNodesExist = class ZWaveProtocolCCNodesExist extends ZWaveProtocolCC {
|
|
715
705
|
constructor(host, options) {
|
|
716
706
|
super(host, options);
|
|
717
707
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -735,12 +725,11 @@ let ZWaveProtocolCCNodesExist = class ZWaveProtocolCCNodesExist extends ZWavePro
|
|
|
735
725
|
return super.serialize();
|
|
736
726
|
}
|
|
737
727
|
};
|
|
738
|
-
ZWaveProtocolCCNodesExist = __decorate([
|
|
728
|
+
exports.ZWaveProtocolCCNodesExist = ZWaveProtocolCCNodesExist = __decorate([
|
|
739
729
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.NodesExist),
|
|
740
730
|
(0, CommandClassDecorators_1.expectedCCResponse)(ZWaveProtocolCCNodesExistReply, testResponseForZWaveProtocolNodesExist)
|
|
741
731
|
], ZWaveProtocolCCNodesExist);
|
|
742
|
-
exports.
|
|
743
|
-
let ZWaveProtocolCCSetNWIMode = class ZWaveProtocolCCSetNWIMode extends ZWaveProtocolCC {
|
|
732
|
+
let ZWaveProtocolCCSetNWIMode = exports.ZWaveProtocolCCSetNWIMode = class ZWaveProtocolCCSetNWIMode extends ZWaveProtocolCC {
|
|
744
733
|
constructor(host, options) {
|
|
745
734
|
super(host, options);
|
|
746
735
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -761,17 +750,15 @@ let ZWaveProtocolCCSetNWIMode = class ZWaveProtocolCCSetNWIMode extends ZWavePro
|
|
|
761
750
|
return super.serialize();
|
|
762
751
|
}
|
|
763
752
|
};
|
|
764
|
-
ZWaveProtocolCCSetNWIMode = __decorate([
|
|
753
|
+
exports.ZWaveProtocolCCSetNWIMode = ZWaveProtocolCCSetNWIMode = __decorate([
|
|
765
754
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.SetNWIMode)
|
|
766
755
|
], ZWaveProtocolCCSetNWIMode);
|
|
767
|
-
exports.
|
|
768
|
-
let ZWaveProtocolCCExcludeRequest = class ZWaveProtocolCCExcludeRequest extends ZWaveProtocolCCNodeInformationFrame {
|
|
756
|
+
let ZWaveProtocolCCExcludeRequest = exports.ZWaveProtocolCCExcludeRequest = class ZWaveProtocolCCExcludeRequest extends ZWaveProtocolCCNodeInformationFrame {
|
|
769
757
|
};
|
|
770
|
-
ZWaveProtocolCCExcludeRequest = __decorate([
|
|
758
|
+
exports.ZWaveProtocolCCExcludeRequest = ZWaveProtocolCCExcludeRequest = __decorate([
|
|
771
759
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.ExcludeRequest)
|
|
772
760
|
], ZWaveProtocolCCExcludeRequest);
|
|
773
|
-
exports.
|
|
774
|
-
let ZWaveProtocolCCAssignReturnRoutePriority = class ZWaveProtocolCCAssignReturnRoutePriority extends ZWaveProtocolCC {
|
|
761
|
+
let ZWaveProtocolCCAssignReturnRoutePriority = exports.ZWaveProtocolCCAssignReturnRoutePriority = class ZWaveProtocolCCAssignReturnRoutePriority extends ZWaveProtocolCC {
|
|
775
762
|
constructor(host, options) {
|
|
776
763
|
super(host, options);
|
|
777
764
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -789,17 +776,15 @@ let ZWaveProtocolCCAssignReturnRoutePriority = class ZWaveProtocolCCAssignReturn
|
|
|
789
776
|
return super.serialize();
|
|
790
777
|
}
|
|
791
778
|
};
|
|
792
|
-
ZWaveProtocolCCAssignReturnRoutePriority = __decorate([
|
|
779
|
+
exports.ZWaveProtocolCCAssignReturnRoutePriority = ZWaveProtocolCCAssignReturnRoutePriority = __decorate([
|
|
793
780
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.AssignReturnRoutePriority)
|
|
794
781
|
], ZWaveProtocolCCAssignReturnRoutePriority);
|
|
795
|
-
exports.
|
|
796
|
-
let ZWaveProtocolCCAssignSUCReturnRoutePriority = class ZWaveProtocolCCAssignSUCReturnRoutePriority extends ZWaveProtocolCCAssignReturnRoutePriority {
|
|
782
|
+
let ZWaveProtocolCCAssignSUCReturnRoutePriority = exports.ZWaveProtocolCCAssignSUCReturnRoutePriority = class ZWaveProtocolCCAssignSUCReturnRoutePriority extends ZWaveProtocolCCAssignReturnRoutePriority {
|
|
797
783
|
};
|
|
798
|
-
ZWaveProtocolCCAssignSUCReturnRoutePriority = __decorate([
|
|
784
|
+
exports.ZWaveProtocolCCAssignSUCReturnRoutePriority = ZWaveProtocolCCAssignSUCReturnRoutePriority = __decorate([
|
|
799
785
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.AssignSUCReturnRoutePriority)
|
|
800
786
|
], ZWaveProtocolCCAssignSUCReturnRoutePriority);
|
|
801
|
-
exports.
|
|
802
|
-
let ZWaveProtocolCCSmartStartIncludedNodeInformation = class ZWaveProtocolCCSmartStartIncludedNodeInformation extends ZWaveProtocolCC {
|
|
787
|
+
let ZWaveProtocolCCSmartStartIncludedNodeInformation = exports.ZWaveProtocolCCSmartStartIncludedNodeInformation = class ZWaveProtocolCCSmartStartIncludedNodeInformation extends ZWaveProtocolCC {
|
|
803
788
|
constructor(host, options) {
|
|
804
789
|
super(host, options);
|
|
805
790
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -818,20 +803,17 @@ let ZWaveProtocolCCSmartStartIncludedNodeInformation = class ZWaveProtocolCCSmar
|
|
|
818
803
|
return super.serialize();
|
|
819
804
|
}
|
|
820
805
|
};
|
|
821
|
-
ZWaveProtocolCCSmartStartIncludedNodeInformation = __decorate([
|
|
806
|
+
exports.ZWaveProtocolCCSmartStartIncludedNodeInformation = ZWaveProtocolCCSmartStartIncludedNodeInformation = __decorate([
|
|
822
807
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.SmartStartIncludedNodeInformation)
|
|
823
808
|
], ZWaveProtocolCCSmartStartIncludedNodeInformation);
|
|
824
|
-
exports.
|
|
825
|
-
let ZWaveProtocolCCSmartStartPrime = class ZWaveProtocolCCSmartStartPrime extends ZWaveProtocolCCNodeInformationFrame {
|
|
809
|
+
let ZWaveProtocolCCSmartStartPrime = exports.ZWaveProtocolCCSmartStartPrime = class ZWaveProtocolCCSmartStartPrime extends ZWaveProtocolCCNodeInformationFrame {
|
|
826
810
|
};
|
|
827
|
-
ZWaveProtocolCCSmartStartPrime = __decorate([
|
|
811
|
+
exports.ZWaveProtocolCCSmartStartPrime = ZWaveProtocolCCSmartStartPrime = __decorate([
|
|
828
812
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.SmartStartPrime)
|
|
829
813
|
], ZWaveProtocolCCSmartStartPrime);
|
|
830
|
-
exports.
|
|
831
|
-
let ZWaveProtocolCCSmartStartInclusionRequest = class ZWaveProtocolCCSmartStartInclusionRequest extends ZWaveProtocolCCNodeInformationFrame {
|
|
814
|
+
let ZWaveProtocolCCSmartStartInclusionRequest = exports.ZWaveProtocolCCSmartStartInclusionRequest = class ZWaveProtocolCCSmartStartInclusionRequest extends ZWaveProtocolCCNodeInformationFrame {
|
|
832
815
|
};
|
|
833
|
-
ZWaveProtocolCCSmartStartInclusionRequest = __decorate([
|
|
816
|
+
exports.ZWaveProtocolCCSmartStartInclusionRequest = ZWaveProtocolCCSmartStartInclusionRequest = __decorate([
|
|
834
817
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ZWaveProtocolCommand.SmartStartInclusionRequest)
|
|
835
818
|
], ZWaveProtocolCCSmartStartInclusionRequest);
|
|
836
|
-
exports.ZWaveProtocolCCSmartStartInclusionRequest = ZWaveProtocolCCSmartStartInclusionRequest;
|
|
837
819
|
//# sourceMappingURL=ZWaveProtocolCC.js.map
|