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
Infinity 0
I have edited a scene for key fob and it was on Setup Mode. but it doesn't work on mine. thanks
--[[
%% properties
443 sceneActivation
%% globals
--]]
local ButtonPressed = fibaro:getValue(443, "sceneActivation");
if ( tonumber(ButtonPressed) == 1) then
fibaro:call(81, "setMode", "2")
fibaro:debug("Keyfob button 1 pressed - Turn On AC")
elseif ( tonumber(ButtonPressed) == 2) then
fibaro:call(81, "setMode", "0")
fibaro:debug("Keyfob button 2 pressed - Turn Off AC")
elseif ( tonumber(ButtonPressed) == 3) then
fibaro:call(41, "turnOn")
fibaro:call(53, "turnOn")
fibaro:debug("Keyfob button 3 pressed - Turn On All Lights")
elseif ( tonumber(ButtonPressed) == 4) then
fibaro:call(41, "turnOff")
fibaro:call(53, "turnOff")
fibaro:debug("Keyfob button 4 pressed - Turn OFF")
elseif ( tonumber(ButtonPressed) == 5) then
fibaro:call(31, "turnOn");
fibaro:debug("Keyfob button 5 pressed - Turn off Alarm")
elseif ( tonumber(ButtonPressed) == 6) then
fibaro:call(31, "turnOff");
fibaro:debug("Keyfob button 6 pressed - Turno On Alarm")
elseif ( tonumber(ButtonPressed) == 7) then
fibaro:call(159, "turnOn")
fibaro:debug("Keyfob button 7 pressed - Turn on ceiling")
elseif ( tonumber(ButtonPressed) == 8) then
fibaro:call(159, "turnOff");
fibaro:debug("Keyfob button 8 pressed - turn off Ceiling")
else
fibaro:debug("No response")
end
Edited by InfinityLink to comment
Share on other sites
1 answer 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.