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
WiYantra 2
Hi all,
We have installed Aeon labs Minimote onto HC2, as a battery operated device reconfigured the device in advanced settings tab.
We tried with pre-programmed settings i.e., ALL ON & ALL OFF functions worked fine, the Minimote is able to communicate with HC2.
Written the LUA code on HC2 to configure the Minimote buttons, after saving all the settings tried to operate the Minimote, no triggering has happened. The LUA code tried is as shown:
HC2 version is 3.580
Minimote ID is 43
Light to be turn ON ID is 10
-[[
%% properties
43 sceneActivation
%% globals
--]]
local ButtonPressed = fibaro:getValue(43, "sceneActivation")
if ( tonumber(ButtonPressed) == 1) then
fibaro:debug("Minimote Button 1 Pressed")
elseif ( tonumber(ButtonPressed) == 2) then
fibaro:debug("Minimote Button 2 Pressed")
elseif ( tonumber(ButtonPressed) == 3) then
fibaro:call(10, "turnOn")
fibaro:debug("Minimote Button 3 Pressed Tube light M2 ON")
elseif ( tonumber(ButtonPressed) == 4) then
fibaro:call(10, "turnOff")
fibaro:debug("Minimote Button 4 Pressed Tube light M2 OFF")
elseif ( tonumber(ButtonPressed) == 5) then
fibaro:debug("Minimote Button 5 Pressed")
elseif ( tonumber(ButtonPressed) == 6) then
fibaro:debug("Minimote Button 6 Pressed")
elseif ( tonumber(ButtonPressed) == 7) then
fibaro:debug("Minimote Button 7 Pressed")
elseif ( tonumber(ButtonPressed) == 8) then
fibaro:debug("Minimote Button 8 Pressed")
else
fibaro:debug("No response")
end
We have taken reference on writing the LUA code from below link
Please login or register to see this link.
Please help us how to solve this issue
10 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.