control nightlight on interval