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
Question
fhermes 0
Hi,
i try to use the RGBW Module in a Lua Script but i cannot set the Color. i have try it now often but it should not work. Here are my code:
fibaro:call(16, "setColor", "1", "1", "1", "1");
fibaro:sleep(1*1000);
test2 = fibaro:getValue(16, "color")
fibaro:debug(test2);
fibaro:sleep(1*1000);
fibaro:call(16, "turnOff")
if i send this code, the color jumps to 1,1,1,1 --- thats ok
if i send
fibaro:call(16, "setColor", "50", "1", "1", "1");
i get the Color 255,5,5,5 instead of expected 50,1,1,1
whats wrong there? same if i use setW, setR, setG, setB Everthing above 2 let the level of the color jump to 255.
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.