The power is supplied by a transformer, and when the thermostat makes contact between the 24 volt power and one or two of the other wires, a relay back at the heating/cooling unit activates the corresponding heat/fan/cool function of the unit(s).