zwave-js 15.7.0 → 15.9.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/cjs/lib/_version.d.ts +1 -1
- package/build/cjs/lib/_version.js +1 -1
- package/build/cjs/lib/_version.js.map +1 -1
- package/build/cjs/lib/controller/Controller.d.ts +42 -23
- package/build/cjs/lib/controller/Controller.js +812 -522
- package/build/cjs/lib/controller/Controller.js.map +3 -3
- package/build/cjs/lib/driver/Driver.d.ts +10 -34
- package/build/cjs/lib/driver/Driver.js +49 -35
- package/build/cjs/lib/driver/Driver.js.map +2 -2
- package/build/cjs/lib/driver/NetworkCache.js +30 -2
- package/build/cjs/lib/driver/NetworkCache.js.map +2 -2
- package/build/cjs/lib/driver/Task.d.ts +10 -0
- package/build/cjs/lib/driver/Task.js.map +2 -2
- package/build/cjs/lib/driver/ZWaveOptions.d.ts +12 -6
- package/build/cjs/lib/driver/ZWaveOptions.js.map +2 -2
- package/build/cjs/lib/node/Node.d.ts +7 -2
- package/build/cjs/lib/node/Node.js +14 -3
- package/build/cjs/lib/node/Node.js.map +2 -2
- package/build/cjs/lib/node/NodeStatistics.d.ts +1 -1
- package/build/cjs/lib/node/NodeStatistics.js +9 -1
- package/build/cjs/lib/node/NodeStatistics.js.map +2 -2
- package/build/cjs/lib/node/mixins/70_FirmwareUpdate.js +7 -6
- package/build/cjs/lib/node/mixins/70_FirmwareUpdate.js.map +2 -2
- package/build/cjs/lib/node/mixins/80_DeviceConfig.d.ts +1 -1
- package/build/cjs/lib/node/mixins/80_DeviceConfig.js +36 -11
- package/build/cjs/lib/node/mixins/80_DeviceConfig.js.map +2 -2
- package/build/esm/lib/_version.d.ts +1 -1
- package/build/esm/lib/_version.js +1 -1
- package/build/esm/lib/controller/Controller.d.ts +42 -23
- package/build/esm/lib/controller/Controller.d.ts.map +1 -1
- package/build/esm/lib/controller/Controller.js +1180 -811
- package/build/esm/lib/controller/Controller.js.map +1 -1
- package/build/esm/lib/driver/Driver.d.ts +10 -34
- package/build/esm/lib/driver/Driver.d.ts.map +1 -1
- package/build/esm/lib/driver/Driver.js +52 -35
- package/build/esm/lib/driver/Driver.js.map +1 -1
- package/build/esm/lib/driver/NetworkCache.d.ts.map +1 -1
- package/build/esm/lib/driver/NetworkCache.js +38 -2
- package/build/esm/lib/driver/NetworkCache.js.map +1 -1
- package/build/esm/lib/driver/Task.d.ts +10 -0
- package/build/esm/lib/driver/Task.d.ts.map +1 -1
- package/build/esm/lib/driver/Task.js.map +1 -1
- package/build/esm/lib/driver/ZWaveOptions.d.ts +12 -6
- package/build/esm/lib/driver/ZWaveOptions.d.ts.map +1 -1
- package/build/esm/lib/driver/ZWaveOptions.js.map +1 -1
- package/build/esm/lib/node/Node.d.ts +7 -2
- package/build/esm/lib/node/Node.d.ts.map +1 -1
- package/build/esm/lib/node/Node.js +15 -3
- package/build/esm/lib/node/Node.js.map +1 -1
- package/build/esm/lib/node/NodeStatistics.d.ts +1 -1
- package/build/esm/lib/node/NodeStatistics.d.ts.map +1 -1
- package/build/esm/lib/node/NodeStatistics.js +10 -1
- package/build/esm/lib/node/NodeStatistics.js.map +1 -1
- package/build/esm/lib/node/mixins/70_FirmwareUpdate.d.ts.map +1 -1
- package/build/esm/lib/node/mixins/70_FirmwareUpdate.js +7 -6
- package/build/esm/lib/node/mixins/70_FirmwareUpdate.js.map +1 -1
- package/build/esm/lib/node/mixins/80_DeviceConfig.d.ts +1 -1
- package/build/esm/lib/node/mixins/80_DeviceConfig.d.ts.map +1 -1
- package/build/esm/lib/node/mixins/80_DeviceConfig.js +71 -22
- package/build/esm/lib/node/mixins/80_DeviceConfig.js.map +1 -1
- package/package.json +16 -16
|
@@ -22,7 +22,7 @@ __export(version_exports, {
|
|
|
22
22
|
PACKAGE_VERSION: () => PACKAGE_VERSION
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(version_exports);
|
|
25
|
-
const PACKAGE_VERSION = "15.
|
|
25
|
+
const PACKAGE_VERSION = "15.9.0";
|
|
26
26
|
const PACKAGE_NAME = "zwave-js";
|
|
27
27
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
28
|
0 && (module.exports = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/lib/_version.ts"],
|
|
4
|
-
"sourcesContent": ["// This file is auto-generated by the codegen maintenance script\nexport const PACKAGE_VERSION = \"15.
|
|
4
|
+
"sourcesContent": ["// This file is auto-generated by the codegen maintenance script\nexport const PACKAGE_VERSION = \"15.9.0\";\nexport const PACKAGE_NAME = \"zwave-js\";\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;;;;;;AACO,MAAM,kBAAkB;AACxB,MAAM,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -131,6 +131,12 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
131
131
|
private _rfRegion;
|
|
132
132
|
/** Which RF region the controller is currently set to, or `undefined` if it could not be determined (yet). This value is cached and can be changed through {@link setRFRegion}. */
|
|
133
133
|
get rfRegion(): MaybeNotKnown<RFRegion>;
|
|
134
|
+
private _txPower;
|
|
135
|
+
/** The transmit power used for Z-Wave mesh, or `undefined` if it could not be determined (yet). This value is cached and can be changed through {@link setPowerlevel}. */
|
|
136
|
+
get txPower(): MaybeNotKnown<number>;
|
|
137
|
+
private _powerlevelCalibration;
|
|
138
|
+
/** The calibration value for the transmit power, or `undefined` if it could not be determined (yet). This value is cached and can be changed through {@link setPowerlevel}. */
|
|
139
|
+
get powerlevelCalibration(): MaybeNotKnown<number>;
|
|
134
140
|
private _supportsLongRange;
|
|
135
141
|
/** Whether the controller supports the Z-Wave Long Range protocol */
|
|
136
142
|
get supportsLongRange(): MaybeNotKnown<boolean>;
|
|
@@ -222,13 +228,6 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
222
228
|
private _inclusionState;
|
|
223
229
|
get inclusionState(): InclusionState;
|
|
224
230
|
private _smartStartEnabled;
|
|
225
|
-
private _includeController;
|
|
226
|
-
private _exclusionOptions;
|
|
227
|
-
private _inclusionOptions;
|
|
228
|
-
private _nodePendingInclusion;
|
|
229
|
-
private _nodePendingExclusion;
|
|
230
|
-
private _nodePendingReplace;
|
|
231
|
-
private _replaceFailedPromise;
|
|
232
231
|
/**
|
|
233
232
|
* Starts the inclusion process of new nodes.
|
|
234
233
|
* Resolves to true when the process was started, and false if the inclusion was already active.
|
|
@@ -236,6 +235,15 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
236
235
|
* @param options Defines the inclusion strategy to use.
|
|
237
236
|
*/
|
|
238
237
|
beginInclusion(options?: InclusionOptions): Promise<boolean>;
|
|
238
|
+
/**
|
|
239
|
+
* Returns the task to handle the complete classic inclusion process
|
|
240
|
+
*/
|
|
241
|
+
private getBeginClassicInclusionTask;
|
|
242
|
+
/**
|
|
243
|
+
* Returns the task to handle the complete classic inclusion process
|
|
244
|
+
*/
|
|
245
|
+
private getBeginSmartStartInclusionTask;
|
|
246
|
+
private performInclusion;
|
|
239
247
|
/**
|
|
240
248
|
* Finishes an inclusion process. This must only be called after the ProtocolDone status is received.
|
|
241
249
|
* Returns the ID of the newly added node.
|
|
@@ -246,6 +254,12 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
246
254
|
* and false if the inclusion was not active.
|
|
247
255
|
*/
|
|
248
256
|
stopInclusion(): Promise<boolean>;
|
|
257
|
+
/**
|
|
258
|
+
* Stops an active inclusion process, but does not remove the corresponding task.
|
|
259
|
+
* This should only be used from within an inclusion task, or other methods that
|
|
260
|
+
* handle task removal
|
|
261
|
+
*/
|
|
262
|
+
private stopInclusionInternal;
|
|
249
263
|
/**
|
|
250
264
|
* Puts the controller into listening mode for Smart Start inclusion.
|
|
251
265
|
* Whenever a node on the provisioning list announces itself, it will automatically be added.
|
|
@@ -269,9 +283,20 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
269
283
|
beginExclusion(options?: ExclusionOptions): Promise<boolean>;
|
|
270
284
|
/**
|
|
271
285
|
* Stops an active exclusion process. Resolves to true when the controller leaves exclusion mode,
|
|
272
|
-
* and false if the
|
|
286
|
+
* and false if the exclusion was not active.
|
|
273
287
|
*/
|
|
274
288
|
stopExclusion(): Promise<boolean>;
|
|
289
|
+
/**
|
|
290
|
+
* Stops an active exclusion process, but does not remove the corresponding task.
|
|
291
|
+
* This should only be used from within an exclusion task, or other methods that
|
|
292
|
+
* handle task removal
|
|
293
|
+
*/
|
|
294
|
+
private stopExclusionInternal;
|
|
295
|
+
/**
|
|
296
|
+
* Returns the task to handle the complete exclusion process
|
|
297
|
+
*/
|
|
298
|
+
private getExclusionTask;
|
|
299
|
+
private performExclusion;
|
|
275
300
|
private _proxyInclusionMachine;
|
|
276
301
|
private _proxyInclusionInitiateTimeout;
|
|
277
302
|
private updateProxyInclusionMachine;
|
|
@@ -284,21 +309,6 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
284
309
|
private cancelBootstrapS2Promise;
|
|
285
310
|
cancelSecureBootstrapS2(reason: KEXFailType): void;
|
|
286
311
|
private secureBootstrapS2;
|
|
287
|
-
/**
|
|
288
|
-
* Is called when an AddNode request is received from the controller.
|
|
289
|
-
* Handles and controls the inclusion process.
|
|
290
|
-
*/
|
|
291
|
-
private handleAddNodeStatusReport;
|
|
292
|
-
/**
|
|
293
|
-
* Is called when an ReplaceFailed request is received from the controller.
|
|
294
|
-
* Handles and controls the replace process.
|
|
295
|
-
*/
|
|
296
|
-
private handleReplaceNodeStatusReport;
|
|
297
|
-
/**
|
|
298
|
-
* Is called when a RemoveNode request is received from the controller.
|
|
299
|
-
* Handles and controls the exclusion process.
|
|
300
|
-
*/
|
|
301
|
-
private handleRemoveNodeStatusReport;
|
|
302
312
|
private _rebuildRoutesProgress;
|
|
303
313
|
/**
|
|
304
314
|
* If routes are currently being rebuilt for the entire network, this returns the current progress.
|
|
@@ -518,12 +528,18 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
518
528
|
* @param nodeId The id of the node to remove
|
|
519
529
|
*/
|
|
520
530
|
removeFailedNode(nodeId: number): Promise<void>;
|
|
531
|
+
private getRemoveFailedNodeTask;
|
|
521
532
|
/**
|
|
522
533
|
* Replace a failed node from the controller's memory. If the process fails, this will throw an exception with the details why.
|
|
523
534
|
* @param nodeId The id of the node to replace
|
|
524
535
|
* @param options Defines the inclusion strategy to use for the replacement node
|
|
525
536
|
*/
|
|
526
537
|
replaceFailedNode(nodeId: number, options?: ReplaceNodeOptions): Promise<boolean>;
|
|
538
|
+
/**
|
|
539
|
+
* Returns the task to handle the complete exclusion process
|
|
540
|
+
*/
|
|
541
|
+
private getReplaceFailedNodeTask;
|
|
542
|
+
private replaceFailedNodeTask;
|
|
527
543
|
/** Configure the RF region at the Z-Wave API Module */
|
|
528
544
|
setRFRegion(region: RFRegion): Promise<boolean>;
|
|
529
545
|
/** Configure the RF region at the Z-Wave API Module */
|
|
@@ -554,6 +570,7 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
554
570
|
* for example `USA` which is a subset of `USA (Long Range)`
|
|
555
571
|
*/
|
|
556
572
|
getSupportedRFRegions(filterSubsets?: boolean): MaybeNotKnown<readonly RFRegion[]>;
|
|
573
|
+
private applyLegalPowerlevelLimits;
|
|
557
574
|
/** Configure the Powerlevel setting of the Z-Wave API */
|
|
558
575
|
setPowerlevel(powerlevel: number, measured0dBm: number): Promise<boolean>;
|
|
559
576
|
/** Request the Powerlevel setting of the Z-Wave API */
|
|
@@ -562,6 +579,8 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
562
579
|
setMaxLongRangePowerlevel(limit: number): Promise<boolean>;
|
|
563
580
|
/** Request the maximum TX powerlevel setting for Z-Wave Long Range */
|
|
564
581
|
getMaxLongRangePowerlevel(): Promise<number>;
|
|
582
|
+
private applyDesiredPowerlevelMesh;
|
|
583
|
+
private applyDesiredPowerlevelLR;
|
|
565
584
|
/**
|
|
566
585
|
* Configure channel to use for Z-Wave Long Range.
|
|
567
586
|
*/
|