Hello,
I’m using Openhab and the zwave binding 2.4.0 stable.
I’ve got a Aeotec ZW121 Leds Strip, which is supported by this configuration file in the zwave bindings database.
I’m getting in trouble because I cannot choose the color of the leds (brightness and warm / cold white settings are OK).
The Leds Strips expects a all-in-one 5-channels RGBWC with W and C set to 0 to setup the RGB color, according to its engineering specifications (5.8 chapter) :
Switch Color Set Command Class
White color LED and RGB LED will not light up at the same time, so the software makes the following processing. When you want to activate the current RGB color, the color value of higher priority should be set to 0.
For example: The Warm/ Cold white is the highest priority, when it is configured to 0, the RGB color configuration values can be activated. Otherwise, the LED Strip is always be activated by Warm/Cold white.
I tried to directly write an hexadecimal string in an item linked to the color_color channel, but it does not work :
TerraceLeds_Color.sendCommand(String.format(“%02x%02x%02x%02x%02x”, r, g, b, ww, cw))
10:52:40.041 [INFO ] [smarthome.event.ItemStateChangedEvent] - TerraceLeds_Color changed from NULL to ff00000000
10:52:50.004 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘TerraceLeds_Color’ received command ff00000000
(I also tried the FF value at the other positions, but it does not work either).
Can the Color class in openhab support this “RGBWC” format ? Can the zwave binding support it too ?
The support website of aeotec shows a specific development done by their team for SmartThings hub, where the set color command is :
def rgb = huesatToRGB(hue, saturation)
result << zwave.switchColorV3.switchColorSet(red: rgb[0], green: rgb[1], blue: rgb[2], warmWhite:0, coldWhite:0)
The openhab zwave binding configuration file shows :
<channel id=“color_color” typeId=“color_color”> <label>Color Control</label> <properties> <property name=“binding:*:HSBType”>COMMAND_CLASS_SWITCH_COLOR;colorMode=RGB</property>
Is there a way to switch to an hypothetical “colorMode=RGBWC” ?
You got it : i’m lost
Thanks for your attention and for this wonderful software
Regards,
Romain