Incorrect values in Energy Spent sensor

Hi all,

I’m facing a strange but impactful issue in one of my energy spent sensors (using integration )

As you can see in above image, the collected data is not starting at 0 (or at the correct value) there is a big peak each time it starts collecting.

This sensor is:

##AQS
- platform: integration
  name: bw_shp6_e55c_energy_spent
  source: sensor.bw_shp6_e55c_current_power
  unit_prefix: k
  round: 2

The current power is coming directly from localtuya power measure, and seems to be ok.

Could you use the history function to plot your total energy spent today sensor together with your sensor.bw_shp6_e55c_current_power and present that here?

That looks indeed a little bit off. Could you do the same but “zoom in” so only the first power usage is visible (for more details) - like choosing the time from around 07:00 to 09:00 more or less?

And one thing you might wanna try already to see if it makes a difference is to set the method of your integration (riemann sum integral) sensor to left :leftwards_arrow_with_hook:

This is from today.

That defiantly looks off

Could you try changing this:

to this:

##AQS
- platform: integration
  name: bw_shp6_e55c_energy_spent
  source: sensor.bw_shp6_e55c_current_power
  unit_prefix: k
  round: 2
  method: left

to see if it makes a difference?

Hi, sorry for the late response, but yes, it seems to be solved.

1 Like