mariusmotea / diyHue

Philips Hue emulator that is able to control multiple types of lights
Other
627 stars 107 forks source link

ikea tradfri rgcct #445

Closed camatthew closed 5 years ago

camatthew commented 5 years ago

Describe the bug When using a rgbcct strip hooked up to a ikea tradfri gateway, the white leds does nothing,

To Reproduce Steps to reproduce the behavior:

  1. Go to localhost
  2. change the color temputure

Expected behavior The lights show the white leds on when the color temputure is selected. Logs If applicable, provide output logs. These can be obtained via manually running HueEmulator3.py with python3 HueEmulator3.py.

Additional context Add any other context about the problem here.

mariusmotea commented 5 years ago

Hi,

I don't understand how you connect the rgbcct strip to Tradfri Gateway. What kind of strip is this?

camatthew commented 5 years ago

gledopto controller with generic rgcct strip. It works with ikea applications.

mariusmotea commented 5 years ago

i'm not sure if this can be considered a bug in hue emulator because Ikea tradfri exposed api is very limited and this my be a limitation. At the time when i add support for tradfri gateway it was possible to set just 3 color temperatures to tradfri CCT bulbs (despite the bulbs are ZigBee compatible and support all CT modes) and for this reason i was forced to create condition to play with just 3 values:

elif key == "ct":
                    if value < 270:
                        payload["5706"] = "f5faf6"
                    elif value < 385:
                        payload["5706"] = "f1e0b5"
                    else:
                        payload["5706"] = "efd275"

I see just one quick and expensive option, buy the Raspbee module and decommission the Tradfri Gateway.

camatthew commented 5 years ago

i only need 3 color temputures, nothing else

camatthew commented 5 years ago

how do i set it to those three options then

camatthew commented 5 years ago

or seperate warm white and cold white into seperate one color bulbs. also changing temputure doesent activate white leds.

mariusmotea commented 5 years ago

I don't know, try first to see if is possible with pytradfri. My feeling is that you cannot control them because Ikea don't have any rgb-cct bulb and their implementation is very basic.

ghost commented 5 years ago

Closing as the issue is a limitation of the Tradfri hub. Use the Raspbee module as a possible fix. If pytradfri offers a solution, reopen this issue.