Also, you don’t need hs_color, rgb_color, and xy_color all defined in the light.turn_on service call. Just use one. Not sure what would happen with all of those defined.
as @anon43302295 said, color is mutually exclusive. Meaning you can only have hs_color, xy_color, or rgb_color. Not all 3. Also, min_mireds and max_mireds are not valid in the service.
Interesting, good to know. I’m so used to everything being lowercase. When I originally responded I wasn’t even paying attention to the service call tbh
Thanks to all who responded about the colour issue. I’ve left it with just the rgb values and it works.
I needed to ensure I had the correct colour and created a scene in the Hue app, then created a scene in HA and just copied the values from the HA scene hence why all three colour sets were in the original.
This is more efficient than using a Home Assistant scene, especially if the scene has several lights. That’s because Home Assistant only needs to transmit one command, to activate the Hue scene, and each light that is part of that scene already knows how it should behave.