My mac just wont sleep and is warm in the morning

I gave my mac a bedtime routine so it can stay awake during the day but idle sleep at night. Great for running agents in the background, but not kill your hardware for 24/7 use.