0.46.0 - Error when turning on 2 lights at same time


I have a script with the single purpose of turning on 2 lights at the same time when activated.

It worked well until I upgraded to 0.46.0, but now it only turns on one of the lights (the second) and it issues an error in log.

Script config:

    - service: light.turn_on
        entity_id: light.papa
        brightness_pct: 50
        color_temp: 243.90243902439025
        rgb_color: [255,67.92041905680745,0]
    - service: light.turn_on
        entity_id: light.mama
        brightness_pct: 50

Error in log:

ERROR (MainThread) [homeassistant.core] Invalid service data for light.turn_on: two or more values in the same group of exclusion 'Color descriptors' @ data[<Color descriptors>]. Got None

Has anyone faced this issue? Should I report it as an issue in GitHub?

Thanks in advance.

As of 0.46 you can’t specify conflicting color values for lights (it’s in the release notes).
I’d say that you can either specify color_temp or rgb_color but not both.


Thanks a lot.

I missed that one, I’ll try it later.

If you are turning on multiple lights, wouldn’t it work better to target a group as opposed to multiple entities?

That would be case if I didn’t want to provide different parameters to each, as these are actually different lamps (one RGB and one White).