Garage heater, door open/closr

I purchased a multi purpose st sensor for the garage door sensor,and wired up my old honeywell wifi thermostat to the garage heater.

2 problems:
#1 I can set up a routine to change the temp set point but how do I change the mode from heat to off and off to heat

#2 I only want this to work if I have the heat on… I don’t want the heat to always kick on when the garage door closes

I don’t think you’re going to be able to do that with a routine. You could do it in webCore however.

Yes WebCore is they way to do it. WebCore lets you write your own simple/complex logic based on your devices.