Skip to content

Commit

Permalink
Implemented in GUI "identifyPopup": #264
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jan 25, 2025
1 parent 567e5b4 commit 83806aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/matter/behaviors/IdentifyServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ export class IoIdentifyServer extends IdentifyServer {

handleIoIdentify(startToIdentify: boolean): MaybePromise<void> {
if (startToIdentify) {
// TODO push info to UI and show popup, ideally get the name from the device
// push info to UI and show popup, ideally get the name from the device
// or when using uuid be aware it could also be a bridged uuid
void this.internal.adapter.sendToGui({
command: 'identifyPopup',
identifyUuid: this.internal.device.uuid,
});
this.internal.adapter.log.info(`Identify started for ${this.internal.device.uuid}`);
} else {
this.internal.adapter.log.info(`Identify continues for ${this.internal.device.uuid}`);
Expand Down

0 comments on commit 83806aa

Please sign in to comment.