bphillips09 / Control4-HA-Light

Connects Home Assistant light entities to Control4
12 stars 1 forks source link

Color Lights issue #2

Open grabidou opened 10 months ago

grabidou commented 10 months ago

@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 commented 10 months ago

@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 commented 9 months ago

@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 commented 4 months ago

@dacorn Are you still seeing this issue?

dacorn commented 4 months ago

Hey Brandon, let me check this one. Its in my Theater and I haven't checked since updating the driver.

On Thu, May 9, 2024 at 3:55 PM Brandon Phillips @.***> wrote:

@dacorn https://github.com/dacorn Are you still seeing this issue?

— Reply to this email directly, view it on GitHub https://github.com/bphillips09/Control4-HA-Light/issues/2#issuecomment-2102147188, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKKMU7ABXQZYWFAGTHVRHXLZBMTWRAVCNFSM6AAAAAA7WC6KOCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBSGE2DOMJYHA . You are receiving this because you were mentioned.Message ID: @.***>