We directly measured the temperature changes accompanying deformation of poled piezoelectric ceramics attached to metal for applications to new solid-state cooling devices. Due to the use of supporting metal, the fracture of the piezoelectric ceramics was suppressed, and the elastocaloric effect could be measured. A temperature increase of 0.02 K was observed due to dent deformation of the piezoelectric body with 0.07% distortion of the supporting metal, and a temperature drop of 0.03 K due to spread deformation of the piezoelectric body with 0.15% distortion of the supporting metal. The measurement results of the change in electrical properties during deformation suggested that entropy increased and temperature decreased by applying stress in the direction that disturbed the polarization alignment.