Custom state for scheduled item in scheduler

When doing my thermostat automations for my HVAC system, I use the scheduler and create a schedule for when I want the thermostat set warmer or cooler. However, I wish that I could have a little more information in my schedule item other than just ‘On’ or ‘Off’. I’d like to be able to define what state the schedule is in per scheduled item.

For example:
Mon: 6:30am-9:00am state is ‘Wake’, 9:00am-5:00am state is ‘Leave’, 5:00pm-10:00pm state is ‘Return’, 10:00pm-6:30AM state is ‘Sleep’

If there needed to be a 5th scheduled time to deal with going over midnight, that is fine.

Then in my automation, instead of just checking if the schedule is ‘On’ or ‘Off’, I could check for what state the schedule is in and take the appropriate action.

Closed as a duplicate. Please search before posting.

You can vote and comment here: Weekly Schedule Helper - Multi state option