Set TV to HDMI on Schedule start

I would like each time the schedule starts for the day that a CEC code for "set input to HDMI" is sent. It would seem everyone would want this to happen. I have found that people have changed the TV input to something other than HDMI and any time I want to start a schedule, I want the TV to HDMI. I have a status that lets me know the HDMI is connected, but that is no good if the TV input is not set to HDMI.