The energy storage batteries, employed in solar systems installed on lampposts, are usually placed in devices such as switchboards fixed at an elevation near the top of the column. However, this storage solution becomes inefficient, because it is not possible to guarantee the control of the working temperature of the batteries, due to the low thermal insulation capacity of these storage devices. In this sense, an underground compartment made of concrete, steel plate and rock wool were created, embedded in the foundation of the lamppost, with the purpose of using geothermal energy to maintain an adequate temperature inside the compartment. To verify the temperature inside the battery storage compartment, a thermal analysis was performed, where heat transfer by conduction, convection and radiation was considered. Analyses were performed in steady state, and later, transient state, considering the initial temperatures of the thermal study in the previous steady state. With a storage volume of 1m3 and the base of the compartment at a depth of 2m, it was verified that it is possible to use geothermal energy to cool or heat, depending on the season, a system through geothermal energy. Considering a typical day in July, with room temperature of 35oC, a reduction of approximately 8oC was obtained inside the storage compartment, compared to the ambient temperature.