Update to 2022.9.1 broke my light templates

I use the following templates in my configuration.yaml

light:
  - platform: template
    lights:
      theme_primary:
        friendly_name: "Theme primary light"
        turn_on:
        turn_off:
        set_color:
        set_white_value:
        set_level:

After updating to 2022.9.1, I get the following error:

Invalid config for [light.template]: [set_white_value] is an invalid option for [light.template]. Check: light.template->lights->theme_primary->set_white_value. (See ?, line ?).

This parameter is still in the sample config for template light: Template Light - Home Assistant

Can someone point me in the direction how I can fix it?

(mentioned in the „Breaking Changes“ section of the release notes)

1 Like

Ok, thanks. But how am I supposed to add that to the light template? I want a light entity with rgbw mode.
I tried adding color_mode, or supported_color_modes to the entity, but this is not a valid config.

Ok so I looked at the source code, and color mode support in template light was only added 2 days ago so it’s not release yet. Can I just copy over this python script somewhere to my instance so I can start using it now?

Hi @marcinek, did you ever figure out how to use color_mode: white in a light template?
It would be great if you could post an example. I’m not able to get it to work and the official sample config still uses set_white_value).

I’m afraid not @zehnm, I just removed it for now