This should be straightforward using EcoBee Suite. First you need to get ST modes doing what you want.
It sounds like you have home / away modes set up on the ST hub and switching automatically based on presence. Do you need to distinguish between sleep (I’m home) and night (I’m away)? For instance, if you want certain things to happen at night if you’re away but not if you’re home, you might want to create separate modes - I’ll call them Night(Home) and Night(Away). If nothing’s happening when you’re not there then you can just let Away run all night and you don’t need a separate mode.
So your automations in ST, roughly, are:
-When Kevin is present and time is 5am-8pm, change mode to Home.
-When Kevin is present and time is 8pm-5am, change mode to Night(Home).
-When Kevin is not present and time is 5am-8pm, change mode to Away.
-When Kevin is not present and time is 8pm-5am, change mode to Night(Away).
Then you need to install Ecobee Suite Manager - see instructions in the link - and create some Mode/Routine/Switches/Program helpers:
For each helper, the trigger is Location Mode Change (you can pick multiple mode, so Away and Night(Away) can be handled by the same helper. Set them to switch to the appropriate mode, and, most importantly, “Select Hold Type” to be “Until I Change”. That way the Ecobee schedule is overridden and ST is in complete control of the thermostat mode.
This is the primary feature I use in the suite but there are lots of other useful things it can do. Turning off the AC if I open the windows is another nice one.