Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Recommended Posts

Posted

How to connect a Fibaro RGBW controller to a 220v LED strip

 

220v LED strips can run for 50m vs 12vDC/24vDC that have a limitation of 5m/10m (then you need to start adding amps, additional controllers and return wires)

 

You will need:

1. Fibaro RGBW controller x 1

2. Home Center 2

3. Fibaro Dimmer x 3

4. 220v RGB LED 50m roll

 

Connect before each of the R,G,B lines a dimmer on each line. Let's call them RDimmer, GDimmer and BDimmer 

The RGBW controller will not be connected to any LED strip. It is just used as an interface for the users.

 

 

RGB device ID is 100

RDimmer is 101

GDimmer is 102

BDimmer is 103

 

Create a scene and add the following code. Change the device IDs with your own.

 

CODE

---------------------------------------------------------------

 

--[[
%% properties
 
%% globals
--]]
 
local colorSet = fibaro:getValue(100, "lastColorSet");
local RGBWTable= {};
local i = 1;
 
for value in string.gmatch(colorSet,"(%d+)") do     
    RGBWTable = value;
    i = i + 1;
end
 
local RRR = math.floor((RGBWTable[1] / 2.55)) ;
local GGG = math.floor((RGBWTable[2] / 2.55)) ;
local BBB = math.floor((RGBWTable[3] / 2.55)) ;
 
fibaro:call(101, "setValue", RRR);
fibaro:call(102, "setValue", GGG);
fibaro:call(103, "setValue", BBB);  
 
 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...