Light profiles are not working

I installed the light_profiles.csv below and restarted HA. I’m trying to use a profile on a 1600 lumen Orein bulb. None of the profiles below have any effect on the bulb. Can someone tell me what I’m doing wrong?

action: light.turn_on
metadata: {}
target:
  entity_id: light.smart_rgbtw_bulb
data:
  profile: night_amber
# /config/light_profiles.csv
daylight,255,5000,1.0,0.3
evening_warm,180,3000,1.0,0.5
night_amber,25,2200,1.0,1.0
movie_dim,60,2700,1.0,1.5
focus_cool,255,6500,1.0,0.2
relax_soft,120,3500,1.0,0.8

Where’s the header line?

Integrations - Light - Default turn-on values

Thanks. I added the header below but none of the profiles are working. Maybe the bulb type is incompatible with profiles? But I read the Orein bulbs do work with profiles.

profile,brightness,color_temp,gamma,transition
daylight,255,5000,1.0,0.3
evening_warm,180,3000,1.0,0.5
night_amber,25,2200,1.0,1.0
movie_dim,60,2700,1.0,1.5
focus_cool,255,6500,1.0,0.2

I haven’t really experimented with them much but, AFAIK, you have to use the header as provided in the screenshot above… you can’t make up your own headings or use different color formats. Light profiles are old and have not been updated in a long time.

If you want something more flexible, you might want to take a look at the Scenery custom integration.

Thank you I got the profile working. The scenery integration looks interesting too.

I have tried those and gave up.
I just loaded up and automation so when the light goes from off to on…

  triggers:
    - trigger: state
      entity_id: light.grp_kitch
      from: "off"
      to: "on"
  actions:
    - action: light.turn_on
      data:
        kelvin: 1700
        brightness: 96.9
        entity_id: "{{ trigger.entity_id }}"

What I would really like to do is set a lights profile WITHOUT turning it on. But I doubt if that’s possible since this is all based on the light.turn_on action. I’m writing a script called “Normalize Lights”. I have some lights that turn red due to weather alerts, purple due to litter box malfunctions, etc. I think I need to look at what Didgeridrew recommended Scenery custom integration. There is also an integration named Stateful scenes I’ve yet to look at.

This light_profiles.csv file works for me after restarting HA:

# x,y → Warm white color (soft yellow tone)
# brightness: 200 → ~78% brightness (out of 255)
# transition: 1 → 1-second fade when turning on

id,x,y,brightness,transition
light.smart_rgbtw_bulb,0.4599,0.4106,200,1
warm_white,0.4338,0.4030,200,1
2200k,0.526,0.413,200,1
2400k,0.506,0.414,200,1
2700k,0.4599,0.4106,200,1
3000k,0.4338,0.4030,200,1
3200k,0.4150,0.3950,200,1
3500k,0.4010,0.3900,200,1
3700k,0.3920,0.3830,200,1
4000k,0.3800,0.3800,200,1
1 Like