Change light type dynamically

Hello together,

I just figured out how I can run my tuya device with ESPHome and want to make the experience smoother now.

My device is RGB strip controller with different modes (Single color, dual white, RGB, RGBW, RGBCCT). Based on the mode, I want to change attributes of the light.

I’m not sure, if I can just set all parameters in ESPHome by default and change the color_mode in HomeAssistant or not.

Here I have a select dropdown which also sends the required data to the tuya device. Then the light should update with the new parameters (color_mode, add/remove the parameter based on the mode). The device can do this without restarting or anything, the same way I want to handle it in HomeAssistant/ESPHome.

Bonus: How is it possible to display the light attributes? My devices through local tuya can display their attribute “RAW” state. How can I accomplish this with my ESPHome device?

Thanks for recommendations :slight_smile: