WLED Lights Color Temp Mode

I ran into an issue with the light strips I have been using with the WLED integration and unsure of where the issue lies. I am not sure if its on the Home Assistant end or on the WLED end. For reference I am using a Dig-Octa LED controller board with a RGB+CCT led strip (WS2805 chip)

To summarize my issue, the color picker in the HA GUI never holds the correct color. It will change the LED colors when a color is clicked but the GUI will always fall back to rgb = 255, 203, 161 specifically. The color brightness and white brightness values will do the same thing as well, brightness can be changed and will be sent to the strip, but the GUI will always fall back to 100 color and 50 white brightness immediately after the change.

When digging into the Developer tools → States and attributes of the entity I get these values:

supported_color_modes:
  - color_temp
  - rgbw
effect: Solid
color_mode: color_temp
brightness: 31
color_temp_kelvin: 3902
color_temp: 256
hs_color:
  - 26.862
  - 36.674
rgb_color:
  - 255
  - 203
  - 161
xy_color:
  - 0.427
  - 0.367
rgbw_color: null

I have tried setting the state of the color_mode to rgbw with an rgbw_color value and the GUI will react. However it falls back to color_temp after a few seconds and these same rgb values.

The question I have is will this led strip in a color mode of “color_temp”, why am I getting a separated color and white brightness slider in the GUI? If I check the attributes of my hue bulbs they run in a color_temp mode and don’t have separated color and white brightness sliders. I want this same behavior and seems like if my led strip is operating in the same mode HA should be treating it the same as a hue bulb.

To verify I did check one of the other led strips I have installed that is an actual rgbw strip. The GUI and attributes match as I would suspect for how these strips work.

Curious what the fix may be for getting proper support for led strips in color_temp mode and if its a fix that needs to be made on the WLED end or HA end.

This is 1 of 3 potential issues:

  1. There’s a bug in the WLED integration
  2. There’s a bug in the WLED JSON api, where it does not properly provide the information that your light is RGBW.
  3. Your WLED device is incorrectly configured in a way that the JSON API thinks your device is only RGB.

Does Home Assistant support rgb+cct leds natively? I noticed in my WLED app that I have three sliders in what I assume would be the equivalent of “rgbww” in home assistant.

In the WLED app, when I am on the color selection screen, I have a slider for the rgb brightness, a slider for the white brightness, and a slider for the white temp. In Home Assistant I only see a two slider setup, one color brightness and one white brightness. This is where I am unsure of where the issue lies. The CCT portion needs two sliders for brightness and color temp to have full control so its not supposed to work like a rgbw.

I am not sure if WLED can properly be setup if Home Assistant wouldn’t have the ability to configure rgb+cct as a supported color mode. It very well may be a bug with the WLED integration as its not supposed to have a supported_color_mode = rgbw since thats not what I have it configured as in WLED, but what should it be then?

Here are some screenshots as well to compare the differences of the configuration between WLED and Home Assistant.

WLED App (RGB+CCT controls)

Home Assistant (RGBW like setup no CCT slider)

I just wanted to add that I have a similar problem, but with an RGBW led strip (sk6812). Whatever I do to the lights, home assistant reverts back to the state shown in the image (excluding brightness). I can increase the white channel, which will make it whiter. I can also decrease the color channel, which will also make it whiter but also revert the state unlike the white channel. The wled ui works as expected, and even responds to changes from home assistant.

While I can control it, I am effectively unable to use it in scenes (even if editing the yaml). It also messes up the colors of my light groups.

If its of any interest, here are all the entity attributes:

min_color_temp_kelvin: 2000
max_color_temp_kelvin: 6535
min_mireds: 153
max_mireds: 500
effect_list: Solid, Blink, Breathe, Wipe, Wipe Random, Random Colors, Sweep, Dynamic, Colorloop, Rainbow, Scan, Scan Dual, Fade, Theater, Theater Rainbow, Running, Saw, Twinkle, Dissolve, Dissolve Rnd, Sparkle, Sparkle Dark, Sparkle+, Strobe, Strobe Rainbow, Strobe Mega, Blink Rainbow, Android, Chase, Chase Random, Chase Rainbow, Chase Flash, Chase Flash Rnd, Rainbow Runner, Colorful, Traffic Light, Sweep Random, Chase 2, Aurora, Stream, Scanner, Lighthouse, Fireworks, Rain, Tetrix, Fire Flicker, Gradient, Loading, Rolling Balls, Fairy, Two Dots, Fairytwinkle, Running Dual, RSVD, Chase 3, Tri Wipe, Tri Fade, Lightning, ICU, Multi Comet, Scanner Dual, Stream 2, Oscillate, Pride 2015, Juggle, Palette, Fire 2012, Colorwaves, Bpm, Fill Noise, Noise 1, Noise 2, Noise 3, Noise 4, Colortwinkles, Lake, Meteor, Meteor Smooth, Railway, Ripple, Twinklefox, Twinklecat, Halloween Eyes, Solid Pattern, Solid Pattern Tri, Spots, Spots Fade, Glitter, Candle, Fireworks Starburst, Fireworks 1D, Bouncing Balls, Sinelon, Sinelon Dual, Sinelon Rainbow, Popcorn, Drip, Plasma, Percent, Ripple Rainbow, Heartbeat, Pacifica, Candle Multi, Solid Glitter, Sunrise, Phased, Twinkleup, Noise Pal, Sine, Phased Noise, Flow, Chunchun, Dancing Shadows, Washing Machine, Rotozoomer, Blends, TV Simulator, Dynamic Smooth, Spaceships, Crazy Bees, Ghost Rider, Blobs, Scrolling Text, Drift Rose, Distortion Waves, Soap, Octopus, Waving Cell, Pixels, Pixelwave, Juggles, Matripix, Gravimeter, Plasmoid, Puddles, Midnoise, Noisemeter, Freqwave, Freqmatrix, GEQ, Waterfall, Freqpixels, RSVD, Noisefire, Puddlepeak, Noisemove, Noise2D, Perlin Move, Ripple Peak, Firenoise, Squared Swirl, RSVD, DNA, Matrix, Metaballs, Freqmap, Gravcenter, Gravcentric, Gravfreq, DJ Light, Funky Plank, RSVD, Pulser, Blurz, Drift, Waverly, Sun Radiation, Colored Bursts, Julia, RSVD, RSVD, RSVD, Game Of Life, Tartan, Polar Lights, Swirl, Lissajous, Frizzles, Plasma Ball, Flow Stripe, Hiphotic, Sindots, DNA Spiral, Black Hole, Wavesins, Rocktaves, Akemi
supported_color_modes: color_temp, rgbw
effect: Solid
color_mode: color_temp
brightness: 255
color_temp_kelvin: 4258
color_temp: 234
hs_color: 26.732, 30.389
rgb_color: 255, 212, 178, 219
xy_color: 0.405, 0.36
rgbw_color: null
friendly_name: Loop
supported_features: 36

Unfortunately, it seems like we don’t have a resolution for this at the moment.
Band-aid fix is to set WLED settings to Calculate CCT from RGB as follows:
WLED LED Settings > White Management >
- White Balance Correction [ unchecked ]
- Global override for Auto-calculate white [ unchecked ]
- Calculate CCT from RGB [ checked ]
This doesn’t fully solve the issue, but at least it syncs the color wheels between WLED and Home Assistant in a predictable fashion.
More information can be found here and the links listed in the post below:

If using this setting does it actually use the CCT leds? If so I dont think I would have a problem with that but I dont want it to use the RGB leds to try an mimic the CCT output.

There is a community fix here, which may be of interest: Integration of WS2805 - How?

1 Like