Sensor measurement that cuts regularly (2/3 minutes)

Hello, I recently created two sensors in the conf.yaml to transform the measured power into energy measurement in kwh.
After spending long hours on it I managed to make them work only the measurement signal is regularly cut.

Has anyone had this problem before or does anyone know how to fix this problem?