Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Luligu committed Nov 26, 2024
1 parent 268fd10 commit f4afc73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf

// Set light on/off to off
await this.dimmer?.setAttribute(OnOffCluster.id, 'onOff', false, this.dimmer.log);
const minLevel = this.dimmer?.getAttribute(LevelControlCluster.id, 'currentLevel', this.dimmer.log) | 0;
const minLevel = this.dimmer?.getAttribute(LevelControlCluster.id, 'minLevel', this.dimmer.log) | 0;
await this.dimmer?.setAttribute(LevelControlCluster.id, 'currentLevel', minLevel, this.dimmer.log);
this.dimmer?.log.info(`Set dimmer initial onOff to false, currentLevel to ${minLevel}.`);

Expand Down

0 comments on commit f4afc73

Please sign in to comment.