AB - Modified to avoid turning lights on between sunrise and sunset