Is not called Thermopile, but the principle is the same.
Is called, Thermoelectric Battery, the model in the photo is a old one (uses heat to produce electricity).
The phenomenon of thermo-electricity was discovered in 1821 by Thomas Johann Seebeck.
The voltage difference, produced across the terminals of an open circuit made from a pair of dissimilar metals, A and B, whose two junctions are held at different temperatures, is directly proportional to the difference between the hot and cold junction temperatures
The opposite of the Thermoelectric battery is the Peltier Effect, it uses an electric current to produce temperature differences.