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
Herni 3
Hi, everybody. I have a problem with the following scene. When the fibaro:setSceneEnabled(16,false) is called and the ID 904 device is turned OFF the scene with ID 16 is triggered (because the value of ID 904 trigger it). So I don´t understand why happen it if i have disabled the ID 16 previuosly. Could anyone help me? Thanks in advance.
--[[
%% properties
903 value
%% weather
%% events
%% globals
--]]
local dispositivos = {178, 194, 183, 189, 188, 179, 309, 368, 184};
local startSource = fibaro:getSourceTrigger();
if ( tonumber(fibaro:getValue(903, "value")) > 0 ) --Si Botonera 5 Tecla 5 ON
then
local id;
for i=1,#dispositivos
do
id = tonumber(dispositivos[i]);
fibaro:call(id, "setValue", "100"); --Enciendo toda la SALA DE ESTAR
end
fibaro:setSceneEnabled(16,false); -- Why the scene is not disabled?
fibaro:call(904, "turnOff"); --When i turn OFF the ID 904 device the scene with ID 16 is triggered anyway
fibaro:setSceneEnabled(16,true);
print ("La Tecla 5 de Botonera 5 está ON");
end
if ( tonumber(fibaro:getValue(903, "value")) == 0 ) --Si Botonera 5 Tecla 5 OFF
then
local id;
for i=1,#dispositivos
do
id = tonumber(dispositivos[i]);
fibaro:call(id, "turnOff"); --Apago toda la SALA DE ESTAR
end
print ("La Tecla 5 de Botonera 5 está OFF");
end
8 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.