[ColorControl] TickSat sends a stop hue frame to the delegate while a color loop is running
Author: Alami-AmineCreated Sep 29, 2026Updated Sep 29, 2026
Problem
- While a color loop runs alongside a saturation transition,
ColorControlCluster::TickSatre-asserts the enhanced hue withOnEnhancedHueChanged(hue, hueMoving), wherehueMovingonly checks for a hue transition. - A running loop is not a hue transition, so every saturation tick sends
transitionActive == false. This happens for a saturation transition that is running when the loop starts, and forMoveToSaturationsent while the loop runs. ColorControlDelegate.hdefines a false frame as an instruction to stop moving, and says an active color loop's frames are always true.- A delegate that runs the loop in hardware (the case
OnColorLoopStartedis documented for) would stop it, whileColorLoopActivestays 1.
Proposed fix
- Treat a driving loop as a moving hue axis in
TickSat:hueMoving = ((hsx != nullptr) && hsx->hue.has_value()) || LoopIsDriving(); - Unit test: a delegate that tracks hardware-loop state stays "looping" through a saturation transition started before or during the loop.
Raised in review of #74447 (https://github.com/project-chip/connectedhomeip/pull/74447#discussion_r4124870893).
cc @andy31415 @marybadalyan
Source: project-chip/connectedhomeip