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

Rgbw and lua


trackingnewtech
 Share

Question

Hi in lua the only thing i do is to change the value ON/OFF.

But is it possible to change the color or to lauch a program of colors

Please login or register to see this image.

/emoticons/default_icon_question.gif" alt=":?:" />

Is there somewhere any lua reference about this module ?

Best regards

Link to comment
Share on other sites

Recommended Posts

  • 0
  • Inquirer
  • when you create a scene in lua you can all the actions ou variables of a module.

    In attachment you will see what this module can do.

    For example :

    fibaro:call(ID_RGB_CONTROLLER, "setColor", "0", "255", "0", "0") -- green

    fibaro:call(ID_RGB_CONTROLLER, "setColor", "255", "255", "0", "0") -- yellow

    fibaro:call(ID_RGB_CONTROLLER, "setColor", "255", "0", "0", "0") -- red

    fibaro:call(ID_RGB_CONTROLLER, "setColor", "0", "0", "255", "0") -- blue

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0

    Ou trouves tu la liste de toutes les propriétés de tes modules?

    Link to comment
    Share on other sites

    • 0

    Hi, you can find it to upper left corner when you're in lua scene edit mode. Best Regards.

    Link to comment
    Share on other sites

    • 0

    When there is movement Alarm (LDP/Red alert)

    And then go back to the Set color.

    This is very cool

    Please login or register to see this code.

    Hope it will be also available in the block scene.

    Last color is not working..

    using this now manually setting the color

    Please login or register to see this code.

    Link to comment
    Share on other sites

    • 0

    TANE, black color can be last color so better set them brightness to 100% or setup new color or start alarm program

    Link to comment
    Share on other sites

    • 0

    Thank you..

    Set up an new RGB for the led behind my TV.

    When there is movement outside.

    My Camera software will trigger a scene

    Scene will run for 10 seconds.

    Link to comment
    Share on other sites

    • 0

    Shad, hmm god idea, now you can only setcolor but i will talk about that to setup favorite color (id that color)

    Link to comment
    Share on other sites

    • 0

    What I need is something like previews status after a alert

    My hope was this was LastColorSet

    Link to comment
    Share on other sites

    • 0

    TANE, if you gonna change brightness from 0 to 99% rgb will turn on last color different from black (parameter 71 on 1)

    Link to comment
    Share on other sites

    • 0

    I use the RGB for decoration in the kitchen.

    When there is alert I like always to set

    fibaro:call(283, "startProgram", "6")

    After 10 seconds back to the previews status.

    This can be Off OR (any color)

    fibaro:call(283, "setColor", "42", "189", "209", "0")

    What is the command line for this

    I don't want that the led stay turned on at daytime

    this coed will do that

    Please login or register to see this code.

    Link to comment
    Share on other sites

    • 0

    What input do i need to have for rgbw controller to change color together with music?

    Link to comment
    Share on other sites

    • 0

    Jompa If you want make a discotheque, that is not going to be possible with that. Delay to change color is too long.

    But I think mayle sensor like that

    Please login or register to see this link.

    or

    Please login or register to see this link.

    Make video if you do that.

    Link to comment
    Share on other sites

    • 0

    Hello,

    Please login or register to see this code.

    I tried the script above but I would like to know how it works?

    I thought with "lastColorSet" it allowed to return to the last color but it comes back on white.

    What I want to do: assume that the active color is green, and if someone approaches the door, the color changes to a flashing red program for 20 seconds (this is not my program that 20 seconds but I wish it was the time before returning to the old color.), then returns to the previous program or green color in our instance.

    How?

    Also means the paramettre "Fibaro sleep (10 * 1000);"

    I think this is a time-based function of mean 10 * 1000?

    Thank you very much for your help.

    Link to comment
    Share on other sites

    • 0

    Domodial, fibaro:sleep(time_in_milliseconds) -> Pauses the script to the specified time in milliseconds.

    in the script :

    Please login or register to see this code.

    fibaro:call(...) -> Start program #5 for device ID# 283

    fibaro:sleep(...) -> Pauses the script 10 seconds

    fibaro:getValue(...) -> Retrieve information about propertie "lastColorSet" for device ID#283

    Link to comment
    Share on other sites

    • 0

    So I understood well enough ... except the adjustment of 10 seconds. In this regard, the warning light is a red state at least 2 minutes, and returns to the white color instead of the previous color (green for example). I do not understand why. Here is my script.

    Please login or register to see this code.

    Link to comment
    Share on other sites

    • 0

    Domodial, fibaro:getValue(...) only retrieve information about propertie "lastColorSet" for device ID#90 but not set the color, for example you can do fibaro:debug(fibaro:getValue(90, "lastColorSet")), degug: 25, 50, 50, '0' i think

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    I haven't try but i think you can get last color before start program and after the sleep use

    Please login or register to see this code.

    to set old color value...

    Link to comment
    Share on other sites

    • 0

    Try think like that:

    Please login or register to see this code.

    I didn't try, but I think that can work. I will check tonight if you want because I must do that since a while ^^.

    • Like 1
    Link to comment
    Share on other sites

    • 0

    thank you very much to you gentlemen! ! I also look tonight when I get to the house

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> !!

    So right now, the light is green.

    Someone passes close to the motion sensor, RGB pass on Program 7 (red warning light). But for now after it does not return to the green light.

    Please login or register to see this code.

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