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 temperature


Question

Posted

Hi,

 

I already have an outside temperature gauge connected to my HC2 and want to use it together with led stripes to show the temperature ie. red when hot outside and blue when cold. Is that possible with the rgbw module?

15 answers to this question

Recommended Posts

  • 0
Posted

Please login or register to see this code.

 

notice: motion action can be removed if you want.

 

notice2: 

Please login or register to see this code.

15° - min

35° - max

  • Like 2
  • 0
  • Inquirer
  • Posted

    Thank you. I do use lua, but your program is a bit advanced. Could you explain the variables in the start? 

     

    Regards

    • 0
    Posted
    On 9/26/2017 at 5:23 PM, Thomasn said:

    Thank you. I do use lua, but your program is a bit advanced. Could you explain the variables in the start? 

     

    Regards

    1

     

    Ahhh, sure. but... if motion action it is not necessary for you - remove

    so,

     

    Please login or register to see this code.

    • 0
  • Inquirer
  • Posted (edited)

    Great - I kind of figured it out. Now I just have to wait for the leds - then I will start experimenting!

     

     

    Edited by Thomasn
    • 0
  • Inquirer
  • Posted

    Last question, 10der:

     

    Is it possible to colour temperatures from 0 to 30 in grades of colour from blue over yellow to red in your lua script? The reason I ask is that I have the module but waiting for the led strip to arrive. So I cannot experiment....

     

    regards

    Thomas

    • 0
    Posted

    Please login or register to see this code.

    • 0
  • Inquirer
  • Posted

    You are the man, 10der!

     

    • 0
    Posted

    All right, Sir, you let us know how that works out for you.

    • 0
  • Inquirer
  • Posted (edited)
    On 28/9/2017 at 8:31 PM, 10der said:

    All right, Sir, you let us know how that works out for you.

     

    i have used your program with great success. I have mounted a led-strip under some closets to show the outside temperature. When a lamp is turned on, the led-strip show the temperature for 10 sec and then turns white as long as the lamp is on.

     

    It works like a charm. But I wonder if there in your program is somewhere where the steps in temperature can be set? It is rather red-ish or even purple around 15 degrees. That colour is just ugly - but the temperature is common in Denmark. Could it be more yellow when middle temperature. I would like the temperature to be more either reddish, yellow-ish or blue-ish?

    Edited by Thomasn
    • Thanks 1
    • 0
    Posted (edited)

    1) map function - Re-maps a number from one range to another. That is, a value of fromLow would get mapped to toLow, a value of from High to toHigh, values in-between to values in-between, etc.

    2) SetLEDbyTemperature - trying to calculate color spline automatically. To control the RGB led which will give you (mathematically) 255*255*255 color (R*G*B)

     

    if you trying to search in this forum similar solution you can find a solution with multiple cases like a :

    if t >= 0 and t < 10 then colorRgb = aaaa

    if t >= 10 and t < 20 then colorRgb = bbbb

    if t >= 20 and t < 30 then colorRgb = cccc

    etc

     

    so, you can change SetLEDbyTemperature void 

    Please login or register to see this code.

     

    Please login or register to see this link.

     

    Edited by 10der
    • 0
  • Inquirer
  • Posted

    Thank you 10der.

    • 0
    Guest kappe
    Posted

    hi. i use Smart Lights V1.7.0  and dont need motion on,  that i alreade have it. i need only change rgbw without turn on function.

    how can i do it ?

    • 0
    Posted
    8 hours ago, kappe said:

    hi. i use Smart Lights V1.7.0  and dont need motion on,  that i alreade have it. i need only change rgbw without turn on function.

    how can i do it ?

     

    why you can't ask @Sankotronic ?

    • 0
    Posted
    9 hours ago, kappe said:

    hi. i use Smart Lights V1.7.0  and dont need motion on,  that i alreade have it. i need only change rgbw without turn on function.

    how can i do it ?

     

    1 hour ago, 10der said:

     

    why you can't ask @Sankotronic ?

     

    Hi @kappe,

     

    Since you are using Smart Lights v1.7.0 I recommend that you ask @stevenvd in this topic:

     

    • 0
    Guest kappe
    Posted

    Okey guys, will try.

    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.

    ×
    ×
    • Create New...