I have a scene triggered by the time of day and Lux Level of 0-5. This switches on my Kitchen light and then switches it off after 15mins. The scene runs fine, but If I?m in the kitchen whilst the scene is running the Lux level is higher (around 17 Lux) therefore although the sensor detects I?m in the kitchen the scene doesn?t ?re-run? because of the light level.
I was just wondering how I could say : ignore the lux level after first being activated or maybe ignore it for 15Mins? I don't know the proper luup code language for such a request.
It uses the following code inserted in the trigger part:
local dID =284
local lLow = 0
local lHigh = 8
local allow = true
local lCurrent = tonumber((luup.variable_get("urn:micasaverde-com:serviceId:LightSensor1","CurrentLevel",284)))
return (((lCurrent >= lLow) and (lCurrent <= lHigh)) == allow)