Do things based on light levels?

I’m looking for a way to turn lights on and off based on readings from an illuminance sensor. The closest SmartApp I could find in the Android app was called LightUpTheNight, but it does not allow me to specify what constitutes “dark” or “light”. Anyone know of any other SmartApp that supports that?