hey there developers ,
I’m very new to Luup code , just installed the fibaro motion + light + temp sensor today.
for starts I want to create a scene where the motion sensor will switch a light switch on unless there’s already light in that area.
so I’ve created a scene with motion trigger , now I need to add a Luup code that queries the light sensor for its lux value and add a condition for this scene to run only if lux is less than [SomeValue].
can someone please explain how do I add this condition?
also , where can I found some documentation and some tutorial or example code snippets?
Thanks