#Got `color_temp` argument in `turn_on` service, which is deprecated and will break in Home Assistant

1 messages · Page 1 of 1 (latest)

austere pagoda
#

I currently have this:

data:
  color_temp_kelvin: "{{ states('input_number.home_lights_colour_temperature') }}"
  brightness_pct: "{{ states('input_number.home_lights_brightness') }}"
target:
  entity_id:
    - light.living_room_lights_back
    - light.kitchen_lights_all
    - light.kitchen_leds_smartplug
action: light.turn_on

But I am getting this error in the logs:
Got color_temp argument in turn_on service, which is deprecated and will break in Home Assistant 2026.1, please use color_temp_kelvin argument

I don't understand why?
If I change the code to the below I get no errors:

target:
  entity_id:
    - light.living_room_lights_back
    - light.kitchen_lights_all
    - light.kitchen_leds_smartplug
action: light.turn_on
uncut hearth
#

You say it's an error, but it's actually a warning. And I've seen it addressed on a GitHub issue, so it's a bug which should be fixed