Bonjour
ci joint le code qui gere mes lampes avec la minimote mais depuis la v4 plus rien ne fonctionne ni le meme code pour la porte de garage
Qu'est qui a changé entre la v3 et V4 pour les minimote ?
Cordialement
merci par avance de votre aide
--[[
%% autostart
%% properties
178 sceneActivation
%% globals
--]]
local ButtonPressed = fibaro:getValue(178, "sceneActivation")
if ( tonumber(ButtonPressed) == 1) then
fibaro:call(104, "turnOn")
fibaro:debug("MiniMote button 1 pressed")
elseif ( tonumber(ButtonPressed) == 2) then
fibaro:call(104, "turnOff")
fibaro:debug("MiniMote button 2 pressed")
elseif ( tonumber(ButtonPressed) == 3) then
fibaro:call(102, "turnOn")
fibaro:debug("MiniMote button 3 pressed")
elseif ( tonumber(ButtonPressed) == 4) then
fibaro:call(102, "turnOff")
fibaro:debug("MiniMote button 4 pressed")
elseif ( tonumber(ButtonPressed) == 5) then
fibaro:call(105, "turnOn")
fibaro:debug("MiniMote button 5 pressed")
elseif ( tonumber(ButtonPressed) == 6) then
fibaro:debug("MiniMote button 6 pressed")
fibaro:call(105, "turnOff")
elseif ( tonumber(ButtonPressed) == 7) then
fibaro:debug("MiniMote button 7 pressed")
fibaro:call(102, "turnOn")
fibaro:call(104, "turnOn")
fibaro:call(105, "turnOn")
elseif ( tonumber(ButtonPressed) == 8) then
fibaro:call(102, "turnOff")
fibaro:call(104, "turnOff")
ibaro:call(105, "turnOff")
fibaro:debug("MiniMote button 8 pressed")
else
fibaro:debug("No response")
end