Jump to content
  • 0

HC3 RGBW LUA get value (FGRGBW441M)


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 post
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 post
Share on other sites
  • 0

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

Link to post
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.

×
×
  • Create New...