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
ADN 0
Hi,
In my scene, when i launch it the fibaro:call(86, "pressButton", "2"); command are execute n times (many) (~10 times). Then as Global Variable change to Lavage or Off.
Have you got an idea ?
--[[
%% properties
85 valueSensor
%% globals
MachineALaver
--]]
local startSource = fibaro:getSourceTrigger();
if ( fibaro:getGlobalValue("MachineALaver") == "On" and tonumber(fibaro:getValue(85, "valueSensor")) > 1500 ) then
fibaro:call(86, "pressButton", "2");
fibaro:setGlobal("MachineALaver", "Lavage");
fibaro:sleep(60*1000);
elseif (fibaro:getGlobalValue("MachineALaver") == "On" and tonumber(fibaro:getValue(85, "valueSensor")) < 1500 ) then
fibaro:call(86, "pressButton", "3");
fibaro:setGlobal("MachineALaver", "Off");
fibaro:sleep(60*1000);
end
Best Regard,
ADN
3 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.