Just wanted to toss out there for folks that have various weather stations, they usually have either a LUX or UV solar radiation sensor that you can use for incorporate into day/night events. I found this out by accident on my station that it even had this sensor. I use it to turn on/off outdoor lights for the time being but will eventually do other things as well such as using Dahua day/night schedule changing program, changing parameters on a DSC 1864 home alarm system, etc.