Here is a simple SmartThings app that allows you to control a series of switches through motion after sunset and before sunrise based on your zip code.