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!



Smart Home Forum by FIBARO Team

  • 0

Key fob



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")

fibaro:debug("No response")


Edited by Infinity
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @Infinity,


i'm using this scene for Keyfob:


Please login or register to see this code.

so for triggering i use: "646 CentralSceneEvent" don't forget the %%events in the header

then i check the trigger with "fibaro:getSourceTrigger()"

and then i call the appropriate scene by scene number, not using directly "fibaro:call" statement....


Hope this will help a bit.


Edited by Bodyart
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.

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