openevse_esp32_firmware icon indicating copy to clipboard operation
openevse_esp32_firmware copied to clipboard

OCPP does not report correct energy if EV is not unplugged

Open glynhudson opened this issue 4 years ago • 6 comments

If an OCPP session is stopped but the EV remains plugged in the wh reported by the EVSE does not increment, since the EVSE only increments lifetime wh when the EV is unplugged

screenshot 2021-07-27 01 26 32

@jeremypoulter @lincomatic is there a reason why the EVSE only increments lifetime wh when the EV is unplugged? I think it would be better if lifetime wh was incremented in real-time during a charging session

glynhudson avatar Jul 27 '21 01:07 glynhudson

Think this has always been the behaviour of the OpenEVSE. We can easily sum the total + session values if needed if the session value clears when the total increases will have to do some tests.

Also on the subject, calling these wh/watthour and wattsecond is terrible, what do folks think about correcting the names and units in the v4 (breaking backwards compatible) ?

jeremypoulter avatar Jul 27 '21 03:07 jeremypoulter

This is addressed in #255

@glynhudson Can you ckeck if the PR solves this issue? Unfortunately, I cannot test it with a real load.

matth-x avatar Nov 04 '21 17:11 matth-x

@matth-x did you change this just for OCP we need to be careful about what is fixed in OCPP and what is at a higher level.

jeremypoulter avatar Nov 04 '21 18:11 jeremypoulter

Yes I've only worked on the OCPP side of this.

matth-x avatar Nov 04 '21 19:11 matth-x

Then I think we should remove from OCPP, and fix generically for consistency.

jeremypoulter avatar Nov 04 '21 19:11 jeremypoulter

Yes, that would be great. The energy reading is fully encapsulated in my code, so switching to another function will be no effort.

matth-x avatar Nov 05 '21 11:11 matth-x

PR https://github.com/OpenEVSE/ESP32_WiFi_V4.x/pull/556 will breaks things here as now counters will be updated in real time @matth-x I let you check the changes involed for OCPP ?

KipK avatar Mar 01 '23 09:03 KipK

@KipK Thanks for the notice, I checked it and commented in the PR.

matth-x avatar Mar 01 '23 13:03 matth-x