Need help configuring total energy sensor/template

Hi

I’m using the spm02-d2tw WIFI energy meter , based on Tuya via HA integration and Tuya IoT platfrom. Everything worked fine for months but since 2/9 it doesn’t pass the Total Energy count (kWh) to HA anymore. Only realtime voltage, current and power values.

I tried to delete and add the device again and it doesn’t show the total energy anymore.

What would be the best way to calculate the daily total energy given I have phase A/B/C realtime power (updating every 15sec)?

The Reimann Sum helper is your friend when you got Watts and need Wh.
For a daily resetting value either use the Utility Meter with a daily reset or add the Sums to the energy dashboard and get the daily values from there.

1 Like

Thank you!