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

Color Lights issue #2

Open
grabidou opened this issue Nov 22, 2023 · 4 comments
Open

Color Lights issue #2

grabidou opened this issue Nov 22, 2023 · 4 comments

Comments

@grabidou
Copy link

@bphillips09 , this driver works with colored lights, but the colors seem to be off when selecting the color from C4 vs. Home Assistant. For example, I choose "Warm White" from C4, the lights show a pink hue. when "Warm White" is chosen from HA, the light responds accurately. Other colors have the same result.

@bphillips09
Copy link
Owner

@grabidou I can't reproduce this on my end using Wiz or Hue RGBW bulbs. When selecting a color in C4, the light driver just sends the XY color to Home Assistant. For the C4 "Warm White" preset, this value is [0.487, 0.381].

Can you set the XY color value for your light in HA using a service call and see if the issue persists? If so, then the issue is with your bulb/HA and not the Light driver. I'm curious to know the result.

You can easily set the XY color using this service call in Developer Tools > Services:

service: light.turn_on
data:
  xy_color:
    - 0.487
    - 0.381
target:
  entity_id: light.your_light_entity

@dacorn
Copy link

dacorn commented Dec 20, 2023

@bphillips09 @grabidou
I also have the same issue with the color, when I use the .487 and .381 the light color is a pink hue color.
With the slider all the way to the warmest setting in HA I am at xy_color: 0.599, 0.382 (color_temp_kelvin: 2000)
With the slider all the way to cold in HA I am at xy_color: 0.326, 0.333 (color_temp_kelvin: 6535) doesn't matter on brightness tried 75% to 100% values didn't change. but all these values were at 75% brightness.

What I call a warm white setting here is what I feel works. xy_color: 0.463, 0.376
Here are all values at this level.

min_color_temp_kelvin: 2000 max_color_temp_kelvin: 6535 min_mireds: 153 max_mireds: 500 supported_color_modes: brightness, color_temp, hs color_mode: color_temp brightness: 173 color_temp_kelvin: 3389 color_temp: 295 hs_color: 27.291, 47.241 rgb_color: 255, 189, 134 xy_color: 0.463, 0.376

Another nicer warmer value.
min_color_temp_kelvin: 2000 max_color_temp_kelvin: 6535 min_mireds: 153 max_mireds: 500 supported_color_modes: brightness, color_temp, hs color_mode: color_temp brightness: 173 color_temp_kelvin: 2331 color_temp: 429 hs_color: 29.359, 79.015 rgb_color: 255, 152, 53 xy_color: 0.565, 0.389 entity_id: light.office_3, light.office_4, light.office icon: mdi:lightbulb-group friendly_name: Office supported_features: 0

I am using 4 Zemismart Wifi downlights.

Happy to help further.

--

@bphillips09
Copy link
Owner

@dacorn Are you still seeing this issue?

@dacorn
Copy link

dacorn commented May 10, 2024 via email

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

3 participants