Energy usage calculations do not match

I have a Xiaomi power plug ZNCZ02LM (powers a dishwasher) and a Tuya clamp power meter TS0601 (for the entire home). Both zigbee.
I run the dishwasher for 40min, the Xiaomi device measured 0.88kWh. The house meter measured for the whole 2 hours (the washing cycle crossed an hour boundary) 0.15+0.32kWh which is lot less than 0.88.
While the dishwasher was running, I watched - the current consumption was correct, 2kW for Xiaomi and 2.3kW for Tuya.

[a few minutes later]

Actually the problem is that the Xiaomi device accumulates the power usage and the Tuya does not. What is the expected by the Energy dashboard? How fix either of those sensors?