zwave-js 12.4.1 → 12.5.0-beta.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.
Files changed (49) hide show
  1. package/build/Utils.d.ts +2 -2
  2. package/build/Utils.d.ts.map +1 -1
  3. package/build/Utils.js +6 -1
  4. package/build/Utils.js.map +1 -1
  5. package/build/lib/controller/Controller.d.ts +3 -0
  6. package/build/lib/controller/Controller.d.ts.map +1 -1
  7. package/build/lib/controller/Controller.js +232 -82
  8. package/build/lib/controller/Controller.js.map +1 -1
  9. package/build/lib/controller/Inclusion.d.ts +8 -1
  10. package/build/lib/controller/Inclusion.d.ts.map +1 -1
  11. package/build/lib/controller/Inclusion.js.map +1 -1
  12. package/build/lib/controller/utils.d.ts.map +1 -1
  13. package/build/lib/controller/utils.js +12 -0
  14. package/build/lib/controller/utils.js.map +1 -1
  15. package/build/lib/driver/Driver.d.ts +1 -0
  16. package/build/lib/driver/Driver.d.ts.map +1 -1
  17. package/build/lib/driver/Driver.js +40 -34
  18. package/build/lib/driver/Driver.js.map +1 -1
  19. package/build/lib/driver/NetworkCache.d.ts.map +1 -1
  20. package/build/lib/driver/NetworkCache.js +26 -0
  21. package/build/lib/driver/NetworkCache.js.map +1 -1
  22. package/build/lib/node/Node.d.ts +3 -1
  23. package/build/lib/node/Node.d.ts.map +1 -1
  24. package/build/lib/node/Node.js +13 -0
  25. package/build/lib/node/Node.js.map +1 -1
  26. package/build/lib/serialapi/application/ApplicationUpdateRequest.d.ts +6 -1
  27. package/build/lib/serialapi/application/ApplicationUpdateRequest.d.ts.map +1 -1
  28. package/build/lib/serialapi/application/ApplicationUpdateRequest.js +11 -2
  29. package/build/lib/serialapi/application/ApplicationUpdateRequest.js.map +1 -1
  30. package/build/lib/serialapi/capability/GetLongRangeNodesMessages.d.ts +25 -0
  31. package/build/lib/serialapi/capability/GetLongRangeNodesMessages.d.ts.map +1 -0
  32. package/build/lib/serialapi/capability/GetLongRangeNodesMessages.js +77 -0
  33. package/build/lib/serialapi/capability/GetLongRangeNodesMessages.js.map +1 -0
  34. package/build/lib/serialapi/capability/LongRangeSetupMessages.d.ts +36 -0
  35. package/build/lib/serialapi/capability/LongRangeSetupMessages.d.ts.map +1 -0
  36. package/build/lib/serialapi/capability/LongRangeSetupMessages.js +111 -0
  37. package/build/lib/serialapi/capability/LongRangeSetupMessages.js.map +1 -0
  38. package/build/lib/serialapi/capability/SerialAPISetupMessages.d.ts +11 -11
  39. package/build/lib/serialapi/capability/SerialAPISetupMessages.d.ts.map +1 -1
  40. package/build/lib/serialapi/capability/SerialAPISetupMessages.js +37 -38
  41. package/build/lib/serialapi/capability/SerialAPISetupMessages.js.map +1 -1
  42. package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.d.ts +4 -1
  43. package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.d.ts.map +1 -1
  44. package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.js +12 -2
  45. package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.js.map +1 -1
  46. package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.d.ts.map +1 -1
  47. package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.js +12 -2
  48. package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.js.map +1 -1
  49. package/package.json +9 -9
package/build/Utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { QRCodeVersion, extractFirmware, guessFirmwareFileFormat, parseQRCodeString, rssiToString, } from "@zwave-js/core";
2
- export type { Firmware, FirmwareFileFormat, ProtocolDataRate, ProtocolType, ProtocolVersion, Protocols, QRProvisioningInformation, RouteProtocolDataRate, protocolDataRateToString, } from "@zwave-js/core";
1
+ export { ProtocolDataRate, ProtocolType, ProtocolVersion, Protocols, QRCodeVersion, RouteProtocolDataRate, extractFirmware, guessFirmwareFileFormat, parseQRCodeString, rssiToString, } from "@zwave-js/core";
2
+ export type { Firmware, FirmwareFileFormat, QRProvisioningInformation, protocolDataRateToString, } from "@zwave-js/core";
3
3
  export { buffer2hex, formatId, getEnumMemberName, num2hex, } from "@zwave-js/shared/safe";
4
4
  export { createDefaultBehaviors as createDefaultMockControllerBehaviors } from "./lib/controller/MockControllerBehaviors";
5
5
  export { driverPresets } from "./lib/driver/ZWaveOptions";
@@ -1 +1 @@
1
- {"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../src/Utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,aAAa,EACb,eAAe,EACf,uBAAuB,EACvB,iBAAiB,EACjB,YAAY,GACZ,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,QAAQ,EACR,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,SAAS,EACT,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,GACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACN,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,OAAO,GACP,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,IAAI,oCAAoC,EAAE,MAAM,0CAA0C,CAAC;AAC1H,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EACN,8BAA8B,EAC9B,gCAAgC,EAChC,2BAA2B,EAC3B,6BAA6B,EAC7B,uBAAuB,GACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,IAAI,8BAA8B,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../src/Utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,SAAS,EACT,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,iBAAiB,EACjB,YAAY,GACZ,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,wBAAwB,GACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACN,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,OAAO,GACP,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,IAAI,oCAAoC,EAAE,MAAM,0CAA0C,CAAC;AAC1H,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EACN,8BAA8B,EAC9B,gCAAgC,EAChC,2BAA2B,EAC3B,6BAA6B,EAC7B,uBAAuB,GACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,IAAI,8BAA8B,EAAE,MAAM,8BAA8B,CAAC"}
package/build/Utils.js CHANGED
@@ -1,8 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createDefaultMockNodeBehaviors = exports.healthCheckRatingToWord = exports.formatRouteHealthCheckSummary = exports.formatRouteHealthCheckRound = exports.formatLifelineHealthCheckSummary = exports.formatLifelineHealthCheckRound = exports.driverPresets = exports.createDefaultMockControllerBehaviors = exports.num2hex = exports.getEnumMemberName = exports.formatId = exports.buffer2hex = exports.rssiToString = exports.parseQRCodeString = exports.guessFirmwareFileFormat = exports.extractFirmware = exports.QRCodeVersion = void 0;
3
+ exports.createDefaultMockNodeBehaviors = exports.healthCheckRatingToWord = exports.formatRouteHealthCheckSummary = exports.formatRouteHealthCheckRound = exports.formatLifelineHealthCheckSummary = exports.formatLifelineHealthCheckRound = exports.driverPresets = exports.createDefaultMockControllerBehaviors = exports.num2hex = exports.getEnumMemberName = exports.formatId = exports.buffer2hex = exports.rssiToString = exports.parseQRCodeString = exports.guessFirmwareFileFormat = exports.extractFirmware = exports.RouteProtocolDataRate = exports.QRCodeVersion = exports.Protocols = exports.ProtocolVersion = exports.ProtocolType = exports.ProtocolDataRate = void 0;
4
4
  var core_1 = require("@zwave-js/core");
5
+ Object.defineProperty(exports, "ProtocolDataRate", { enumerable: true, get: function () { return core_1.ProtocolDataRate; } });
6
+ Object.defineProperty(exports, "ProtocolType", { enumerable: true, get: function () { return core_1.ProtocolType; } });
7
+ Object.defineProperty(exports, "ProtocolVersion", { enumerable: true, get: function () { return core_1.ProtocolVersion; } });
8
+ Object.defineProperty(exports, "Protocols", { enumerable: true, get: function () { return core_1.Protocols; } });
5
9
  Object.defineProperty(exports, "QRCodeVersion", { enumerable: true, get: function () { return core_1.QRCodeVersion; } });
10
+ Object.defineProperty(exports, "RouteProtocolDataRate", { enumerable: true, get: function () { return core_1.RouteProtocolDataRate; } });
6
11
  Object.defineProperty(exports, "extractFirmware", { enumerable: true, get: function () { return core_1.extractFirmware; } });
7
12
  Object.defineProperty(exports, "guessFirmwareFileFormat", { enumerable: true, get: function () { return core_1.guessFirmwareFileFormat; } });
8
13
  Object.defineProperty(exports, "parseQRCodeString", { enumerable: true, get: function () { return core_1.parseQRCodeString; } });
@@ -1 +1 @@
1
- {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../src/Utils.ts"],"names":[],"mappings":";;;AAAA,uCAMwB;AALvB,qGAAA,aAAa,OAAA;AACb,uGAAA,eAAe,OAAA;AACf,+GAAA,uBAAuB,OAAA;AACvB,yGAAA,iBAAiB,OAAA;AACjB,oGAAA,YAAY,OAAA;AAab,8CAK+B;AAJ9B,kGAAA,UAAU,OAAA;AACV,gGAAA,QAAQ,OAAA;AACR,yGAAA,iBAAiB,OAAA;AACjB,+FAAA,OAAO,OAAA;AAER,oFAA0H;AAAjH,+IAAA,sBAAsB,OAAwC;AACvE,0DAA0D;AAAjD,6GAAA,aAAa,OAAA;AACtB,sDAMgC;AAL/B,6HAAA,8BAA8B,OAAA;AAC9B,+HAAA,gCAAgC,OAAA;AAChC,0HAAA,2BAA2B,OAAA;AAC3B,4HAAA,6BAA6B,OAAA;AAC7B,sHAAA,uBAAuB,OAAA;AAExB,kEAAwG;AAA/F,mIAAA,sBAAsB,OAAkC"}
1
+ {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../src/Utils.ts"],"names":[],"mappings":";;;AAAA,uCAWwB;AAVvB,wGAAA,gBAAgB,OAAA;AAChB,oGAAA,YAAY,OAAA;AACZ,uGAAA,eAAe,OAAA;AACf,iGAAA,SAAS,OAAA;AACT,qGAAA,aAAa,OAAA;AACb,6GAAA,qBAAqB,OAAA;AACrB,uGAAA,eAAe,OAAA;AACf,+GAAA,uBAAuB,OAAA;AACvB,yGAAA,iBAAiB,OAAA;AACjB,oGAAA,YAAY,OAAA;AAQb,8CAK+B;AAJ9B,kGAAA,UAAU,OAAA;AACV,gGAAA,QAAQ,OAAA;AACR,yGAAA,iBAAiB,OAAA;AACjB,+FAAA,OAAO,OAAA;AAER,oFAA0H;AAAjH,+IAAA,sBAAsB,OAAwC;AACvE,0DAA0D;AAAjD,6GAAA,aAAa,OAAA;AACtB,sDAMgC;AAL/B,6HAAA,8BAA8B,OAAA;AAC9B,+HAAA,gCAAgC,OAAA;AAChC,0HAAA,2BAA2B,OAAA;AAC3B,4HAAA,6BAA6B,OAAA;AAC7B,sHAAA,uBAAuB,OAAA;AAExB,kEAAwG;AAA/F,mIAAA,sBAAsB,OAAkC"}
@@ -116,6 +116,9 @@ export declare class ZWaveController extends TypedEventEmitter<ControllerEventCa
116
116
  private _rfRegion;
117
117
  /** 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}. */
118
118
  get rfRegion(): MaybeNotKnown<RFRegion>;
119
+ private _supportsLongRange;
120
+ /** Whether the controller supports the Z-Wave Long Range protocol */
121
+ get supportsLongRange(): MaybeNotKnown<boolean>;
119
122
  private _nodes;
120
123
  /** A dictionary of the nodes connected to this controller */
121
124
  get nodes(): ReadonlyThrowingMap<number, ZWaveNode>;
@@ -1 +1 @@
1
- {"version":3,"file":"Controller.d.ts","sourceRoot":"","sources":["../../../src/lib/controller/Controller.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,KAAK,kBAAkB,EAEvB,KAAK,gBAAgB,EAGrB,KAAK,oBAAo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U,aAAa,CACzB,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,GACxD,OAAO,CAAC,IAAI,CAAC;YAyDF,gBAAgB;YAmDhB,gBAAgB;IAwC9B;;;;OAIG;IACU,iBAAiB,IAAI,OAAO,CAAC;QACzC,YAAY,EAAE,IAAI,CAAC;QACnB,YAAY,EAAE,IAAI,CAAC;QACnB,YAAY,CAAC,EAAE,IAAI,CAAC;KACpB,CAAC;IAkDF;;OAEG;IACI,gCAAgC,IAAI,OAAO;IASlD;;;;;;;OAOG;IACU,2BAA2B,CACvC,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,yBAAyB,GACjC,OAAO,CAAC,kBAAkB,EAAE,CAAC;IA8DhC,iHAAiH;YACnG,6BAA6B;IAoE3C;;;;;;;OAOG;IACU,iBAAiB,CAC7B,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,kBAAkB,GAC5B,OAAO,CAAC,oBAAoB,CAAC;IA6GhC,OAAO,CAAC,yBAAyB,CAAkB;IAEnD;;OAEG;IACI,0BAA0B,IAAI,OAAO;IAI5C;;;;;;;OAOG;IACU,iBAAiB,CAC7B,IAAI,EAAE,MAAM,GACV,OAAO,CAAC,8BAA8B,CAAC;YA2C5B,oBAAoB;YAwFpB,oBAAoB;CAgNlC"}
@@ -33,10 +33,12 @@ const SerialAPIStartedRequest_1 = require("../serialapi/application/SerialAPISta
33
33
  const ShutdownMessages_1 = require("../serialapi/application/ShutdownMessages");
34
34
  const GetControllerCapabilitiesMessages_1 = require("../serialapi/capability/GetControllerCapabilitiesMessages");
35
35
  const GetControllerVersionMessages_1 = require("../serialapi/capability/GetControllerVersionMessages");
36
+ const GetLongRangeNodesMessages_1 = require("../serialapi/capability/GetLongRangeNodesMessages");
36
37
  const GetProtocolVersionMessages_1 = require("../serialapi/capability/GetProtocolVersionMessages");
37
38
  const GetSerialApiCapabilitiesMessages_1 = require("../serialapi/capability/GetSerialApiCapabilitiesMessages");
38
39
  const GetSerialApiInitDataMessages_1 = require("../serialapi/capability/GetSerialApiInitDataMessages");
39
40
  const HardResetRequest_1 = require("../serialapi/capability/HardResetRequest");
41
+ const LongRangeSetupMessages_1 = require("../serialapi/capability/LongRangeSetupMessages");
40
42
  const SerialAPISetupMessages_1 = require("../serialapi/capability/SerialAPISetupMessages");
41
43
  const SetApplicationNodeInformationRequest_1 = require("../serialapi/capability/SetApplicationNodeInformationRequest");
42
44
  const GetControllerIdMessages_1 = require("../serialapi/memory/GetControllerIdMessages");
@@ -273,6 +275,11 @@ let ZWaveController = class ZWaveController extends shared_1.TypedEventEmitter {
273
275
  get rfRegion() {
274
276
  return this._rfRegion;
275
277
  }
278
+ _supportsLongRange;
279
+ /** Whether the controller supports the Z-Wave Long Range protocol */
280
+ get supportsLongRange() {
281
+ return this._supportsLongRange;
282
+ }
276
283
  _nodes;
277
284
  /** A dictionary of the nodes connected to this controller */
278
285
  get nodes() {
@@ -452,9 +459,10 @@ let ZWaveController = class ZWaveController extends shared_1.TypedEventEmitter {
452
459
  }
453
460
  /**
454
461
  * @internal
455
- * Queries the controller IDs and its Serial API capabilities
462
+ * Queries the controller / serial API capabilities.
463
+ * Returns a list of Z-Wave classic node IDs that are currently in the network.
456
464
  */
457
- async identify() {
465
+ async queryCapabilities() {
458
466
  // Figure out what the serial API can do
459
467
  this.driver.controllerLog.print(`querying Serial API capabilities...`);
460
468
  const apiCaps = await this.driver.sendMessage(new GetSerialApiCapabilitiesMessages_1.GetSerialApiCapabilitiesRequest(this.driver), {
@@ -473,6 +481,29 @@ let ZWaveController = class ZWaveController extends shared_1.TypedEventEmitter {
473
481
  supported functions: ${this._supportedFunctionTypes
474
482
  .map((fn) => `\n · ${serial_1.FunctionType[fn]} (${(0, shared_1.num2hex)(fn)})`)
475
483
  .join("")}`);
484
+ // Request additional information about the controller/Z-Wave chip
485
+ this.driver.controllerLog.print(`querying additional controller information...`);
486
+ const initData = await this.driver.sendMessage(new GetSerialApiInitDataMessages_1.GetSerialApiInitDataRequest(this.driver));
487
+ // and remember the new info
488
+ this._zwaveApiVersion = initData.zwaveApiVersion;
489
+ this._zwaveChipType = initData.zwaveChipType;
490
+ this._isPrimary = initData.isPrimary;
491
+ this._isSIS = initData.isSIS;
492
+ this._nodeType = initData.nodeType;
493
+ this._supportsTimers = initData.supportsTimers;
494
+ // ignore the initVersion, no clue what to do with it
495
+ this.driver.controllerLog.print(`received additional controller information:
496
+ Z-Wave API version: ${this._zwaveApiVersion.version} (${this._zwaveApiVersion.kind})${this._zwaveChipType
497
+ ? `
498
+ Z-Wave chip type: ${typeof this._zwaveChipType === "string"
499
+ ? this._zwaveChipType
500
+ : `unknown (type: ${(0, shared_1.num2hex)(this._zwaveChipType.type)}, version: ${(0, shared_1.num2hex)(this._zwaveChipType.version)})`}`
501
+ : ""}
502
+ node type ${(0, shared_1.getEnumMemberName)(core_1.NodeType, this._nodeType)}
503
+ controller role: ${this._isPrimary ? "primary" : "secondary"}
504
+ controller is the SIS: ${this._isSIS}
505
+ controller supports timers: ${this._supportsTimers}
506
+ Z-Wave Classic nodes: ${initData.nodeIds.join(", ")}`);
476
507
  // Get basic controller version info
477
508
  this.driver.controllerLog.print(`querying version info...`);
478
509
  const version = await this.driver.sendMessage(new GetControllerVersionMessages_1.GetControllerVersionRequest(this.driver), {
@@ -503,6 +534,23 @@ let ZWaveController = class ZWaveController extends shared_1.TypedEventEmitter {
503
534
  }
504
535
  // The SDK version cannot be queried directly, but we can deduce it from the protocol version
505
536
  this._sdkVersion = (0, ZWaveSDKVersions_1.protocolVersionToSDKVersion)(this._protocolVersion);
537
+ // find out what the controller can do
538
+ this.driver.controllerLog.print(`querying controller capabilities...`);
539
+ const ctrlCaps = await this.driver.sendMessage(new GetControllerCapabilitiesMessages_1.GetControllerCapabilitiesRequest(this.driver), {
540
+ supportCheck: false,
541
+ });
542
+ this._isPrimary = !ctrlCaps.isSecondary;
543
+ this._isUsingHomeIdFromOtherNetwork =
544
+ ctrlCaps.isUsingHomeIdFromOtherNetwork;
545
+ this._isSISPresent = ctrlCaps.isSISPresent;
546
+ this._wasRealPrimary = ctrlCaps.wasRealPrimary;
547
+ this._isSUC = ctrlCaps.isStaticUpdateController;
548
+ this.driver.controllerLog.print(`received controller capabilities:
549
+ controller role: ${this._isPrimary ? "primary" : "secondary"}
550
+ is the SUC: ${this._isSUC}
551
+ started this network: ${!this._isUsingHomeIdFromOtherNetwork}
552
+ SIS is present: ${this._isSISPresent}
553
+ was real primary: ${this._wasRealPrimary}`);
506
554
  // If the serial API can be configured, figure out which sub commands are supported
507
555
  // This MUST be done after querying the SDK version due to a bug in some 7.xx firmwares, which incorrectly encode the bitmask
508
556
  if (this.isFunctionSupported(serial_1.FunctionType.SerialAPISetup)) {
@@ -516,6 +564,59 @@ let ZWaveController = class ZWaveController extends shared_1.TypedEventEmitter {
516
564
  else {
517
565
  this._supportedSerialAPISetupCommands = [];
518
566
  }
567
+ // Figure out the maximum payload size for outgoing commands
568
+ let maxPayloadSize;
569
+ if (this.isSerialAPISetupCommandSupported(SerialAPISetupMessages_1.SerialAPISetupCommand.GetMaximumPayloadSize)) {
570
+ this.driver.controllerLog.print(`querying max. payload size...`);
571
+ maxPayloadSize = await this.getMaxPayloadSize();
572
+ this.driver.controllerLog.print(`maximum payload size: ${maxPayloadSize} bytes`);
573
+ // TODO: cache this information
574
+ }
575
+ this.driver.controllerLog.print(`supported Z-Wave features: ${Object.keys(Features_1.ZWaveFeature)
576
+ .filter((k) => /^\d+$/.test(k))
577
+ .map((k) => parseInt(k))
578
+ .filter((feat) => this.supportsFeature(feat))
579
+ .map((feat) => `\n · ${(0, shared_1.getEnumMemberName)(Features_1.ZWaveFeature, feat)}`)
580
+ .join("")}`);
581
+ return {
582
+ nodeIds: initData.nodeIds,
583
+ };
584
+ }
585
+ /**
586
+ * @internal
587
+ * Queries the controller's capabilities in regards to Z-Wave Long Range.
588
+ * Returns the list of Long Range node IDs
589
+ */
590
+ async queryLongRangeCapabilities() {
591
+ this.driver.controllerLog.print(`querying Z-Wave Long Range capabilities...`);
592
+ // Fetch the list of Long Range nodes
593
+ const lrNodeIds = await this.getLongRangeNodes();
594
+ let maxPayloadSizeLR;
595
+ if (this.isSerialAPISetupCommandSupported(SerialAPISetupMessages_1.SerialAPISetupCommand.GetLongRangeMaximumPayloadSize)) {
596
+ maxPayloadSizeLR = await this.getMaxPayloadSizeLongRange();
597
+ // TODO: cache this information
598
+ }
599
+ let lrChannel;
600
+ if (this.isFunctionSupported(serial_1.FunctionType.GetLongRangeChannel)) {
601
+ // TODO: restore/set the channel
602
+ const lrChannelResp = await this.driver.sendMessage(new LongRangeSetupMessages_1.GetLongRangeChannelRequest(this.driver));
603
+ lrChannel = lrChannelResp.longRangeChannel;
604
+ }
605
+ this.driver.controllerLog.print(`received Z-Wave Long Range capabilities:
606
+ max. payload size: ${maxPayloadSizeLR} bytes
607
+ channel: ${lrChannel
608
+ ? (0, shared_1.getEnumMemberName)(core_1.LongRangeChannel, lrChannel)
609
+ : "(unknown)"}
610
+ nodes: ${lrNodeIds.join(", ")}`);
611
+ return {
612
+ lrNodeIds,
613
+ };
614
+ }
615
+ /**
616
+ * @internal
617
+ * Queries the region and powerlevel settings and configures them if necessary
618
+ */
619
+ async queryAndConfigureRF() {
519
620
  // Check and possibly update the RF region to the desired value
520
621
  if (this.isSerialAPISetupCommandSupported(SerialAPISetupMessages_1.SerialAPISetupCommand.GetRFRegion)) {
521
622
  this.driver.controllerLog.print(`Querying configured RF region...`);
@@ -566,10 +667,12 @@ let ZWaveController = class ZWaveController extends shared_1.TypedEventEmitter {
566
667
  this.driver.controllerLog.print(`Querying the powerlevel failed!`, "warn");
567
668
  }
568
669
  }
569
- // Switch to 16 bit node IDs if supported. We need to do this here, as a controller may still be
570
- // in 16 bit mode when Z-Wave starts up. This would lead to an invalid node ID being reported.
571
- await this.trySetNodeIDType(core_1.NodeIDType.Long);
572
- // get the home and node id of the controller
670
+ }
671
+ /**
672
+ * @internal
673
+ * Queries the home and node id of the controller
674
+ */
675
+ async identify() {
573
676
  this.driver.controllerLog.print(`querying controller IDs...`);
574
677
  const ids = await this.driver.sendMessage(new GetControllerIdMessages_1.GetControllerIdRequest(this.driver), { supportCheck: false });
575
678
  this._homeId = ids.homeId;
@@ -580,33 +683,9 @@ let ZWaveController = class ZWaveController extends shared_1.TypedEventEmitter {
580
683
  }
581
684
  /**
582
685
  * @internal
583
- * Interviews the controller for the necessary information.
584
- * @param restoreFromCache Asynchronous callback for the driver to restore the network from cache after nodes are created
686
+ * Performs additional controller configuration
585
687
  */
586
- async interview(restoreFromCache) {
587
- this.driver.controllerLog.print(`supported Z-Wave features: ${Object.keys(Features_1.ZWaveFeature)
588
- .filter((k) => /^\d+$/.test(k))
589
- .map((k) => parseInt(k))
590
- .filter((feat) => this.supportsFeature(feat))
591
- .map((feat) => `\n · ${(0, shared_1.getEnumMemberName)(Features_1.ZWaveFeature, feat)}`)
592
- .join("")}`);
593
- // find out what the controller can do
594
- this.driver.controllerLog.print(`querying controller capabilities...`);
595
- const ctrlCaps = await this.driver.sendMessage(new GetControllerCapabilitiesMessages_1.GetControllerCapabilitiesRequest(this.driver), {
596
- supportCheck: false,
597
- });
598
- this._isPrimary = !ctrlCaps.isSecondary;
599
- this._isUsingHomeIdFromOtherNetwork =
600
- ctrlCaps.isUsingHomeIdFromOtherNetwork;
601
- this._isSISPresent = ctrlCaps.isSISPresent;
602
- this._wasRealPrimary = ctrlCaps.wasRealPrimary;
603
- this._isSUC = ctrlCaps.isStaticUpdateController;
604
- this.driver.controllerLog.print(`received controller capabilities:
605
- controller role: ${this._isPrimary ? "primary" : "secondary"}
606
- is the SUC: ${this._isSUC}
607
- started this network: ${!this._isUsingHomeIdFromOtherNetwork}
608
- SIS is present: ${this._isSISPresent}
609
- was real primary: ${this._wasRealPrimary}`);
688
+ async configure() {
610
689
  // Enable TX status report if supported
611
690
  if (this.isSerialAPISetupCommandSupported(SerialAPISetupMessages_1.SerialAPISetupCommand.SetTxStatusReport)) {
612
691
  this.driver.controllerLog.print(`Enabling TX status report...`);
@@ -651,40 +730,35 @@ let ZWaveController = class ZWaveController extends shared_1.TypedEventEmitter {
651
730
  && this.isFunctionSupported(serial_1.FunctionType.FUNC_ID_ZW_GET_VIRTUAL_NODES)) {
652
731
  // TODO: send FUNC_ID_ZW_GET_VIRTUAL_NODES message
653
732
  }
654
- // Request additional information about the controller/Z-Wave chip
655
- this.driver.controllerLog.print(`querying additional controller information...`);
656
- const initData = await this.driver.sendMessage(new GetSerialApiInitDataMessages_1.GetSerialApiInitDataRequest(this.driver));
657
- // and remember the new info
658
- this._zwaveApiVersion = initData.zwaveApiVersion;
659
- this._zwaveChipType = initData.zwaveChipType;
660
- this._isPrimary = initData.isPrimary;
661
- this._isSIS = initData.isSIS;
662
- this._nodeType = initData.nodeType;
663
- this._supportsTimers = initData.supportsTimers;
664
- // ignore the initVersion, no clue what to do with it
665
- this.driver.controllerLog.print(`received additional controller information:
666
- Z-Wave API version: ${this._zwaveApiVersion.version} (${this._zwaveApiVersion.kind})${this._zwaveChipType
667
- ? `
668
- Z-Wave chip type: ${typeof this._zwaveChipType === "string"
669
- ? this._zwaveChipType
670
- : `unknown (type: ${(0, shared_1.num2hex)(this._zwaveChipType.type)}, version: ${(0, shared_1.num2hex)(this._zwaveChipType.version)})`}`
671
- : ""}
672
- node type ${(0, shared_1.getEnumMemberName)(core_1.NodeType, this._nodeType)}
673
- controller role: ${this._isPrimary ? "primary" : "secondary"}
674
- controller is the SIS: ${this._isSIS}
675
- controller supports timers: ${this._supportsTimers}
676
- nodes in the network: ${initData.nodeIds.join(", ")}`);
733
+ if (this.type !== _Types_2.ZWaveLibraryTypes["Bridge Controller"]
734
+ && this.isFunctionSupported(serial_1.FunctionType.SetSerialApiTimeouts)) {
735
+ const { ack, byte } = this.driver.options.timeouts;
736
+ this.driver.controllerLog.print(`setting serial API timeouts: ack = ${ack} ms, byte = ${byte} ms`);
737
+ const resp = await this.driver.sendMessage(new SetSerialApiTimeoutsMessages_1.SetSerialApiTimeoutsRequest(this.driver, {
738
+ ackTimeout: ack,
739
+ byteTimeout: byte,
740
+ }));
741
+ this.driver.controllerLog.print(`serial API timeouts overwritten. The old values were: ack = ${resp.oldAckTimeout} ms, byte = ${resp.oldByteTimeout} ms`);
742
+ }
743
+ }
744
+ /**
745
+ * @internal
746
+ * Interviews the controller for the necessary information.
747
+ * @param restoreFromCache Asynchronous callback for the driver to restore the network from cache after nodes are created
748
+ */
749
+ async initNodes(classicNodeIds, lrNodeIds, restoreFromCache) {
677
750
  // Index the value DB for optimal performance
678
751
  const valueDBIndexes = (0, core_1.indexDBsByNode)([
679
752
  this.driver.valueDB,
680
753
  this.driver.metadataDB,
681
754
  ]);
682
- // create an empty entry in the nodes map so we can initialize them afterwards
683
- const nodeIds = [...initData.nodeIds];
755
+ const nodeIds = [...classicNodeIds];
684
756
  if (nodeIds.length === 0) {
685
757
  this.driver.controllerLog.print(`Controller reports no nodes in its network. This could be an indication of a corrupted controller memory.`, "warn");
686
758
  nodeIds.unshift(this._ownNodeId);
687
759
  }
760
+ nodeIds.push(...lrNodeIds);
761
+ // For each node, create an empty entry in the nodes map so we can initialize them afterwards
688
762
  for (const nodeId of nodeIds) {
689
763
  this._nodes.set(nodeId, new Node_1.ZWaveNode(nodeId, this.driver, undefined, undefined, undefined,
690
764
  // Use the previously created index to avoid doing extra work when creating the value DB
@@ -709,21 +783,30 @@ let ZWaveController = class ZWaveController extends shared_1.TypedEventEmitter {
709
783
  controllerValueDB.setValue(cc_1.VersionCCValues.zWaveProtocolVersion.id, this._protocolVersion);
710
784
  controllerValueDB.setMetadata(cc_1.VersionCCValues.sdkVersion.id, cc_1.VersionCCValues.sdkVersion.meta);
711
785
  controllerValueDB.setValue(cc_1.VersionCCValues.sdkVersion.id, this._sdkVersion);
712
- if (this.type !== _Types_2.ZWaveLibraryTypes["Bridge Controller"]
713
- && this.isFunctionSupported(serial_1.FunctionType.SetSerialApiTimeouts)) {
714
- const { ack, byte } = this.driver.options.timeouts;
715
- this.driver.controllerLog.print(`setting serial API timeouts: ack = ${ack} ms, byte = ${byte} ms`);
716
- const resp = await this.driver.sendMessage(new SetSerialApiTimeoutsMessages_1.SetSerialApiTimeoutsRequest(this.driver, {
717
- ackTimeout: ack,
718
- byteTimeout: byte,
719
- }));
720
- this.driver.controllerLog.print(`serial API timeouts overwritten. The old values were: ack = ${resp.oldAckTimeout} ms, byte = ${resp.oldByteTimeout} ms`);
721
- }
722
786
  this.driver.controllerLog.print("Interview completed");
723
787
  }
724
788
  createValueDBForNode(nodeId, ownKeys) {
725
789
  return new core_1.ValueDB(nodeId, this.driver.valueDB, this.driver.metadataDB, ownKeys);
726
790
  }
791
+ /**
792
+ * Gets the list of long range nodes from the controller.
793
+ * Warning: This only works when followed up by a hard-reset, so don't call this directly
794
+ * @internal
795
+ */
796
+ async getLongRangeNodes() {
797
+ const nodeIds = [];
798
+ if (this.supportsLongRange) {
799
+ for (let segment = 0;; segment++) {
800
+ const nodesResponse = await this.driver.sendMessage(new GetLongRangeNodesMessages_1.GetLongRangeNodesRequest(this.driver, {
801
+ segmentNumber: segment,
802
+ }));
803
+ nodeIds.push(...nodesResponse.nodeIds);
804
+ if (!nodesResponse.moreNodes)
805
+ break;
806
+ }
807
+ }
808
+ return nodeIds;
809
+ }
727
810
  /**
728
811
  * Sets the NIF of the controller to the Gateway device type and to include the CCs supported by Z-Wave JS.
729
812
  * Warning: This only works when followed up by a hard-reset, so don't call this directly
@@ -879,12 +962,19 @@ let ZWaveController = class ZWaveController extends shared_1.TypedEventEmitter {
879
962
  provisioning: provisioningEntry,
880
963
  };
881
964
  try {
882
- this.driver.controllerLog.print(`Including SmartStart node with DSK ${provisioningEntry.dsk}`);
883
- // kick off the inclusion process
965
+ // Kick off the inclusion process using either the
966
+ // specified protocol or the first supported one
884
967
  const dskBuffer = (0, core_1.dskFromString)(provisioningEntry.dsk);
968
+ const protocol = provisioningEntry.protocol
969
+ ?? provisioningEntry.supportedProtocols?.[0]
970
+ ?? core_1.Protocols.ZWave;
971
+ this.driver.controllerLog.print(`Including SmartStart node with DSK ${provisioningEntry.dsk}${protocol == core_1.Protocols.ZWaveLongRange
972
+ ? " using Z-Wave Long Range"
973
+ : ""}`);
885
974
  await this.driver.sendMessage(new AddNodeToNetworkRequest_1.AddNodeDSKToNetworkRequest(this.driver, {
886
975
  nwiHomeId: (0, core_1.nwiHomeIdFromDSK)(dskBuffer),
887
976
  authHomeId: (0, core_1.authHomeIdFromDSK)(dskBuffer),
977
+ protocol,
888
978
  highPower: true,
889
979
  networkWide: true,
890
980
  }));
@@ -1163,16 +1253,30 @@ let ZWaveController = class ZWaveController extends shared_1.TypedEventEmitter {
1163
1253
  return;
1164
1254
  }
1165
1255
  }
1166
- else if (msg instanceof ApplicationUpdateRequest_1.ApplicationUpdateRequestSmartStartHomeIDReceived) {
1167
- // the controller is in Smart Start learn mode and a node requests inclusion via Smart Start
1168
- this.driver.controllerLog.print("Received Smart Start inclusion request");
1256
+ else if (msg instanceof ApplicationUpdateRequest_1.ApplicationUpdateRequestSmartStartHomeIDReceived
1257
+ || msg
1258
+ instanceof ApplicationUpdateRequest_1.ApplicationUpdateRequestSmartStartLongRangeHomeIDReceived) {
1259
+ const isLongRange = msg
1260
+ instanceof ApplicationUpdateRequest_1.ApplicationUpdateRequestSmartStartLongRangeHomeIDReceived;
1261
+ // The controller is in Smart Start learn mode and a node requests inclusion via Smart Start
1262
+ this.driver.controllerLog.print(`Received Smart Start inclusion request${isLongRange ? " (Z-Wave Long Range)" : ""}`);
1169
1263
  if (this.inclusionState !== Inclusion_1.InclusionState.Idle
1170
1264
  && this.inclusionState !== Inclusion_1.InclusionState.SmartStart) {
1171
1265
  this.driver.controllerLog.print("Controller is busy and cannot handle this inclusion request right now...");
1172
1266
  return;
1173
1267
  }
1174
1268
  // Check if the node is on the provisioning list
1175
- const provisioningEntry = this.provisioningList.find((entry) => (0, core_1.nwiHomeIdFromDSK)((0, core_1.dskFromString)(entry.dsk)).equals(msg.nwiHomeId));
1269
+ const provisioningEntry = this.provisioningList.find((entry) => {
1270
+ if (!(0, core_1.nwiHomeIdFromDSK)((0, core_1.dskFromString)(entry.dsk)).equals(msg.nwiHomeId)) {
1271
+ return false;
1272
+ }
1273
+ // TODO: This is duplicated with the logic in beginInclusionSmartStart
1274
+ const entryProtocol = entry.protocol
1275
+ ?? entry.supportedProtocols?.[0]
1276
+ ?? core_1.Protocols.ZWave;
1277
+ return (entryProtocol === core_1.Protocols.ZWaveLongRange)
1278
+ === isLongRange;
1279
+ });
1176
1280
  if (!provisioningEntry) {
1177
1281
  this.driver.controllerLog.print("NWI Home ID not found in provisioning list, ignoring request...");
1178
1282
  return;
@@ -1267,9 +1371,11 @@ supported CCs: ${nodeInfo.supportedCCs
1267
1371
  else {
1268
1372
  // No command received, bootstrap node by ourselves
1269
1373
  this.driver.controllerLog.logNode(nodeId, "no initiate command received, bootstrapping node...");
1270
- // Assign SUC return route to make sure the node knows where to get its routes from
1271
- newNode.hasSUCReturnRoute = await this
1272
- .assignSUCReturnRoutes(newNode.id);
1374
+ if (newNode.protocol == core_1.Protocols.ZWave) {
1375
+ // Assign SUC return route to make sure the node knows where to get its routes from
1376
+ newNode.hasSUCReturnRoute = await this
1377
+ .assignSUCReturnRoutes(newNode.id);
1378
+ }
1273
1379
  // Include using the default inclusion strategy:
1274
1380
  // * Use S2 if possible,
1275
1381
  // * only use S0 if necessary,
@@ -2126,8 +2232,11 @@ supported CCs: ${nodeInfo.supportedCCs
2126
2232
  // We're communicating with the device, so assume it is alive
2127
2233
  // If it is actually a sleeping device, it will be marked as such later
2128
2234
  newNode.markAsAlive();
2129
- // Assign SUC return route to make sure the node knows where to get its routes from
2130
- newNode.hasSUCReturnRoute = await this.assignSUCReturnRoutes(newNode.id);
2235
+ if (newNode.protocol == core_1.Protocols.ZWave) {
2236
+ // Assign SUC return route to make sure the node knows where to get its routes from
2237
+ newNode.hasSUCReturnRoute = await this
2238
+ .assignSUCReturnRoutes(newNode.id);
2239
+ }
2131
2240
  const opts = this._inclusionOptions;
2132
2241
  let bootstrapFailure;
2133
2242
  let smartStartFailed = false;
@@ -2311,9 +2420,11 @@ supported CCs: ${nodeInfo.supportedCCs
2311
2420
  // We're communicating with the device, so assume it is alive
2312
2421
  // If it is actually a sleeping device, it will be marked as such later
2313
2422
  newNode.markAsAlive();
2314
- // Assign SUC return route to make sure the node knows where to get its routes from
2315
- newNode.hasSUCReturnRoute = await this
2316
- .assignSUCReturnRoutes(newNode.id);
2423
+ if (newNode.protocol == core_1.Protocols.ZWave) {
2424
+ // Assign SUC return route to make sure the node knows where to get its routes from
2425
+ newNode.hasSUCReturnRoute = await this
2426
+ .assignSUCReturnRoutes(newNode.id);
2427
+ }
2317
2428
  // Try perform the security bootstrap process. When replacing a node, we don't know any supported CCs
2318
2429
  // yet, so we need to trust the chosen inclusion strategy.
2319
2430
  const strategy = this._inclusionOptions.strategy;
@@ -2534,6 +2645,9 @@ supported CCs: ${nodeInfo.supportedCCs
2534
2645
  const todoListening = [];
2535
2646
  const todoSleeping = [];
2536
2647
  const addTodo = (nodeId) => {
2648
+ // Z-Wave Long Range does not route
2649
+ if ((0, core_1.isLongRangeNodeId)(nodeId))
2650
+ return;
2537
2651
  if (pendingNodes.has(nodeId)) {
2538
2652
  pendingNodes.delete(nodeId);
2539
2653
  const node = this.nodes.getOrThrow(nodeId);
@@ -2637,6 +2751,10 @@ supported CCs: ${nodeInfo.supportedCCs
2637
2751
  throw new core_1.ZWaveError(`Rebuilding routes for the controller itself is not possible!`, core_1.ZWaveErrorCodes.Argument_Invalid);
2638
2752
  }
2639
2753
  const node = this.nodes.getOrThrow(nodeId);
2754
+ // Z-Wave Long Range does not route
2755
+ if (node.protocol == core_1.Protocols.ZWaveLongRange) {
2756
+ throw new core_1.ZWaveError(`Cannot rebuild routes for nodes using Z-Wave Long Range!`, core_1.ZWaveErrorCodes.Argument_Invalid);
2757
+ }
2640
2758
  // Don't start the process twice
2641
2759
  if (this._isRebuildingRoutes) {
2642
2760
  this.driver.controllerLog.logNode(nodeId, `Cannot rebuild routes because another rebuilding process is in progress.`);
@@ -2820,6 +2938,10 @@ ${associatedNodes.join(", ")}`,
2820
2938
  * This will assign up to 4 routes, depending on the network topology (that the controller knows about).
2821
2939
  */
2822
2940
  async assignSUCReturnRoutes(nodeId) {
2941
+ if ((0, core_1.isLongRangeNodeId)(nodeId)) {
2942
+ this.driver.controllerLog.logNode(nodeId, `Cannot manage routes for nodes using Z-Wave Long Range!`, "error");
2943
+ return false;
2944
+ }
2823
2945
  this.driver.controllerLog.logNode(nodeId, {
2824
2946
  message: `Assigning SUC return route...`,
2825
2947
  direction: "outbound",
@@ -2872,6 +2994,10 @@ ${associatedNodes.join(", ")}`,
2872
2994
  * Returns `true` when the process was successful, or `false` if at least one step failed.
2873
2995
  */
2874
2996
  async assignCustomSUCReturnRoutes(nodeId, routes, priorityRoute) {
2997
+ if ((0, core_1.isLongRangeNodeId)(nodeId)) {
2998
+ this.driver.controllerLog.logNode(nodeId, `Cannot manage routes for nodes using Z-Wave Long Range!`, "error");
2999
+ return false;
3000
+ }
2875
3001
  this.driver.controllerLog.logNode(nodeId, {
2876
3002
  message: `Assigning custom SUC return routes...`,
2877
3003
  direction: "outbound",
@@ -2952,6 +3078,10 @@ ${associatedNodes.join(", ")}`,
2952
3078
  * This will assign up to 4 routes, depending on the network topology (that the controller knows about).
2953
3079
  */
2954
3080
  async deleteSUCReturnRoutes(nodeId) {
3081
+ if ((0, core_1.isLongRangeNodeId)(nodeId)) {
3082
+ this.driver.controllerLog.logNode(nodeId, `Cannot manage routes for nodes using Z-Wave Long Range!`, "error");
3083
+ return false;
3084
+ }
2955
3085
  this.driver.controllerLog.logNode(nodeId, {
2956
3086
  message: `Deleting SUC return route...`,
2957
3087
  direction: "outbound",
@@ -3000,6 +3130,14 @@ ${associatedNodes.join(", ")}`,
3000
3130
  * This will assign up to 4 routes, depending on the network topology (that the controller knows about).
3001
3131
  */
3002
3132
  async assignReturnRoutes(nodeId, destinationNodeId) {
3133
+ if ((0, core_1.isLongRangeNodeId)(nodeId)) {
3134
+ this.driver.controllerLog.logNode(nodeId, `Cannot manage routes for nodes using Z-Wave Long Range!`, "error");
3135
+ return false;
3136
+ }
3137
+ else if ((0, core_1.isLongRangeNodeId)(destinationNodeId)) {
3138
+ this.driver.controllerLog.logNode(destinationNodeId, `Cannot manage routes for nodes using Z-Wave Long Range!`, "error");
3139
+ return false;
3140
+ }
3003
3141
  // Make sure this is not misused by passing the controller's node ID
3004
3142
  if (destinationNodeId === this.ownNodeId) {
3005
3143
  throw new core_1.ZWaveError(`To assign a return route to the SUC (node ID ${destinationNodeId}), assignSUCReturnRoutes() must be used!`, core_1.ZWaveErrorCodes.Argument_Invalid);
@@ -3037,6 +3175,14 @@ ${associatedNodes.join(", ")}`,
3037
3175
  * **Note:** Calling {@link assignReturnRoutes} or {@link deleteReturnRoutes} will override the custom routes.
3038
3176
  */
3039
3177
  async assignCustomReturnRoutes(nodeId, destinationNodeId, routes, priorityRoute) {
3178
+ if ((0, core_1.isLongRangeNodeId)(nodeId)) {
3179
+ this.driver.controllerLog.logNode(nodeId, `Cannot manage routes for nodes using Z-Wave Long Range!`, "error");
3180
+ return false;
3181
+ }
3182
+ else if ((0, core_1.isLongRangeNodeId)(destinationNodeId)) {
3183
+ this.driver.controllerLog.logNode(destinationNodeId, `Cannot manage routes for nodes using Z-Wave Long Range!`, "error");
3184
+ return false;
3185
+ }
3040
3186
  // Make sure this is not misused by passing the controller's node ID
3041
3187
  if (destinationNodeId === this.ownNodeId) {
3042
3188
  throw new core_1.ZWaveError(`To assign custom return routes to the SUC (node ID ${destinationNodeId}), assignCustomSUCReturnRoutes() must be used!`, core_1.ZWaveErrorCodes.Argument_Invalid);
@@ -3126,6 +3272,10 @@ ${associatedNodes.join(", ")}`,
3126
3272
  * other end nodes, including the priority return routes.
3127
3273
  */
3128
3274
  async deleteReturnRoutes(nodeId) {
3275
+ if ((0, core_1.isLongRangeNodeId)(nodeId)) {
3276
+ this.driver.controllerLog.logNode(nodeId, `Cannot manage routes for nodes using Z-Wave Long Range!`, "error");
3277
+ return false;
3278
+ }
3129
3279
  this.driver.controllerLog.logNode(nodeId, {
3130
3280
  message: `Deleting all return routes...`,
3131
3281
  direction: "outbound",
@@ -3707,7 +3857,7 @@ ${associatedNodes.join(", ")}`,
3707
3857
  * Request the maximum payload that the Z-Wave API Module can accept for transmitting Z-Wave Long Range frames. This value depends on the RF Profile
3708
3858
  */
3709
3859
  async getMaxPayloadSizeLongRange() {
3710
- const result = await this.driver.sendMessage(new SerialAPISetupMessages_1.SerialAPISetup_GetLRMaximumPayloadSizeRequest(this.driver));
3860
+ const result = await this.driver.sendMessage(new SerialAPISetupMessages_1.SerialAPISetup_GetLongRangeMaximumPayloadSizeRequest(this.driver));
3711
3861
  if (result instanceof SerialAPISetupMessages_1.SerialAPISetup_CommandUnsupportedResponse) {
3712
3862
  throw new core_1.ZWaveError(`Your hardware does not support getting the max. long range payload size!`, core_1.ZWaveErrorCodes.Driver_NotSupported);
3713
3863
  }