Welcome to Smart Home Forum by FIBARO
Search the Community
Showing results for tags 'manual'.
@A.Socha Since 5.030 we have QuickApp:error(message, …) for error situations. In the online manuals the examples show: error = function(error) self:debug("Error:", error) end}) Shouldn’t that be: error = function(error) self:error("Error:", error) end}) ? because it is an error situation?
Hi guys, I would please need help with my scene. My aim is to turn automatically light off after specific time. This works until this happens: 1) user turns the light on 2) user turns the light off before 10 minutes 3) another user comes and turns the light on 4) the previous scene is still running and turns the light off when it finished 10 minutes What I would like is: 1) turn manually light on and start counting 10 minutes 2) if the light was not turned off manually within 10 minutes, turn the light off 3) if the light was turned off manually within 10 minutes and another user turned the light on again (within the first run), start new sleep for 10 minutes and so on Here is what I have: --[[ %% properties 45 value %% events %% globals --]] if (fibaro:countScenes() > 1) then fibaro:abort() end; local myState = tonumber(fibaro:getValue(45, "value")) if (myState > 0) then fibaro:sleep(10*60*1000); fibaro:call(45, "turnOff"); end Thank you for any help, tampiss