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

HC3 RGBW LUA get value (FGRGBW441M)


Apax
 Share

Question

Hi all!
 
Trying to read value from my RGBW 
It works if i Set value via SetColor command via an LUA scene(like below) , but if i use physical buttons connected to the module and change color that way, I can not read what color is set.
 
example I am using this code and looping it
then I go to my buttons and push them , the only thing that changing is Value
-------------------------------
i=0
fibaro.call(112"setColor""0""0""0""0")-- clear start
fibaro.call(112"setValue""0")--clearstart
 
while i <=30 do --setting a loop for trying
i=i+1
fibaro.sleep(2000)
 
fibaro.debug("Garage""Value : " ..fibaro.getValue(112"value"))
fibaro.debug("Garage""lastc : " ..fibaro.getValue(112"lastColorSet"))
end
-----------------------------
 
The module seems to work well and change the color like i set it to 
It has to be a way to read what color the device has even if it set by module input 1-4 ?
 
i can ad that this worked in HC2 :)
Edited by Apax
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
36 minutes ago, Apax said:
Hi all!
 
Trying to read value from my RGBW 
It has to be a way to read what color the device has even if it set by module input 1-4 ?

You could try

fibaro.getValue(id, "color")

Link to comment
Share on other sites

  • 0
  • Inquirer
  • role = output/input (or RGBW lights) solved the problem :) 

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