Combine CC and CW channels into CCT

Here is situation:
I’m going to use Shelly RGBW2 driver to control a ceiling lamp which consists of two led arrays: warm and cold white.
RGBW2 gives option to behave like a driver for 4 intependent lamps or as RGBW driver.
Neigher one gives possibility to report CCT light by default.

Is there any option in HA to combine two light channels comunicated through MQTT into CCT one? It’s obvious it should mainly automaticaly set values of two CC/WW channels based on given intensity and color temp.

with regards

Nobody? or it’s not possible in HA?

I think (not sure) the way to do this would be through a custom lovelace card that somehow controls both channels together.
I’m in a similar situation. I have a Shelly RGBW2 controlling a LED strip that has 2 channels: warm white and cool white. Currently the card I’m using to control it is as follows:

type: horizontal-stack
cards:
  - type: light
    entity: light.shellyrgbw2_b0ca61_channel_4
    name: Warm White
  - type: light
    entity: light.shellyrgbw2_b0ca61_channel_3
    name: Cool White
title: Under Cabinet Lighting


(Please ignore that the devices are showing as unavailable- I am working on the install of the lights so the Shelly is not connected to power.)

Ideally I’d be interested in a card that has 2x sliders - one for brightness and one for color temp. The color temp would need to basically adjust the “mix” of the 2 channels by adjusting brightness of both channels in an inverse manner. (Brightness up on cold and down on warm or vice versa). The brightness slider would need to control brightness on both channels together (brightness up on both or brightness down on both). This is my basic idea but I’m unsure how to complete it in lovelace.

Did you make any progress on a good solution for your needs?

Here is another thread with a similar topic/question. However (at this point in time) there is not a fantastic solution proposed there to our problem. It looks like if someone wanted to go the route of flashing the Shelly then there may be some easier control over white color temp. I’m not sure about that, I didn’t look into it in detail as I would prefer to avoid flashing.

At the end of the thread you mentioned I posted solution which uses mqtt template. And it works perfectly.
The result is the light entity in HA, which provides brightness and warmth attributes. It shows in GUI as any other CCT light.

1 Like