Ecobee integration - setting hold mode on automation

I am trying to control my ecobee thermostat with home assistant so I can get a lot more control over what I want it to do. I want to check the inside temps, outside temps, and forecasted temps every few minutes, then decide what to do.The one thing stopping me is if someone changes the temperature manually at the ecobee, then my automation will override their manual change. Looking at the attributes of the ecobee, I don’t see anything that will let me check to see if it is in hold mode because someone changed it manually. I can’t even tell if someone changed it manually because the only thing I can see changing is the set temperature. Has anyone figured out a way to do this, or am I overlooking something?
I haven’t written the automation yet. I am still planning it out.

I just figured it out. When the attribute preset_mode is set to “temp”, it means the system is on a temporary hold.

You, sir, are my hero!

Time to go update my automations