The app I use is the stock smart lighting app. It runs locally. I specifically use that for most of my motion lights. Pick a light, pick what triggers it and then set up options. For instance, my bedroom lights turn on if someone enters them but only if the luminescence is below 10lux and only up until I go to bed. They also shut off the lights after 5 minutes of leaving the room.
My bathroom lights dim to 50% from 6AM to 10AM if the luminescence is below 10lux for getting ready for work. 20% from 10AM until 10PM, 1% from 10PM until 6AM to keep from blinding me if I get up in the middle of the night. I had to do that with scenes.
You can pretty much use any compatible sensor and bulb but if you want to get lux conditions, you have to have a sensor. I use those Aeotec Z-Wave Multisensors. They do motion, temp, lux, tamper, UV, and humidity. You see where I use the lux and motion. I have one in the bathroom that also automatically controls the vent fan based on humidity.