diff --git a/packages/matter.js/src/CommissioningServer.ts b/packages/matter.js/src/CommissioningServer.ts index a2d9a5ea93..2ef4f094eb 100644 --- a/packages/matter.js/src/CommissioningServer.ts +++ b/packages/matter.js/src/CommissioningServer.ts @@ -529,6 +529,12 @@ export class CommissioningServer extends MatterNode { throw new ImplementationError("Add the node to the Matter instance before!"); } + if (this.interactionServer !== undefined && this.deviceInstance !== undefined) { + logger.debug("Device already initialized, just advertise the instance again ..."); + await this.deviceInstance.announce(); + return; + } + const basicInformation = this.getRootClusterServer(BasicInformationCluster); if (basicInformation == undefined) { throw new ImplementationError("BasicInformationCluster needs to be set!");