Energy measurement with mqtt sensor

I think maybe the state_class must be total_increasing. Are the values for the sensor as expected?