Scheduling Vacation Periods for Devices