Smart Plug Energy Monitor help required

Hi there,

I have been trying to configure one of my Smart Plugs (over local tuya integration) to record the energy usage for some of my devices - and I see the attributes under the device, everything seems to display the correct value…

I then set up a few sensors to test a few things (using a combination of
“Integration - Riemann sum integral” sensors and Utility Meter), and I’ve got numbers showing up…

The problem is, the recorded energy usage throughout the day does not match that of the Smart Life app… It is reporting 2kwh, HA nearly 8… (the consumption graphs seem correct, its the total that seems to be out)

This is my sensor yaml entry for the energy spend sensor:

  • platform: integration
    source: sensor.tuya_sw01_current_consumption
    name: energy_spent
    unit_prefix: k
    round: 2

I end up with a graph looking like this: (weird area highlighted)

So, does anybody have a dummies guide to what is required in terms of sensors, etc, to be able to monitor energy usage from a Smart plug?

Make sure to use

method: left

for this type of integration

Thanks @rbolden , that seems to have done the trick. I have matching numbers after a day of testing. :+1:

1 Like