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
sega66 2
I have two simple scenes that should turn on the boiler pumps (528 and 529) if at least one of the valves (941,942 and 943) is open. And another scene that turns off the pumps when all the valves are closed. If I limit these scenes to a single instance-they don't work, why? And is it possible to combine these two scenes?
--[[
%% autostart
%% properties
941 value
942 value
943 value
%% weather
%% events
%% globals
--]]
if fibaro:countScenes()>3 then os.exit()end
local startSource = fibaro:getSourceTrigger();
if (
( tonumber(fibaro:getValue(941, "value")) > 0 )
or
( tonumber(fibaro:getValue(942, "value")) > 0 )
or
( tonumber(fibaro:getValue(943, "value")) > 0 )
or
startSource["type"] == "other"
)
then
fibaro:debug("ON .....");
setTimeout(function()
fibaro:call(528, "turnOn");
end, 5000)
setTimeout(function()
fibaro:call(529, "turnOn");
end, 10000)
end
----------------------------------------------------------------------------
--[[
%% autostart
%% properties
941 value
942 value
943 value
%% weather
%% events
%% globals
--]]
if fibaro:countScenes()>3 then os.exit()end
local startSource = fibaro:getSourceTrigger();
if (
( tonumber(fibaro:getValue(941, "value")) == 0 )
and
( tonumber(fibaro:getValue(942, "value")) == 0 )
and
( tonumber(fibaro:getValue(943, "value")) == 0 )
or
startSource["type"] == "other"
)
then
fibaro:killScenes(198);
fibaro:debug("OFF .....");
setTimeout(function()
fibaro:call(529, "turnOff");
end, 5000)
setTimeout(function()
fibaro:call(528, "turnOff");
end, 10000)
end
5 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.