dannerph / keba-kecontact

Python library for controlling KEBA charging stations.
MIT License
23 stars 10 forks source link

Support for "E total" with Keba P20 #9

Open mschlappa opened 2 weeks ago

mschlappa commented 2 weeks ago

Hi,

i am using a Keba P20 which identifies as "KC-P20-EC240130-000".

It seems that the "Total Energy" value is not supported in this library (although the wallbox supports this feature) i think because of this line of code:

https://github.com/dannerph/keba-kecontact/blob/ba5e3d712f92a9b13701ec732114ccc487f7e374/keba_kecontact/chargingstation.py#L82

Can you add support the metering feature for this Keba Wallbox?

mschlappa commented 2 weeks ago

I created a Pull-Request to support my specific wallbox revision : https://github.com/dannerph/keba-kecontact/pull/10

Marcus

mschlappa commented 2 weeks ago

I tested it successfully locally!

2024-11-09 13:41:02.469 DEBUG (MainThread) [keba_kecontact.connection] Send report 3 to 192.168.40.16 2024-11-09 13:41:03.247 DEBUG (MainThread) [keba_kecontact.connection] Datagram received from 192.168.40.16: { "ID": "3", "U1": 0, "U2": 0, "U3": 0, "I1": 0, "I2": 0, "I3": 0, "P": 0, "PF": 0, "E pres": 115997, "E total": 245921613, "Serial": "16314582", "Sec": 889991 }

image