2021.8 - new energy feature in HA: Conversion from W to kWh

Use this-

You should also use the “left” method for a more accurate result.

After integrating it using Reimann Sum, you can then use the sensor for Utility Meter to track your consumption (daily, weekly, monthly).

5 Likes