Controlling Ecobee thermostat in an automation

Check out:

I use this with ST presence changing my location mode. With the mode helper in ecobee suite smartapp you can change your ecobee mode based on ST location mode changes.