Start a new topic

Error in total kW's when disabling and enabling OpenEVSE

Does anyone know the reason for the increase of 15555 in total watts each time OpenEVSE is disabled and then enabled again? Below is the output from my OpenEVSE.


$GU

$OK 55999320 15555

$FD

$OK ff

$FE

$ST 01

$GU

$OK 55999320 31110


$FD

$OK ff

$FE

$ST 01

$GU

$OK 55999320 46665


Also, is there a command to manually enter a value in total kW?


In recent versions, I believe you can reset the lifetime kW usage with $SK:

SK - set accumulated Wh (v1.0.3+)
$SK 0*12 - set accumulated Wh to 0

As for the adding 15555 each time,  this:


$OK 55999320 15555


shows watt-seconds this session as well as lifetime watt-hours. 55999320Ws just happens to be 15555Wh so it appears that something is re-adding session energy to lifetime energy each time you re-enable the EVSE.


Whenever state changes to "not connected" it adds the current session energy to lifetime energy.  Maybe there's a flaw in the logic when the status is cycled, I'll try to take a look.

FWIW, I sent a pull request which should fix this, I think.

-Eric

 

Login or Signup to post a comment