home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.44k stars 30.68k forks source link

Wled Intergration, RGBCCT not working correctly. (Analog RGBCCT Strip) #123614

Open ccm19931993 opened 2 months ago

ccm19931993 commented 2 months ago

The problem

Using the color wheel in Home Assistant, when choosing a color there is no issue, the strip goes to that corresponding color, but the bubble in the wheel goes from the color chosen to the middle (which would be white) on its own. But the color chosen does not change. In this situation going to the Warm White, Cold White slider does not turn on the WW or CW leds.

Now if you move the White Brightness to 51 from the default 50. then the Warm White, Cold White slider functions as expected. If you then chose another color the Warm White, Cold White slider does not function again.

Also when sending a rgbww command in dev tools the cold white does not turn on. for instance: [0,0,0,255,0] The WW led comes on [0,0,0,0,255] The CW led does not come on

Everything works correctly in the WLED App.

diagnostic dump of controller: config_entry-wled-01J4ZE40PSPX6RHWS7T84RRH0P.json

Hope all that makes sense

What version of Home Assistant Core has the issue?

2024.8.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

WLED

Link to integration documentation on our website

https://www.home-assistant.io/integrations/wled

Diagnostics information

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

Wled Controller: Athom WLED RGBCCT Analog and Digital Light Strip Controller

WLED version : 0.14.4

home-assistant[bot] commented 2 months ago

Hey there @frenck, mind taking a look at this issue as it has been labeled with an integration (wled) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `wled` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign wled` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


wled documentation wled source (message by IssueLinks)

designerno1 commented 2 months ago

Same issue here with the Ericsity wled controller and ws2805 rgbcct Installed version:WLED 0.15.0-b4 ESP32_audioreactive Can't get only cw or ww to work with HA. You turn down Color brightness to 0 the whole strip goes off, then turn up white level to 100 nothing happens turn color to 100 and white to 100 then turn off color turn both off color and white. In Wled app it works as expected.

frenck commented 2 months ago

This is likely caused by the fact Home Assistant doesn't have a notion of RGBCCT. The light "work", but we won't be able to replicate the same functionality as seen in WLED itself into Home Assistant.

Can you provide a diagnostic dump of this specific device and attach it to this issue?

Thanks! 👍

../Frenck

ccm19931993 commented 2 months ago

/Frenck

I have attached the Info.

Thank You

frenck commented 2 months ago

Can you please attach it? Instead of copy and pasting the contents?

Suxsem commented 2 months ago

This is exactly what I was referring to in my PR (https://github.com/home-assistant/core/pull/123477)

I understand that in HA a light cannot be in two different color modes (RGB and COLOR_TEMP) at the same time (@frenck is that correct?)

So how cloud this be addressed? Maybe adding a new, specific, color mode (RGBCCT)?

ccm19931993 commented 2 months ago

@frenck Was just wondering , im not a coding expert, but curious on your thoughts as it relates to the RGBWW command in Home Assistant. Could that not be used to tell WLED to turn on all 5 channels. The RGBW part works fine, the Red , Green , Blue Warm White Function Correctly. Why cant we tell WLED to turn on the other "W" for the Cold White. (Of coarse im talking analog) Were just one W away Lol. Thanks

Suxsem commented 2 months ago

@frenck any chance you could take a look?

frenck commented 2 months ago

Not anytime soon; I'm traveling with my fam for a few weeks.

Suxsem commented 2 months ago

@frenck enjoy your vacation!!! 😃

robertwigley commented 1 month ago

I believe this is the same problem I am experiencing with Home Assistant not displaying the correct colour and brightness settings when using an analogue RGBCCT strip.

I set the colour in HA and it changes the colour in WLED and on the strip, but HA immediately (within a second) reverts back to a warm white. WLED and the strip do not change, meaning what is displayed in HA is incorrect. Likewise, changing the Colour Brightness or White Brightness from within HA changes in WLED and the strip, but the HA interface reverts back to 100% Colour Brightness and 50% White Brightness while the settings prevail in WLED, again meaning the values in HA are incorrect.

Home Assistant States

WLED States

However, I think I may have found an albiet clunky workaround to this problem. What I have done is set two LED Outputs up and ticked the "Make a segment for each output" checkbox. I then renamed the Segments in the main control page and can now operate these as two separate light sources (i.e. a CCT one and an RGB one) and one master correctly in Home Assistant. It might need a couple of automations to deal with switching one light source off when the other turns on if you don't want CCT and RGB to be on at the same time, but that's simple enough to do. Not ideal, but it seems to work and maybe until Home Assistant can deal with RGBCCT natively it could create two separate light sources when it's RGBCCT automatically?

WLED Setup

WLED Segments

Suxsem commented 1 month ago

Unfortunately the workaround is not possible for digital RGBCCT strips becouse there is only on output for this kind of strips

Inviato da Outlook per Androidhttps://aka.ms/AAb9ysg


From: Robert Wigley @.> Sent: Thursday, September 26, 2024 7:09:47 PM To: home-assistant/core @.> Cc: Stefano Semeraro @.>; Comment @.> Subject: Re: [home-assistant/core] Wled Intergration, RGBCCT not working correctly. (Analog RGBCCT Strip) (Issue #123614)

I believe this is the same problem I am experiencing with Home Assistant not displaying the correct colour and brightness settings when using an analogue RGBCCT strip.

I set the colour in HA and it changes the colour in WLED and on the strip, but HA immediately (within a second) reverts back to a warm white. WLED and the strip do not change, meaning what is displayed in HA is incorrect. Likewise, changing the Colour Brightness or White Brightness from within HA changes in WLED and the strip, but the HA interface reverts back to 100% Colour Brightness and 50% White Brightness while the settings prevail in WLED, again meaning the values in HA are incorrect.

Home.Assistant.States.png (view on web)https://github.com/user-attachments/assets/2c95b661-5a70-4c99-bcad-261046d83b68

WLED.States.png (view on web)https://github.com/user-attachments/assets/97bb17db-929d-4de9-947f-9b294a573333

However, I think I may have found an albiet clunky workaround to this problem. What I have done is set two LED Outputs up and ticked the "Make a segment for each output" checkbox. I then renamed the Segments in the main control page and can now operate these as two separate light sources (i.e. a CCT one and an RGB one) and one master correctly in Home Assistant. Not ideal, but it seems to work and maybe until Home Assistant can deal with RGBCCT natively it could create two separate light sources when it's RGBCCT automatically?

WLED.Setup.png (view on web)https://github.com/user-attachments/assets/40043dc8-b769-4460-b971-3c0901596d90

WLED.Segments.png (view on web)https://github.com/user-attachments/assets/3d1900ac-1809-4849-8ff8-145d135371fe

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/123614#issuecomment-2377499944, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAGK2NI2TYBA77Q33S7XGB3ZYQ5VXAVCNFSM6AAAAABMLADYU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZXGQ4TSOJUGQ. You are receiving this because you commented.Message ID: @.***>

Suxsem commented 3 weeks ago

@frenck I hope you enjoyed holidays! Do you think you can have a look at RGBCCT in home assistant for wled? Thx

TFenby commented 1 week ago

It seems like it's almost working correctly? The color wheel correctly updates the RGB color in WLED, and the temperature slider correctly updates the white balance in WLED. The only things not working from the HA UI are the "Color brightness" and "White brightness" sliders. They don't correctly adjust the corresponding sliders in WLED.

image

Anyway, in case it's useful to anyone, I did get my analog RGBCCT light strip working with esphome. I'm using a QuinLED-An-Penta so your GPIO may vary.

LED STRIP.txt

InnovoDeveloper commented 1 day ago

I am not sure if this helps, but I have recorded a screen grab of this behavior. The happens with my Athom RGB+CCT bulb and Analog RGBWW light strips as well.

https://github.com/user-attachments/assets/04687f4a-2e93-4200-a97b-a4b82a7630b7