Convert Non-Programmable thermostat to ESPHome

Hello fellow homehackers!
I have a Non-Programmable Thermostat (Microvolt 1H Single Stage Heating according to the HomeDepot listing :smiley: ) This gas heater is controlled by an incredibly simple mechanism. If the wires are connected (touching) the heater turns on, if they are disconnected, the heater is off. Can someone point me in the correct direction to get this as an on/off switch in HA? I’ve never used ESPHome but have purchased some esp32’s to start my journey. I’m unclear if I need a relay that an esp32 would trigger or if there is a way to do this just with an esp32.

Thanks for the assist!

Well basically it’s the way most thermostat works, they put just on/off the heating system depending of temperature and sometimes of an algorithm when more modern :wink:
You need to use a relay so ESP and your circuitry is isolated of AC system and then you can link that relay on your ESP with Thermostat control card in HA and you’ll get a modern control of your AC !
Don’t forget you’ll need also to wire a temperature sensor (if you don’t have one already in your HA) on your ESP so your HA thermostat can work properly :sunglasses: