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
XanderF 8
I'm using a minimote to switch on/off lights without a separate/visible switch mounted to the wall. In 3.600 and below I was able to handle all 8 button states with lua, but after upgrading to 4.032 it does not work anymore. None of the 8 cases is triggered.
The minimote is still visible in the HC2 web interfaces, but it does not do anything. Any ideas how to fix it?
--[[
%% properties
12 sceneActivation
%% globals
--]]
local ButtonPressed = tonumber(fibaro:getValue(12, "sceneActivation"))
if (ButtonPressed == 1) then
fibaro:debug("MiniMote button 1 pressed")
local wallLamp = fibaro:getValue(11, 'value');
if (tonumber(wallLamp) == 0) then
fibaro:call(11, "setValue", 40)
else
fibaro:call(11, "turnOff")
end
elseif (ButtonPressed == 2) then
fibaro:debug("MiniMote button 2 pressed")
elseif (ButtonPressed == 3) then
fibaro:debug("MiniMote button 3 pressed")
elseif (ButtonPressed == 4) then
fibaro:debug("MiniMote button 4 pressed")
elseif (ButtonPressed == 5) then
fibaro:debug("MiniMote button 5 pressed")
local tableLamp = fibaro:getValue(46, 'value');
if (tonumber(tableLamp) == 0) then
fibaro:call(46, 'turnOn')
else
fibaro:call(46, 'turnOff')
end
elseif (ButtonPressed == 6) then
fibaro:debug("MiniMote button 6 pressed")
elseif (ButtonPressed == 7) then
fibaro:debug("MiniMote button 7 pressed")
elseif (ButtonPressed == 8) then
fibaro:debug("MiniMote button 8 pressed")
else
fibaro:debug("No response")
end
4 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.