Vibration energy is abundantly present in many natural and artificial systems and can be assembled by various devices, mainly employing the benefits of the piezo-electric and electromagnetic phenomena. In the present article, the electromechanical system with two degrees-of-freedom is considered. An additional element (dynamical vibration absorber or DVA) is attached to the main mass, whose vibrations are to be reduced. The DVA consists of a spring, damping, and piezo-electric elements for energy harvesting. The goal is to reduce the maximal possible responses of the main structure at the vicinity of external 1:1 resonance and at the same time collect energy from the vibration of the system. An analytical approach is proposed to find the solution of the problem. We show that the piezo-electric element allows effective energy harvesting and at the same has a very limited influence on reducing the amplitude of oscillations of the main mass. The theoretical results are confirmed by numerical experiments.