Using an RGB(W) Bulb in Vera UI5/6

At this moment, there are 3 different kinds of RGB(W) devices on the market. Some are controllers, other are LED bulbs, with the possibility to change colors.

In this document we try to describe how to setup these controllers to use them with Vera UI5/6. In this case we work with the (new) Aeotec RGBW Bulb.

1. First we need to include the controller / bulb into the Vera. We do this in the normal way, by following the manual and the normal inclusion process.

2. Because every module is included as a dimmer, and there is no default support for it to control the colors, we need to install a seperate plugin.

3. To get the plugin to work, we need to install a JSON decoder, because this isn’t installed by default. You can do this with e.g. WinSCP, and upload the following file to “/usr/lib/lua”. The file can be found here:┬áhttp://code.mios.com/trac/mios_genericutils/export/20/json.lua

4. After installing the file, you can install the app called “RGB Controller”, just from the Apps section.

RGB Controller App
RGB Controller App

5. If all went ok, you should see a new device on the Devices tab. Click on it, and go to settings for configuration of your device.

6. For e.g. the Aeotec bulb, you choose Device type Aeotect RGBW Buld, in combination with the just added device (can be selected from the dropdown).

RGBW Settings
RGBW Settings

7. Save your settings, close the dialog and save your settings again.

8. Now its time to play and try your color wheel.

RGBW Color Wheel
RGBW Color Wheel

EXTRA OPTIONS:

Using the RGBW controller / bulb into advanced scenes / LUA is also possible:

  • Switch on/off the RGBW device
luup.call_action("urn:upnp-org:serviceId:SwitchPower1", "SetTarget", {newTargetValue = 1}, <idPlugin>)
  • Change the RGB color
luup.call_action("urn:upnp-org:serviceId:RGBController1", "SetColorTarget", {newColorTargetValue = "#FF0000"}, <idPlugin>)
  • Change the RGBW color
luup.call_action("urn:upnp-org:serviceId:RGBController1", "SetColorTarget", {newColorTargetValue = "#FF0000FF"}, <idPlugin>)

Sources: http://forum.micasaverde.com/index.php/topic,32613.0.html