Smart plug energy per day

Hi all,
I am using Tuya smart plugs (Antela). They have 3 entities (Voltage, Current and Power). Current and Power give the current value (in A and W).
I would like to see the daily power consumption (in Kwh) of the plugs, but I cannot get it to work.
I have tried the Utility Meter and also the Powercalc integrations, without success.

Any suggestions?

With only power, you first need to calculate energy (Wh or kWh). This can be done using a Riemann Sum integral sensor, using the left method.

When you have energy, you can use the utility meter to get daily values.

Yes you can do with the built-in helpers (Rieman integral and utility meter).

Powercalc makes it a littlebit easier to have everything setup in one go .
You should use this option: Real power sensor - Powercalc documentation
And select your Power entity (in W) as the source.

Bram, should I use the utility meter in Powercalc?

When you also want to have a sensor tracking daily, hourly etc consumption, yes.
Daily sensor resets to 0 at midnight for example. These are utility meters and those would be the same as when creating with HA utility meter helper.

You’ll need an energy sensor (kWh) in all cases. That’s what the riemann integral helper is for and Powercalc also creates these.
You can add this energy sensors to the energy dashboard.

Hope this helps.