I’ve got a Shelly rgbw2 and a dual white (alternating cool white/warm white leds) led strip hooked up. The warm white is hooked up to channel 0 and cool white is on channel 1.
Right now it works perfectly as two separate lights with just brightness control, but I’m trying to figure out how combine them and show it as one light with a brightness and color temp slider that sets the ‘balance’ between the two channels.
Started looking at the group light component, but I’m not sure that’s the way to go.
Effectively, you will be creating a third light entity that controls the other two light entities. When you turn on the Template Light, it turns on both of the other two lights. Change the Template Light’s brightness and it will change the brightness of the two lights.
Thanks for the pointers, looks like I’ve got to dig into the Templating Docs. Is there a way to get a white temp slider with a template light? Like this:
Probably an unsatisfying answer since it doesn’t involve the Shelly RGBW2. But to make use of the dual white led strips I had, I used esphome with esp8266 and the cool white/warm white component.
Flashing is pretty easy, I’m not re-flashing a Shelly, I’m using an esp8266. And after you do it the first time with esphome, subsequent times are done over-the-air. And I don’t have a good understanding of templating, so yes flashing was easier. But thanks for the code.
it converts two channels into single light in bidirectional way creating light entity in HA. So yes, it should work with all components.
But implementation may vary depending on hw specs, for example whether gain is defined as range 0-100 or 0-255 etc