diff --git a/packages/cc/api.md b/packages/cc/api.md index df29f37daf91..4c775cc6c929 100644 --- a/packages/cc/api.md +++ b/packages/cc/api.md @@ -1723,6 +1723,8 @@ export class BasicCC extends CommandClass { // (undocumented) ccCommand: BasicCommand; // (undocumented) + getDefinedValueIDs(applHost: ZWaveApplicationHost_2): ValueID_2[]; + // (undocumented) interview(applHost: ZWaveApplicationHost_2): Promise; // (undocumented) refreshValues(applHost: ZWaveApplicationHost_2): Promise; @@ -1811,7 +1813,7 @@ export const BasicCCValues: Readonly<{ readonly minVersion: 1; readonly supportsEndpoints: true; readonly stateful: false; - readonly autoCreate: (applHost: ZWaveApplicationHost_2, endpoint: IZWaveEndpoint_2) => boolean; + readonly autoCreate: false; }; }; restorePrevious: { @@ -12133,26 +12135,48 @@ export interface MultilevelSensorCCReportOptions extends CCCommandOptions { // // @public (undocumented) export class MultilevelSensorCCSupportedScaleReport extends MultilevelSensorCC { - constructor(host: ZWaveHost_2, options: CommandClassDeserializationOptions); + constructor(host: ZWaveHost_2, options: CommandClassDeserializationOptions | MultilevelSensorCCSupportedScaleReportOptions); // (undocumented) readonly sensorType: number; // (undocumented) + serialize(): Buffer; + // (undocumented) readonly supportedScales: readonly number[]; // (undocumented) toLogEntry(applHost: ZWaveApplicationHost_2): MessageOrCCLogEntry_2; } +// Warning: (ae-missing-release-tag) "MultilevelSensorCCSupportedScaleReportOptions" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export interface MultilevelSensorCCSupportedScaleReportOptions extends CCCommandOptions { + // (undocumented) + sensorType: number; + // (undocumented) + supportedScales: readonly number[]; +} + // Warning: (ae-missing-release-tag) "MultilevelSensorCCSupportedSensorReport" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) // // @public (undocumented) export class MultilevelSensorCCSupportedSensorReport extends MultilevelSensorCC { - constructor(host: ZWaveHost_2, options: CommandClassDeserializationOptions); + constructor(host: ZWaveHost_2, options: CommandClassDeserializationOptions | MultilevelSensorCCSupportedSensorReportOptions); + // (undocumented) + serialize(): Buffer; // (undocumented) - readonly supportedSensorTypes: readonly number[]; + supportedSensorTypes: readonly number[]; // (undocumented) toLogEntry(applHost: ZWaveApplicationHost_2): MessageOrCCLogEntry_2; } +// Warning: (ae-missing-release-tag) "MultilevelSensorCCSupportedSensorReportOptions" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export interface MultilevelSensorCCSupportedSensorReportOptions extends CCCommandOptions { + // (undocumented) + supportedSensorTypes: readonly number[]; +} + // Warning: (ae-missing-release-tag) "MultilevelSensorCCValues" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) // // @public (undocumented) diff --git a/packages/cc/src/cc/index.ts b/packages/cc/src/cc/index.ts index 709b3f9fce7c..05d329ac5f5f 100644 --- a/packages/cc/src/cc/index.ts +++ b/packages/cc/src/cc/index.ts @@ -444,6 +444,8 @@ export type { MultilevelSensorCCGetOptions, MultilevelSensorCCGetSupportedScaleOptions, MultilevelSensorCCReportOptions, + MultilevelSensorCCSupportedScaleReportOptions, + MultilevelSensorCCSupportedSensorReportOptions, } from "./MultilevelSensorCC"; export { MultilevelSensorCC, diff --git a/packages/core/api.md b/packages/core/api.md index e5ce67b4341e..7a53ef036b8d 100644 --- a/packages/core/api.md +++ b/packages/core/api.md @@ -3267,26 +3267,24 @@ export enum ZWaveErrorCodes { ConfigurationCC_NoResetToDefaultOnLegacyDevices = 1002, // (undocumented) Controller_CallbackNOK = 204, + Controller_CommandError = 215, + Controller_EndpointNotFound = 211, // (undocumented) - Controller_CommandAborted = 206, - Controller_CommandError = 216, - Controller_EndpointNotFound = 212, + Controller_ExclusionFailed = 207, // (undocumented) - Controller_ExclusionFailed = 208, - // (undocumented) - Controller_InclusionFailed = 207, - Controller_InterviewRestarted = 210, + Controller_InclusionFailed = 206, + Controller_InterviewRestarted = 209, // (undocumented) Controller_Jammed = 205, // (undocumented) Controller_MessageDropped = 202, - Controller_MessageExpired = 215, - Controller_MessageTooLarge = 217, - Controller_NodeInsecureCommunication = 214, - Controller_NodeNotFound = 211, - Controller_NodeRemoved = 213, + Controller_MessageExpired = 214, + Controller_MessageTooLarge = 216, + Controller_NodeInsecureCommunication = 213, + Controller_NodeNotFound = 210, + Controller_NodeRemoved = 212, Controller_NodeTimeout = 201, - Controller_NotSupported = 209, + Controller_NotSupported = 208, // (undocumented) Controller_ResponseNOK = 203, Controller_Timeout = 200, diff --git a/packages/testing/api.md b/packages/testing/api.md index 37a70e4023d8..15e65bce0a06 100644 --- a/packages/testing/api.md +++ b/packages/testing/api.md @@ -35,6 +35,7 @@ export type CCIdToCapabilities = T ex export type CCSpecificCapabilities = { [CommandClasses.Configuration]: ConfigurationCCCapabilities; [CommandClasses.Notification]: NotificationCCCapabilities; + [49]: MultilevelSensorCCCapabilities; [121]: SoundSwitchCCCapabilities; [106]: WindowCoveringCCCapabilities; [144]: EnergyProductionCCCapabilities; @@ -170,6 +171,8 @@ export class MockController { get nodes(): ReadonlyMap; onNodeFrame(node: MockNode, frame: MockZWaveFrame): Promise; // (undocumented) + get receivedHostMessages(): readonly Readonly[]; + // (undocumented) removeNode(node: MockNode): void; sendToHost(data: Buffer): Promise; sendToNode(node: MockNode, frame: LazyMockZWaveFrame): Promise; @@ -340,6 +343,18 @@ export interface MockZWaveRequestFrame { type: MockZWaveFrameType.Request; } +// Warning: (ae-missing-release-tag) "MultilevelSensorCCCapabilities" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export interface MultilevelSensorCCCapabilities { + // (undocumented) + getValue?: (sensorType: number | undefined, scale: number | undefined) => number | undefined; + // (undocumented) + sensors: Record; +} + // Warning: (ae-missing-release-tag) "NotificationCCCapabilities" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) // // @public (undocumented) diff --git a/packages/zwave-js/api.md b/packages/zwave-js/api.md index d95df676473d..653f0320ca84 100644 --- a/packages/zwave-js/api.md +++ b/packages/zwave-js/api.md @@ -1257,6 +1257,7 @@ export class ZWaveController extends TypedEventEmitter get protocolVersion(): MaybeNotKnown; provisionSmartStartNode(entry: PlannedProvisioningEntry): void; rebuildNodeRoutes(nodeId: number): Promise; + get rebuildRoutesProgress(): ReadonlyMap | undefined; removeAssociations(source: AssociationAddress, group: number, destinations: AssociationAddress[]): Promise; // Warning: (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen removeFailedNode(nodeId: number): Promise;