#Energy computation wildly wrong

1 messages · Page 1 of 1 (latest)

vivid gorge
#

I've been playing with leveraging battery usage depending on dynamic half-hour rates, with a 512Wh River 2 Max for now, and I am seeing wild calculations for kWh that I can't explain. What am I doing wrong?

See that since 5pm there is ~225W regular consumption (Battery Out Power, instantaneous). The energy integral helper sensor (Battery OUT, trapezoidal) jumps up to 0.57kWh right at 17.01. Why?

edgy fossil
#

That's because of how the integral is implemented. When your battery last reported power it was 0. But then it jumps to 250, so there is an area between the time it went from 0 to 250. For trapezoidal rule, this area is a triangle

#

You want to set the left Riemann sum rule

vivid gorge
#

Awesome, I suspected it was the type I didn't research, cheers @edgy fossil 👌

vivid gorge
#

Building on this a little further.. I wanted to amend just that spike by the developer options and then statistics. I could do that, adjusting 17:00-05 from 0.57kWh to 0.02kWh. This reflects in the same page, however not in the numerical state of the cumulative integral shown either in its status graph or in the energy dashboard. Is there a way to make this change effective?

edgy fossil
#

The state doesn't change, the statistic does

#

Can't change the state unless you mess with the database