Light_profiles.csv only applying brightness value

I’m trying to set up an automation that changes a light to a specified profile from light_profiles.csv. The profile names work really inconsistently. It seems like it always applies the brightness, but the XY values often don’t apply with no discernible pattern.

I can call the light.turn_on service with xy_color instead of profile which works fine, so I don’t think the XY values are the problem. I’ve also seen a few threads mentioning issues with light profiles when the light is already on, but that makes no difference in my case.

I found this comment on a Github issue that describes my problem, but I didn’t get anywhere with the rest of the thread. Specifically, I tried downgrading from 2024.1.6 to 2023.12.4 and 2023.12.1, neither of which worked.

I am using nikshriv’s Cync Lights custom integration, and unfortunately I don’t have any other types of lights I can test with to see if it’s an issue with the integration or not.

Sample from my light_profiles.csv:

id,x,y,brightness
Lily,0.385,0.155,255
Roxie,0.489,0.239,255

Inconsistently working service call:

service: light.turn_on
metadata: {}
data:
  profile: Roxie
target:
  entity_id: light.table_lamp

Consistently working service call:

service: light.turn_on
metadata: {}
data:
  xy_color: [0.489, 0.239]
target:
  entity_id: light.table_lamp

I’m tearing my hair out over this, any help would be appreciated.

Yeah, you’re not crazy. The XY colors are applied, but there’s a calcution that seems to be the issue.

I wonder why that calculation is performed on the profiles’ XY colors but not when I send xy_color directly.

Because your device probably doesn’t accept XY directly, so there’s a conversion that’s taking place.

Scratch that. I misread. That’s interesting.