EcoBee 4 - can I programmatically chose Comfort mode?

This should be very simple. I want to be able to pick a comfort mode (Home, Away, Sleep, etc) based upon an event. For the life of me, I can’t find a way to do this. Do I need a custom device driver? If so, which one will allow this?

I believe there are some custom apps or handlers that can do it. I use a virtual switch and IFTTT.

That is a good idea if there is no better solution. I just assumed that someone would have developed a custom device driver or something like that.

Ecobee Suite by Barry is free and great