Thermostat controls C - Common G - Fan Y - AC Compressor W - Heat R - Electrical hot +Adding a 24 volt transformer to power a smart thermostat for systems which do not already have 24 volts.
Simple addition of transformer:
Installing Smart Thermostats on old heaters or boilers with millivolt thermostats.
These usually only have two wires (usually red and white) at the thermostat.
They require addition of a 24 v AC c-wire (common wire).
Heat only 2-wire boiler/furnace installations for ecobee thermostats | Ecobee Support
TH – The 24v hot leg from the thermostat on a call for heat (R+W closing) to the gas valve (TH terminal) to open the solenoid to allow gas to flow. This is assuming the transformer is good and the high limit is closed. TR – The 24v common/return side of the transformer. TH/TR – This is not internally wired to the gas valve. Not using this makes no difference to the circuit. You could run your 24v hot from the transformer directly to your NC high limit in the above example and be just fine. This is nothing more than a convenience terminal. Joining these wires with a marette (Wire nut or terminal multiplier) does the same thing as this terminal. Hope this helps clear up any confusion.
Fan too loud on wall heater.