šŸ’” Lovelace: RGB light card

What about something like this ?
It will only change the brightness of your LED strip

type: entities
entities:
    - type: 'custom:rgb-light-card'
      entity: light.example_light # < Your LED strip here
      colors:
          - brightness: 0
            icon_color: '#222'
          - brightness: 128
            icon_color: '#ff8'
          - brightness: 255
            icon_color: '#ffa'

Iā€™ve released the version 1.3.0 of this card   :tada:

You can now call scripts and scenes when clicking on icons, so you can set multiple lights on a single click

Documentation is available here:

1 Like

Anyone having issues with this in HACS?
The latest version shows red like this:
image
and it says ā€œThis plugin is not added to your Lovelace resources.ā€
But yet it works fine just as it has before.
I only noticed this after updating to the latest HACS, but I donā€™t really watch that closely so it may have been there before that.

Same for me

This got me closer than anything else! Thank you! My only issue now (Tuya bulb) is using the icons to change the colors. I loaded up, clicked on pink, got a pink light. Clicked on the other colors and no change. Any suggestions?

Hello,

It would be cool if we can add the RGB colors at the bottom of this light card :

any idea of how we could do that ? :slight_smile:

Can you share your config if you still have this issue?

Just create a vertical stack:

  • first card: thermostat
  • second card rgb-card

Choose the correct justify settings and done.
If you need 2 thermostats next to each other and a rgb card below do the following:

Vertical stack

  • first card: horizontal-stack
    • thermostat 1
    • thermostat 2
  • second card: rgb-card
1 Like

You can use a vertical-stack, or a borderless vertical-stack, in which you include:

  • Your light cards
  • An ā€œentitiesā€ card containing the RGB Light Card

Example:

type: 'custom:vertical-stack-in-card' # or 'vertical-stack'
cards:

  # Your lights
  - type: horizontal-stack
    cards:
      - type: light
        entity: light.bedroom
      - type: light
        entity: light.office

  # The RGB Light card
  - type: entities
    entities:
      - type: 'custom:rgb-light-card'
        entity: light.bedroom
        colors:
          - ...
          - ...

image

2 Likes

Is it possible to have ā€œColor temperatureā€ circles, ie TrĆ„dfri / IKEA?
ikea

Sure !

You can do something like that

type: entities
entities:
    - type: 'custom:rgb-light-card'
      entity: light.example_light
      colors:
          - color_temp: 160
            icon_color: '#ffead9'
          - color_temp: 350
            icon_color: '#ffa859'
          - color_temp: 550
            icon_color: '#ff8000'

Iā€™ll let you decide which values are the best suited for you, and which colors you want on your icons

2 Likes

Nice, thx
ikea

thanks a lot, working good.

how did you manage to get the last color icon ? is it a .png ?

Yes ! Itā€™s a .png which is imported like this:

icon_color: center/100% url("/local/rainbow.png")

Here is the image: rainbow

Thank you :slight_smile:

thanks alot, great plugin!

would it be possible to add a overlay function for material design icons?
and what about a long press function for actions?

Hi!
Very good card, but i have one problem with my Yeelight:

      - rgb_color:
          - 255
          - 186
          - 129
        brightness: 255

With this configuration, i should have a white warm very bright, but when i click on the color icon, i got very low brightness. States og the light says that i am a 255 of brightnessā€¦ but itā€™s very dark.

Any ideas ?

Yeah, I have the same problem on my Yeelight, I created an issue on Home Assistant, but it seems like itā€™s a Yeelight related problem :slightly_frowning_face:

Donā€™t you have the same problem when you use the color wheel from the UI ?

One way to solve the problem is using color_temp instead of rgb_color, but youā€™ll have less colors to choose fromā€¦

ho so sadā€¦ I think itā€™s working with the color wheel. But i have same problem in HomeHabit app.
I recently plug an old yeelight bulb and it was working, then i update the firmware and brightness is broken nowā€¦
Maybe we can post on Yeelight forum ?

This will be great for my sons Philips Hue Play light bar in his room. Thank you!