Module for warming and, alternately, for cooling, this module comprising for this purpose: - at least one electrocaloric capacitor, - an electrical energy storage device (28; 160), - a controllable circuit (50; 120; 130) for transferring electrical energy between the electrocaloric capacitor and the energy storage device, characterized in that: - the controllable circuit (50; 120; 130) for transferring electrical energy comprises an inductor connected between the electrocaloric capacitor and the storage device and at least one controllable breaker so as to toggle the circuit, alternately, between: • an energy recovery state in which it lets the current of the electrocaloric capacitor flow, through the inductor, to the energy storage device so as to decrease the voltage between electrodes of the electrocaloric capacitor while transferring at least part of the energy accumulated in the electrocaloric capacitor to the energy storage device, • a disabled state in which it electrically isolates the electrocaloric capacitor and the energy storage device, and • an energy release state in which it lets the current of the energy storage device flow, through the inductor, to the electrocaloric capacitor so as to increase the voltage between the electrodes of the electrocaloric capacitor by transferring the energy stored in the energy storage device to the electrocaloric capacitor, and - a control unit for the transfer circuit, this unit being programmed to control the breaker so as to cause the transfer circuit to toggle successively into the following states and in the following order: the energy recovery state, the disabled state, the energy release state and the disabled state, and each time to maintain the transfer circuit in the disabled state for a duration strictly greater than the duration of the recovery state and strictly greater than the duration of the release state. - at least one electrocaloric capacitor, - an electrical energy storage device (28; 160), - a controllable circuit (50; 120; 130) for transferring electrical energy between the electrocaloric capacitor and the energy storage device, - the controllable circuit (50; 120; 130) for transferring electrical energy comprises an inductor connected between the electrocaloric capacitor and the storage device and at least one controllable breaker so as to toggle the circuit, alternately, between: • an energy recovery state in which it lets the current of the electrocaloric capacitor flow, through the inductor, to the energy storage device so as to decrease the voltage between electrodes of the electrocaloric capacitor while transferring at least part of the energy accumulated in the electrocaloric capacitor to the energy storage device, • a disabled state in which it electrically isolates the electrocaloric capacitor and the energy storage device, and • an energy release state in which it lets the current of the energy storage device flow, through the inductor, to the electrocaloric capacitor so as to increase the voltage between the electrodes of the electrocaloric capacitor by transferring the energy stored in the energy storage device to the electrocaloric capacitor, and • an energy recovery state in which it lets the current of the electrocaloric capacitor flow, through the inductor, to the energy storage device so as to decrease the voltage between electrodes of the electrocaloric capacitor while transferring at least part of the energy accumulated in the electrocaloric capacitor to the energy storage device, • a disabled state in which it electrically isolates the electrocaloric capacitor and the energy storage device, and • an energy release state in which it lets the current of the energy storage device flow, through the inductor, to the electrocaloric capacitor so as to increase the voltage between the electrodes of the electrocaloric capacitor by transferring the energy stored in the energy storage device to the electrocaloric capacitor, and - a control unit for the transfer circuit, this unit being programmed to control the breaker so as to cause the transfer circuit to toggle successively into the following states and in the following order: the energy recovery state, the disabled state, the energy release state and the disabled state, and each time to maintain the transfer circuit in the disabled state for a duration strictly greater than the duration of the recovery state and strictly greater than the duration of the release state.