Hi,
How do you configure a scene that will turn on lights when motion and does not turn off until motion sensor has been safe for X time?
I am looking for both Lua and block options, if available.
Until now I have only found option for "delay" meaning lights will turn off after given time no matter if there has been motion during "delay" period.
Hope someone has found a solution for this.
Hi, I just tested, and it turns on and then it turns off immediately after a second. So it is good it can turn on and off.
local hc = fibaro
jT = json.decode(hc.getGlobalVariable("HomeTable"))
local light = {jT.Bathroom.bathroomlight}
local motion = jT.Bathroom.motion
local lux = tonumber(hc.getValue(jT.Bathroomt.lux, "value"))
local luxmin = 500
count = 0
function checkLights()
if #light > 0 then
for i