evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.32k stars 606 forks source link

Alfen Wallbox not mA capable #3823

Closed schrotrf closed 2 years ago

schrotrf commented 2 years ago

According to the template documentation for the Alfen Eve wallboxes and the fact that the ChargerEx interface is implemented, they are supposed to be capable of controlling charging currents in mA granularity: https://github.com/evcc-io/evcc/blob/5c719fcb03f2cf776a08b9937f3b072509875d4b/templates/docs/charger/alfen_0.yaml#L4

Alfen's Modbus holding register 1210 is typed with Float32, however, according to their documentation its stepsize is 1A, i.e. there is de-facto no possibility for mA level current control.

I'm not sure if this has any negative effect, or if the wallbox controller truncates/rounds the values accordingly, but maybe it would be advisable to supply the maximum currents according to the docu.

andig commented 2 years ago

Thank you. If thats the case we should update the interface implementation. Can anyone confirm this using the ramp command?

andig commented 2 years ago

/cc @premultiply

premultiply commented 2 years ago

IMHO its fine to set float values if the charger interface supports float type. If the charger would round to any PWM step internally this would be fine too.

andig commented 2 years ago

No, we should remove it or we‘ll have the same effect as when charging a Tesla. The non-linear behaviour does not fit our algorithm that evaluates delta power and converts it to delta current. Will provide a PR asap. Too bad as it seems a nice box otherwise.

schrotrf commented 2 years ago

Thank you. If thats the case we should update the interface implementation. Can anyone confirm this using the ramp command?

If you can provide details how to evaluate the "ramp" command, I'll execute it and provide the corresponding output

andig commented 2 years ago

See

evcc charger ramp --help
schrotrf commented 2 years ago

Checking the actuals via the ramp command was rather helpful, it seems that the wallbox in fact does consider increments of less than 1A.

I ran the following command with a KIA PHEV connected to the Alfen box: evcc charger ramp --delay 30s --digits 1

These are the results: image

So while there are some small plateaus, which I would attribute to the OBC it is a rather linear increase of the power over the 0.1A increments in current.

Sorry for having caused the confusion here, I'm closing the issue.