Groups of lights with varying capabilities

Hi there !

If I have a group of lights with different capabilities - such as some Hue lights that support color, lutron caseta lights that support dimming, and regular on/off lights - is there a best practice for using these in a script?

Specifically if I want the hue bulbs to go to a certain color, will HA throw an error or warning when passing the “color” key or “brightness_pct” key in the “data” field of light.turn_on?

Or will it just do that for whichever lights in the group support it and silently not do anything for the others ?

Thanks so much.

Matt

As far as I know of you send unsupported commands to bulbs you will get errors in the log.

You could split the script up by using separate actions for the different type I guess.

Or you could create a scene and call this maybe!

1 Like

Ok thank you!

1 Like