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


  • 0

RGB LUA CALLS setting colours and brightness


Jamie mccrostie
 Share

Question

When setting the value for a RGB strip, how is the colour number represented in the call?

i.e fibaro:setValue("122","?")

example colour number shown on RGB colour  properties #0000FF .

 

Also is the brightness and colour represented in this number or are they set separately?

Thanks

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

The format is :     

 

fibaro:call(rgbwModul, "setColor", red, green, blue, white); 

fibaro:call(rgbwModul, "turnOn"); 

 

where rgbwModul is your modules ID and the four colours can have a value from 0 to 255. If you only have a RGB led strip, then white should be changed to "0". That is " + 0 + ".

 

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

  • 0
Guest winiu

Please login or register to see this code.

HC2

 

fibaro:call(rgbwModul, "setColor", red, green, blue, white); 

fibaro:call(rgbwModul, "turnOn"); 

HC3 ??? 

 

 

Link to comment
Share on other sites

  • 0

Hi,
the call works fine with numbers, but do we have a chance to "GET", "SAVE", "CALL" the settings?

With fibaro.get i will receive a STRING (ex. 255,40,71,0) this string cannot be used directly to call this colors.

 

Any idea how I can do that?

Link to comment
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   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.

 Share

×
×
  • Create New...