Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute Lua Online

--[[
%% properties
63 value
303 value
%% weather
%% events
%% globals
--]]

-- allow only one instance of this scene to run at a time
if (fibaro:countScenes() > 1) then
    fibaro:abort()
end

local startSource = fibaro:getSourceTrigger();
if (
 ( fibaro:getGlobalValue("DagNacht") == "Nacht"  and  tonumber(fibaro:getValue(63, "value")) > 0  or  tonumber(fibaro:getValue(303, "value")) > 0 )
or
startSource["type"] == "other"
)
then
	fibaro:call(90, "turnOn");
	fibaro:call(53, "setValue", "100");
	setTimeout(function()
		fibaro:call(90, "turnOff");
	fibaro:call(53, "setValue", "20");
	end, 120000)
end

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.