Manually select color modes of light entities

Hi,
I’m working on an integration that connects to a RestAPI and creates devices with light entities. Unfortunately I cannot determine the supported color modes with the API.

So is it possible to somehow select which color modes are supported for every device at the end of a config flow?

Best regards!

Yes you could select this in config flow but if you have multiple light devices under 1 instance (read config flow), i would say this would be very user unfriendly to do.

What maybe better is to set a default colour mode for each light and provide a select entity to change it against each light device.

Ok, in my case there would be multiple devices under one instance.

Do you mean to make the default color mode selectable in the config flow and have an select entity option on every light device?

Just a selector on each light device. Define the default value yourself.

I understand and is there category in the documentation where I could look after this in detail? I’m not sure where to place this selector in the actual code.

Oh, now I get it. This selector is just another entity that belongs to a device.