As documented in home-assistant/core#58569, if an RGBCCT bulb is in work_modecolour, then sending a command that has switch_led, work_mode, and temp_value_v2 will correctly transition the bulb to color temperature mode at the requested brightness. I.e.:
As documented in home-assistant/core#58569, if an RGBCCT bulb is in
work_mode
colour
, then sending a command that hasswitch_led
,work_mode
, andtemp_value_v2
will correctly transition the bulb to color temperature mode at the requested brightness. I.e.:will produce a response like:
However, a subsequent command that tries to change it back to
colour
with a different brightness:will update the brightness and the
colour_data
, but not changework_mode
, as demonstrated in the response:The desired final state can only be achieved by sending two commands, one for the color setting, and one for brightness.
Reproduced in Home Assistant 2021.11.0b0 which is using tuya-iot-py-sdk 0.6.3.