How do you know you’re not getting the max brightness? What values are the light reporting back? Can you set a higher brightness elsewhere, i.e. manufacturers own app? If so, what values does the light report back to HASS at that time?
That’s a useful page which I did not know about so thanks.
I can see that when I set the light from the control panel and it’s bright, the light reports, among other things:
color_mode: color_temp
color_temp_kelvin: 6535
color_temp: 153
When I am setting it through the script, it’s this:
color_mode: xy
color_temp_kelvin: null
color_temp: null
I think I need to send the light color_mode and/or color_temp_kelvin. I do not yet know how to do that with the above script while also allowing for the RGB values for the other settings, but I will try to figure it out.
You don’t set the color mode, it gets set automatically depending on what parameters you send through the light.turn_on action. The parameter you should send is color_temp_kelvin, the other color_temp is the same just in a different unit (mireds instead of Kelvin) but is deprecated and should no longer be used (will throw a warning in the logs and eventually stop working altogether).
According to the documentation there is a parameter white that can be used with RGBW and RGBWW lights but it is kind of cryptic. Could never quite understand what it does, and have no such lights to test with.