Use ESP8266 to control unlimited groups of milight or limitless LED bulbs in Openhab2

So since this is for the saturation bulbs, how can I get it to work with the RGBWW ones? I am trying to get it to work with Matrix Theme for HABPanel.
I receive a HSB value from HABPanel then need to convert it to RGB and publish it in this string:

{"state":"ON","brightness":255,"bulb_mode":"color","color":{"r":4,"g":0,"b":255}}

Any ideas?
I took out the rule for the CTTemp already, but still am working through the errors.