I have updated my Vere Lite to Firmware 1.5.672 so finally got my Fibaro motion sensor to show up as three sensors Motion, Temp and a Light sensor. I have made a scene where if the motion sensor which is the Trigger, detects movement it turns the light on all works OK, so I searched the nett to find some LUUP code that I could add to the scene so it uses the inbuilt light sensor so it only turns the lights on if it’s dark enough, the code I used is below
local lul_light_level=luup.variable_get(“urn:micasaverde com:serviceId:LightSensor1”,“CurrentLevel”,56) if ( tonumber (lul_light_level) >1) then
return false
end
But it has no effect the light turns on when motion is detected no matter what the Light sensor lvl is any ideas ?