The paper considers homogenization problems for porous piezoceramic material with partially metallized pore surfaces. It is assumed that the thickness of the metal layer at the boundaries of the pores is infinitesimally small, and the metallization effect is entirely described by setting the boundary conditions for equipotential surfaces. Following previous research of the authors, here the heterogeneity of piezoceramic polarization was taken into account. The homogenization problems were solved, using the effective moduli method, the finite element method, and the representative volumes with random closed porosity. An analysis of the effective moduli on porosity was carried out for homogeneous and inhomogeneous polarization fields.