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
UKCamaroSS 2
Hi,
What is the difference between "Enabled" and "Running Instance"?
The problem I have is, a scense made in Lua is not working.
I have the HC2 toolkit, and I can see enabled = false, but running instance = 1
The scene is supposed to run every one minute between a set time (in this case for testing 09:08 and 09:18: - how do I know if the scense is actually being performed, and therefore the lack of resonse is not a scene issue?
--[[
%% autostart
%% properties
%% events
%% globals
--]]
local sourceTrigger = fibaro:getSourceTrigger();
function tempFunc()
local currentDate = os.date("*t");
local startSource = fibaro:getSourceTrigger();
if (
( (tonumber(os.date("%H%M")) >= tonumber(string.format("%02d%02d", "09", "08")) and tonumber(os.date("%H%M")) <= tonumber(string.format("%02d%02d", "09", "18"))) and (math.floor(os.time()/60)-math.floor(1470815880/60))%1 == 0 )
)
then
fibaro:call(46, "pressButton", "1");
setTimeout(function()
fibaro:call(46, "pressButton", "1");
end, 2000)
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(46, "pressButton", "1");
setTimeout(function()
fibaro:call(46, "pressButton", "1");
end, 2000)
end
end
Thanks,
2 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.