This can be a difficult problem to solve.
The problem with Color Temperature is that light from the sun is filtered differently depending on the time of day. At sunrise or sunset the color is around 1600K (red sun sunsets) and at noon 5200K (bright blue sky).
The problem with ultraviolet is that many street lamps produce significant UV bands.
Ozone is a gas and doesn't apply to solving this problem.
I think it will be difficult to build a 'general' system that works everywhere. However, if you just want to build something that works at you location, you can probably do this easily. You need to identify the sources of light that you may receive and characterize their spectra. This is actually pretty easy - just find out what kind of lamps are being used and lookup their spectra.
Astronomers are constantly analyzing light from the street because it affects their 'seeing' and there is a lot of info on the internet about this. EG -
http://www.astrosurf.com/buil/us/spe2/hresol4.htm shows the spectra for the standard US street lamps.
If your artificial light source is an incadenscent bulb, it's a little harder since its spectrum is fairly continuous. Also you may want to research light detection for autos - they have a similar problem with automatically controlling headlights.
You will also need a delaying filter so your device doesn't trigger on passing car headlights, etc.
A microprocessor could help by scheduling times that the device is enabled.
Sorry I don't have a specific solution to give you, but I hope this helps some.