Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

White LED is always ON with 4-colours-in-1-LED (5050 RGBW) #64

Open
mankron opened this issue Sep 12, 2023 · 1 comment
Open

White LED is always ON with 4-colours-in-1-LED (5050 RGBW) #64

mankron opened this issue Sep 12, 2023 · 1 comment

Comments

@mankron
Copy link

mankron commented Sep 12, 2023

Hi, first thank you for your great job!

I use the MQTT RGBW Solution and don't know if there's an issue with my hardware or the code.

The LED I use is the "BTF-LIGHTING 5050 RGBW" (amzn) which has 4 colours in 1 LED.

Your Code

enum strip {
  BRIGHTNESS, // only one color/only white
  RGB,        // RGB LEDs
  RGBW        // RGB LEDs with an extra white LED per LED       X   <-----
};

looks like it means such an LED. Am I right or do you know if this type of LED is not supported?

My HA (actual release) config is:

  • Home Assistant 2023.9.1
  • Supervisor 2023.08.3
  • Operating System 10.5
  • Frontend 20230908.0 - latest

Config-Yaml:

mqtt:
  light:
     schema: json
     name: xxx_TV_RGBW
     state_topic: "xxx/esp01/rgbwTV"
     command_topic: "xxx/esp01/rgbwTV/set"
     brightness: true
     color_mode: true
     supported_color_modes: ["rgbw"]
     effect: true
     effect_list: [colorfade_slow, colorfade_fast, flash]
     optimistic: false
     qos: 0

It's working but the colour white is always on.

Fun fact: During the effects the white LED goes out, in normal mode it's always on, I can't turn it off.
You cannot produce intense RGB colors with the white LED switched on.
Is there a way to turn off the white content using an extra switch or something?

@corbanmailloux
Copy link
Owner

I'm no longer maintaining this repo, but you do appear to be doing things correctly.
My guess is that something with the communication with Home Assistant changed with the new color mode options: https://developers.home-assistant.io/blog/2022/08/18/light_white_value_removed/

I'd suggest moving away from this project and on to ESPHome, a much more fully featured (and maintained) system.

ESPHome has a component for RGBW lights that should work for your case.
It has a very reliable, local API to connect to Home Assistant (if that's what you're using this for), but it also can easily be configured to connect to MQTT. With these components, the system will essentially replace this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants