Dimmable RGBW leds, each color separate source

Hi there,

I’ve got dimmable RGBW strips where each color is managed separately. Means, HA doesn’t know the color, treats any of them as a simple dimmable light.

That’s how do I use them at the moment:

square: false
type: grid
cards:
  - features:
      - type: light-brightness
    type: tile
    entity: light.ledy_red
    color: red
    icon: mdi:alarm-light
    show_entity_picture: false
    vertical: false
    name: ' '
  - features:
      - type: light-brightness
    type: tile
    entity: light.ledy_green
    color: green
    icon: mdi:alarm-light
    show_entity_picture: false
    vertical: false
    name: ' '
  - features:
      - type: light-brightness
    type: tile
    entity: light.ledy_blue
    color: blue
    icon: mdi:alarm-light
    show_entity_picture: false
    vertical: false
    name: ' '
  - features:
      - type: light-brightness
    type: tile
    entity: light.ledy_white
    color: lightgrey
    icon: mdi:alarm-light
    show_entity_picture: false
    vertical: false
    name: ' '
columns: 1

Having 4 sliders isn’t really efficient. I’d like to get this manageable via color wheel/pallete. Any suggestions how I could achieve this? The goal is to teach it how to mix the colors so I don’t have to mix them manually :slight_smile:

Best regards,
K.M.

Hi, i’ve the same situation, did you find a way to do this?

bye!

I’ve never done it, but WLED has support for RGB LEDs and there is an integration for WLED in Home Assistant.

Solved, not ideal. However, good starting point. Kudos to Home Assistant Polska Admin.

light:
  - platform: template
    lights:
      rgbw:
        friendly_name: "rgbw"
        rgbw_template: |-
          {{ [
             state_attr('light.red', 'brightness'),
             state_attr('light.green', 'brightness'),
             state_attr('light.blue', 'brightness'),
             state_attr('light.white', 'brightness')
          ] }}
        turn_on:
          service: light.turn_on
          entity_id: light.red, light.green, light.blue, light.white
        turn_off:
          service: light.turn_off
          entity_id: light.red, light.green, light.blue, light.white
        set_rgbw:
          service: script.set_rgbw
          data:
            r: "{{r}}"
            g: "{{g}}"
            b: "{{b}}"
            w: "{{w}}"
script:
  set_rgbw:
    sequence:
      - service: light.turn_on
        data:
          entity_id: light.red
          brightness: "{{r}}"
      - service: light.turn_on
        data:
          entity_id: light.green
          brightness: "{{g}}"
      - service: light.turn_on
        data:
          entity_id: light.blue
          brightness: "{{b}}"
      - service: light.turn_on
        data:
          entity_id: light.white
          brightness: "{{w}}"