After playing around with other templates, GPIO pins and flags, I finally found a version that seems to work perfectly for my LEDVANCE A100 tunable white bulbs.
Turns out the bulb uses 1 PWM (7) for brightness and 1 PWM_n (8) for color temperature, and Flag 8 expects the first channel to be for color. That's why I set pin 7 to channel 5 and pin 8 to channel 4. It was the other way around when I extracted the config from the Tuya partition.
After adding the bulb to HA with these settings, the controls were correct.
Turns out the bulb uses 1 PWM (7) for brightness and 1 PWM_n (8) for color temperature, and Flag 8 expects the first channel to be for color. That's why I set pin 7 to channel 5 and pin 8 to channel 4. It was the other way around when I extracted the config from the Tuya partition.
After adding the bulb to HA with these settings, the controls were correct.
Code: JSON