Tak wygląda scena i proszę o pomoc w usunięciu linii. Rozumiem że trzeba usunąć linie ale nie wiem które.
--[[
%% autostart
%% properties
%% weather
%% events
%% globals
--]]
local sourceTrigger = fibaro:getSourceTrigger();
function tempFunc()
local currentDate = os.date("*t");
local startSource = fibaro:getSourceTrigger();
if (
( ((currentDate.day == 32) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "20:38") )
)
then
fibaro:call(317, "turnOn");
fibaro:call(699, "turnOn");
setTimeout(function()
fibaro:call(317, "turnOff");
fibaro:call(699, "turnOff");
end, 10000)
end
setTimeout(tempFunc, 60*1000)
end
if (sourceTrigger["type"] == "autostart") then
tempFunc()
else
local currentDate = os.date("*t");
local startSource = fibaro:getSourceTrigger();
if (
startSource["type"] == "other"
)
then
fibaro:call(317, "turnOn");
fibaro:call(699, "turnOn");
setTimeout(function()
fibaro:call(317, "turnOff");
fibaro:call(699, "turnOff");
end, 10000)
end
end