nidayand / node-red-contrib-tradfri

Work in progress - Node-RED node for IKEA TRÅDFRI devices
Other
24 stars 9 forks source link

control RGB bulbs #12

Closed thunder-62 closed 7 years ago

thunder-62 commented 7 years ago

it seems like the "TRADFRI bulb E27 CWS opal 600lm" color bulb can't be controlled with the current release.

Would it be possible to support these bulbs as well?

Thank you

nidayand commented 7 years ago

In the new version 1.1.0 support for colors is supported. Please test it

thunder-62 commented 7 years ago

tested it and it works. Do you know whether the bulbs only support specific RGB patterns or can I feed in every RGB combination as a hex code?

Thank you, Uwe

nidayand commented 7 years ago

Hey, a fairly new update includes shortnames for RGB values as specified in the argon library :

color (String) - [hex color value, 'cool', 'normal', 'warm'] - color code (HEX - e.g. 'ffffff' or focus, cool, everyday, normal, relax, warm, cold sky, cool daylight, cool white, sunrise, warm white, warm glow, candlelight, warm amber, peach, dark peach, saturated red, pink, light pink, saturated pink, light purple, saturated purple, blue, light blue, lime, yellow)

svelog commented 6 years ago

Hi, I tested the new presets and they work great.

Now I wanted to use the HEX color code and realized that this is not working for every color code. For example “ffffff” changes the color to “f1e0b5”. I think this happpens every time when I call a HEX color code which is not part of the preset-colormap.

In addition I checked the color code with the get-node. As long as I chose a color preset I get a good HEX color code. But when I change the color via Homekit and use afterwards the get-node I get color: “0”.

nidayand commented 6 years ago

The feature is not in the node-red node but in a dependency - i.e. node-tradfri-argon. I am however working on to replace node-tradfri-argon with node-tradfri-client as nodejs v6 is now officially being supported by Node-RED.