CurtRod / SimpleEVSE-WiFi

Brings EVSE WB/DIN into your WiFi
https://www.evse-wifi.de
78 stars 33 forks source link

Charged energy reset should be tied to car connection status #54

Open FrenkK opened 4 years ago

FrenkK commented 4 years ago

This is not really a bug, more a problem with concept. Problem: Currently, the system counts the energy and resets the count each time the EVSE is turned off. If you turn the EVSE on and off during charging via API (e.g. for time control or power limitation), you get several separate energy totals, even though the car was connected all the time and it should count as one charge. Solution: It would make much more sense to reset the charged energy each time the car connection status goes from 1 (EVSE ready) to 2 (Car connected). This would ensure the energy is added up properly until the car is finally disconnected. It would then reset on next connection of car, keeping the value ready to read via API until then.

andig commented 4 years ago

I would like to support this request. Discussions on https://github.com/andig/evcc show that users are interested in total energy charged. Especially in PV mode this can come with interruptions. EVSE should just relay the actual meter measurements or reset on connect/disconnect only.