espressif / esp-zigbee-sdk

Espressif Zigbee SDK
Apache License 2.0
178 stars 31 forks source link

How to implement color loops? (TZ-1171) #438

Closed monty68 closed 2 months ago

monty68 commented 2 months ago

Question

I am trying to implement the color loop feature and expected the stack to handle it as it does with other color-changing commands. Still, all I get when activating a color loop is that the stack is just sending enhanced hue/sat attribute updates with the same value.

Is there an example of how to implement color loops?

Additional context.

No response

monty68 commented 2 months ago

Some further observations:

  1. Stack changes the enhanced color mode to Hue/Saturation, but sends Enhanced Hue updates
  2. Stack correctly saves the last enhanced hue into the ColorLoopStoredEnhancedHue attribute
  3. Stack incorrectly ignores the ColorLoopStartEnhancedHue attribute
  4. Stack continues to send Enhanced Hue updates after the light has been turned off