The device comprises an air compression unit,an air expansion unit, an air storage chamber, a weight and a generator; the inlet of the air compression unit is connected with an air inlet device, the outlet of the air compression unit is connected with the inlet of the air storage chamber through an energy storage pipeline, the outlet of the air storage chamber is connected with the inlet of the air expansion unit through an energy release pipeline, and the outlet of the air expansion unit is connected with the generator; a heat exchange unit is arranged between the energy storage pipeline and the energy release pipeline; the weight is arranged on the upper part of the air storage chamber and forms a piston -cylinder system with the air storage chamber; and a sealing device is arranged between the weight and the air storage chamber.