DreamColorRGB PlugIn

[size=12pt]DreamColor RGB PlugIn[/size]

This plugin is made to control the H806SB WiFi controller, this device is made to control individually addressable RGB LED-stips/grids.
Compatible protocols are : WS-2811 / WS-2812 / WS-2812 / DMX512 etc.

The big advantage above normal LED-strips are very nice effects, such as “waterfall” effect or the “knight Rider” effect.
The controller uses a SD-Card to store .dat effect files, with the plugin you can choose the effect-file (by number) and whether to use
single-file or loop-file modus.
Also speed adjustment (effects) is implemented and the brightness can be controlled to.
Beside this the LED-controller can be used to control like a normal RGB LED-strip, so the complete (red, blue) color can be selected. Take
in mind that only 340 leds are programmed so in case of a LED-strip with 60 leds/meter you can control about 5,5 meter.

The nice thing about the controller is that software can be downloaded on the website from the manufacturer to develop your own .dat effect
files. This software is for Windows. The software is very user friendly and gives a ton of possibilities to create your own effects.

With this plugin you can control your strip/grid :

  • In the User Interface from Vera

Turn strip/grid on and off, brightness adjustment, speed adjustment, .dat effects file select and single-file or loop-file modus

- With Http requests in your web-browser

turn strip/grid on/off
http://ip_address:3480/data_request?id=action&output_format=xml&DeviceNum=6&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0
http://ip_address:3480/data_request?id=action&output_format=xml&DeviceNum=6&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1

Don’t forget to change the Vera’s ip-address and your plugin device number !!!

Adjust Brightness:

http://ip_address:3480/data_request?id=action&output_format=json&DeviceNum=7&serviceId=urn:upnp-org:serviceId:Dimming1&action=SetLoadLevelTarget&newLoadlevelTarget=30

Adjust Speed for the Effects

http://ip_address:3480/data_request?id=action&output_format=json&DeviceNum=7&serviceId=urn:ggfiplupro-com:serviceId:DreamColorRGBW1&action=SetSpeedTarget&newSpeedTarget=10

Select .dat Effects File

http://ip_address:3480/data_request?id=action&output_format=json&DeviceNum=7&serviceId=urn:ggfiplupro-com:serviceId:DreamColorRGBW1&action=SetFileSelect&newFileSelect=1

Select Single- or Loop-File modus

http://ip_address:3480/data_request?id=action&output_format=json&DeviceNum=7&serviceId=urn:ggfiplupro-com:serviceId:DreamColorRGBW1&action=SetSingleFile&newSingleFile=1
http://ip_address:3480/data_request?id=action&output_format=json&DeviceNum=7&serviceId=urn:ggfiplupro-com:serviceId:DreamColorRGBW1&action=SetLoopFile&newLoopFile=1

Select RGB-Color

http://ip_address:3480/data_request?id=action&output_format=json&DeviceNum=7&serviceId=urn:micasaverde-com:serviceId:Color1&action=SetColorRGB&newColorRGBTarget=30,145,235

  • By LUA-script code

Switch power on/off

luup.call_action("urn:upnp-org:serviceId:SwitchPower1", "SetTarget", {["newTargetValue"] = "0"}, 7) <<7 is Device number>> luup.call_action("urn:upnp-org:serviceId:SwitchPower1", "SetTarget", {["newTargetValue"] = "1"}, 7)
Adjust brightness

luup.call_action("urn:upnp-org:serviceId:Dimming1", "SetLoadLevelTarget", {["newLoadlevelTarget"] = "40"}, 7)

Adjust speed

luup.call_action("urn:ggfiplupro-com:serviceId:DreamColorRGBW1", "SetSpeedTarget", {["newSpeedTarget"] = "10"}, 7)

Select file

luup.call_action("urn:ggfiplupro-com:serviceId:DreamColorRGBW1", "SetFileSelect", {["newFileSelect"] = "3"}, 7)

Select Single- or Loop-File modus

luup.call_action("urn:ggfiplupro-com:serviceId:DreamColorRGBW1", "SetSingleFile", {["newSingleFile"] = "1"}, 7) luup.call_action("urn:ggfiplupro-com:serviceId:DreamColorRGBW1", "SetLoopFile", {["newLoopFile"] = "1"}, 7)
Select RGB-Color

luup.call_action("urn:micasaverde-com:serviceId:Color1", "SetColorRGB", {["newColorRGBTarget"] = "30,254,145"}, 7)

- In ImperiHome app

This plugin is fully compatible with the Imperihome app, you can use the RGB-color wheel adjust the brightness and turn the device on/off.
Take in mind that the controller uses “Triple RGB-HEX” coding so colors are limited !!

The Controller can be bought at AliExpress or at the local LED-store :
https://www.aliexpress.com/item/led-WiFi-controller-1-port-control-max-2048-pixels-support-WS2811-WS2812-DMX512-etc-Controlled-by/32507572159.html?spm=2114.search0204.3.13.397b062nAXaz0&ws_ab_test=searchweb0_0,searchweb201602_3_10152_10151_10065_10344_10068_10342_10343_10313_10059_10340_10341_10534_100031_10084_10604_10083_10103_10304_10307_10615_10301_10142,searchweb201603_36,ppcSwitch_7_ppcChannel&algo_expid=6eab6bb4-5cdf-44b4-b54c-3881fc76d51a-2&algo_pvid=6eab6bb4-5cdf-44b4-b54c-3881fc76d51a&transAbTest=ae803_5&priceBeautifyAB=2

If you want to control a RGB-Strip (instead of a grid) you can use a WS2812/B LED-strip this can be bought at AliExpress or at your local LED-Store:
[url=https://www.aliexpress.com/item/5M-30Pixel-M-150-5050-RGB-SMD-WS2811-IC-Built-in-WS2812B-WS2812-white-PCB-Addressable/32367479484.html?spm=2114.search0204.3.180.341ad19dNFh4yi&ws_ab_test=searchweb0_0,searchweb201602_3_10152_10151_10065_10344_10068_10342_10343_10313_10059_10340_10341_10534_100031_10084_10604_10083_10103_10304_10307_10615_10301_10142,searchweb201603_36,ppcSwitch_7_ppcChannel&algo_expid=9a7e0aa4-a73d-44c3-8d1a-c14fbd591e20-20&algo_pvid=9a7e0aa4-a73d-44c3-8d1a-c14fbd591e20&transAbTest=ae803_5&priceBeautifyAB=2]https://www.aliexpress.com/item/5M-30Pixel-M-150-5050-RGB-SMD-WS2811-IC-Built-in-WS2812B-WS2812-white-PCB-Addressable/32367479484.html?spm=2114.search0204.3.180.341ad19dNFh4yi&ws_ab_test=searchweb0_0,searchweb201602_3_10152_10151_10065_10344_10068_10342_10343_10313_10059_10340_10341_10534_100031_10084_10604_10083_10103_10304_10307_10615_10301_10142,searchweb201603_36,ppcSwitch_7_ppcChannel&algo_expid=9a7e0aa4-a73d-44c3-8d1a-c14fbd591e20-20&algo_pvid=9a7e0aa4-a73d-44c3-8d1a-c14fbd591e20&transAbTest=ae803_5&priceBeautifyAB=2[/url]

You need a 5v Power Supply for the strip and for the controller, for a WS2812B LED-strip every led consumes 0,06A, so for a 5 meter strip with 60 leds/meter you need 60x5x0,06 = 18 A !!! :wink:
The Power Supply can be bought at AliExpress or at your local LED-Store:
[url=https://nl.aliexpress.com/item/Redsky-freeshipping12-MEAN-WELL-original-LRS-100-5-5V-18A-meanwell-LRS-100-90W-Single-Output/32801775806.html?spm=a2g0z.search0104.3.8.39a32836TRY68Z&ws_ab_test=searchweb0_0,searchweb201602_5_10152_10151_10065_10344_10068_10342_10343_10313_10059_10340_10341_10534_100031_10084_10604_10083_10103_10304_10307_10615_10301_10142,searchweb201603_40,ppcSwitch_5&algo_expid=8f9b3f0d-3b43-4fa0-a639-f9b9dc66f6d2-1&algo_pvid=8f9b3f0d-3b43-4fa0-a639-f9b9dc66f6d2&priceBeautifyAB=5]https://nl.aliexpress.com/item/Redsky-freeshipping12-MEAN-WELL-original-LRS-100-5-5V-18A-meanwell-LRS-100-90W-Single-Output/32801775806.html?spm=a2g0z.search0104.3.8.39a32836TRY68Z&ws_ab_test=searchweb0_0,searchweb201602_5_10152_10151_10065_10344_10068_10342_10343_10313_10059_10340_10341_10534_100031_10084_10604_10083_10103_10304_10307_10615_10301_10142,searchweb201603_40,ppcSwitch_5&algo_expid=8f9b3f0d-3b43-4fa0-a639-f9b9dc66f6d2-1&algo_pvid=8f9b3f0d-3b43-4fa0-a639-f9b9dc66f6d2&priceBeautifyAB=5[/url]

You still need a power plug and electricity wires to connect the power supply to the controller and to a wallplug.

The plugin files are in the “DreamColor.zip” file, just select “Apps>Develop apps>Luup files” and upload all 4 files.
Next “Apps>Develop apps>Create Device”, then type “D_DreamColorRGBW1.xml” at “Upnp Device Filename” and reload Luup.
The next thing is that the plugin asks for the controller Ip-adress, this has to be entered at “Advanced tab” in your new created Device under “Ip”.
The default port from the controller is “4626” so you have to enter “:4626”. Next reload Luup and you can start control
your strip/grid. If a red warning box is showed (“can’t detect device”) just reload Luup again and it will disapear.

It would be nice if we can share .dat effect files, so if you made a nice effect and you think it’s worth it … !!
I hope many people will starting to use my plugin, and start to create their own .dat effect files, enjoy !! :slight_smile:

wow the plugin I never knew I needed! Just getting fed up with my buggy Raspberry Pi controlling my WS2812 LEDs i flushed into my floor couple years ago, didn’t know there was a wifi controller available! have to order one and try out your plugin, thank you in advance!

Hello,

samyoue , thanks for your reply.
I thought about using a raspberry (or a clone) in first instance, but I read the next article on the internet and it changed my mind:

" This is all to say that the interface is very time-specific. To run the LEDs you?ll need a real-time processor, like an Arduino; microprocessors like those on the Raspberry Pi or pcDuino can?t give you a reliably-timed pulse. Even if one bit is less than a microsecond off, that could mean the difference between purple and maroon. "

The next thing is that the software provided by the manufacturer, to create your own .dat effect files, saves a lot of programming time !!
Hope you will enjoy the plugin !!

Hello

This looks great.
I have been looking for a way to create a permanent holiday light install on my house (I hate digging out the ladder and climbing up 30+ feet to hang the lights)

This looks like a perfect solution.
My one question is how well dose this work with multiple controllers? With your rough math of 5.5m per controller capacity I would be looking at a minimum of 10 controllers.
I would be looking at using the DMX512 protocol if that changes anything.

Hello,

My one question is how well dose this work with multiple controllers? With your rough math of 5.5m per controller capacity I would be looking at a minimum of 10 controllers. I would be looking at using the DMX512 protocol if that changes anything.

The controller H806SB has a maximum of 2048 LEDs who can be controlled, this means if we’re speaking about a strip with 60 LEDs/m, 2048:60=34 meter!!
I think that will be enough for your whole house !! :slight_smile:
This is a standard feature and you have to program that yourself in the .dat effect files.

When I was talking about “Beside this the LED-controller can be used to control like a normal RGB LED-strip” it’s something I implemented in the plugin, it’s not standard.
If you want I can adjust an Implementaton file so that you can use the normal RGB colors on your strip, but I cannot test this so I don’t know if this will work !!

[size=10pt]DreamColor PlugIn Update[/size]

I made some changes on the coding and now it’s possible to choose more RGB colors,
the downside is that, with some colors, the brightness adjustment isn’t optimal.
So if you prefer brightness control above more colors you can stick to the original plugin.

The best result will be achieved by choosing brightness level 50%, and in the RGB color
picker you have to select the colors on the right side of the palette.

Hope you like it !!

DreamColor PlugIn Update

thanks to “thistle2015” I could fix a little bug in the DreamColorRGB plugin.
The fileselector selected 1 file above, it selected file no. 2 instead of no.1 etc.
The adjusted implementation file you can find within this post.

Hope you like it !!

[quote=“GreatGazoo, post:1, topic:198330”]With this plugin you can control your strip/grid :

  • In the User Interface from Vera

Turn strip/grid on and off, brightness adjustment, speed adjustment, .dat effects file select and single-file or loop-file modus

- With Http requests in your web-browser

turn strip/grid on/off
http://ip_address:3480/data_request?id=action&output_format=xml&DeviceNum=6&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0
http://ip_address:3480/data_request?id=action&output_format=xml&DeviceNum=6&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1[/quote]

Hi.

Do you have direct ip control commands for this controller H806SB? ON, OFF, brightness, speed, etc. Not through Vera with DreamColor RGB PlugIn instaled.

Thanks.

Hello,

thanks for showing your interest in the DreamColor plugin.
No this controller can not be used with direct IP-controls, it’s using UDP-commands instead.

With the DreamColor plugin installed on your Vera it’s possible to control it with http- commands.

Hope this helps,

thanks for your reply, sorry for my English.

Yes, I saw it. But in your DreamColor plugin, commands for the H806SB controller are somehow formed and work (I have not tried)! Can be this commands sent from a third-party control system without using Vera?

Thanks.

Hello,

Yes of course, my plugin is not a official plugin.
I had to decode the commands sent to the controller myself (sent from a provided app ), so I could use them in my plugin.
There’s no official API for this product.

Hope this helps,

you could show an example of such commands (eg ON or OFF). I think these are the commands in hex?

Hello,

I can give you one code.
This one is for speed up the effect file:

fb c1 26 20 0a 01 00 84 00 ec 41 00 08 ec 41 00

The first two groups are always the same
The third group is the session number, increases with one every command.
The fourth group is the speed value.
The fifth group is the brightness value.
The sixt group is whether you selected to play one effect file ore all the files in a row.
And the rest is just the end of the file (I think, never could find a reason for that).

Hope this helps

thanks. in my free time I will try this code and answer.

Hello,

thanks again for your reply.
The file attached to a former post is an adjusted xml file, this one can be used
instead of the file in the zip folder, in the old file the “select file command” selected the file number
1 above the selected filenumber because of a mathematical failure !!

You can install the plugin by unzip the DreamColorRGB1.zip package and drag/drop the files (fromout windows) separately
into : Apps → Develop Apps → Luup Files → Upload Box

Hope this helps,

Hello.

[quote=“GreatGazoo, post:15, topic:198330”]You can install the plugin by unzip the DreamColorRGB1.zip package and drag/drop the files (fromout windows) separately
into : Apps → Develop Apps → Luup Files → Upload Box[/quote]

This is in the standard interface.

Can this be done in the ALTUI interface?

Thanks.

Hi.

I installed the plugin 1.3 on the new VeraEdge with the latest firmware.

I entered the ip address of the led-controller and the port. Not one command/function is working.

What am I doing wrong?

On the controller H806SB, firmware version 104.

Thanks.

p.s. from web:

http://192.168.1.16:3480/data_request?id=action&output_format=xml&DeviceNum=3&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0

answer:

ERROR: Device not ready

Hello,

terribly sorry to hear the plugin is not functioning !!
Are you sure you entered the correct ip-adres??
In my case the controller automatically got the ip 255.255.255.255 from the DHCP.
Can you try to leave the port empty, so only enter the ip-adress (plugin will assume that port = 4626) ?

hope this helps !!

Hello

[quote=“GreatGazoo, post:18, topic:198330”]Are you sure you entered the correct ip-adres??
In my case the controller automatically got the ip 255.255.255.255 from the DHCP.[/quote]
yes, I entered the correct ip-adress. controller in my case got the ip-adress 192.168.1.50 and mask 255.255.255.0 from the DHCP server with reservation by MAC address.

[quote=“GreatGazoo, post:18, topic:198330”]Can you try to leave the port empty, so only enter the ip-adress (plugin will assume that port = 4626) ?
hope this helps !![/quote]
I’ll try tomorrow.

I tried installing all versions of your plugin. Only when installing the plug-in version from your very first post, the plug-in sends commands (I see it in the sniffer). But the controller does not react to any command.

Hello,

so you entered the ip adres from the computer with "sniffer "software installed and you see the
commands send from Vera ?
And if you install the latest plugin those commands are not arriving anymore ?
Strange??
Did you install the app from the manufacturer on a Android phone, and if yes, is this functioning ?
I will check the files in the latest version and try to find the problem ?..