Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OnOff state shadowing by the LevelControl cluster while OnOff tra… #36924

Closed
wants to merge 0 commits into from

Conversation

lmapii
Copy link

@lmapii lmapii commented Dec 20, 2024

Description

The LevelControl server shadows the OnOff state if it is performing an On/Off transition and incorrectly changes the CurrentLevel in case an On transition is interrupted by an OnOff::Command::Off.

In short: When receiving a new command, the CurrentLevel is updated with the temporary level that is used by an On/Off effect transition. For lighting applications this is very undesirable since you don't want to change the lighting level just because you pushed the On/Off switch while a dimming effect was in progress.

Fixes/see #36579

Discussion

This PR introduces a new emberAfOnOffClusterLevelControlIsEffectActiveCallback - I didn't know what else to use since the information about a state transition is stored in the LevelControl cluster.

I'm also not very happy with the way I'm checking whether a transition is in progress (comparing against the levels) but I didn't want to introduce too many breaking changes to the state information tracked by the LevelControl and OnOff clusters.

Copy link

Review changes with  SemanticDiff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant