evcc-io / evcc

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

Battery control with victron - home battery SoC bounces between 94 and 97% #11286

Closed cyberways closed 10 months ago

cyberways commented 10 months ago

Describe the bug

Thank you for the great christmas release with two long awaited features for me - battery control and smart #1 support.

I use battery control with victron multiplus II inverters and Pylontech CANbus battery connected to Cerbo GX. Battery control works - kindof. Solar production is complety used to continue chargeing the home battery while pluging in the car and grid power is used to charge the car, as long as the home battery SoC is below 95%. If the home battery SoC reaches 96-97% the battery is still shown as locked in the GUI but is being discharged again until it reaches 94%, where solar charging of the battery starts again. So the battery bounces frequently between 94% and around 96-97% SoC every few minutes, which is not good. I am not aware of having configured 95% threshold somewhere. Where does this behaviour come from and (how) can it be fixed?

Charge current is limited to 9A / 6 kW in the vehicle definition to match the inverters 7.2 kVA capacity and have some spare for the building.

And btw: Battery locked state shows as "Battery (gesperrt)" in German localisation instead of "Batterie (gesperrt)".

Steps to reproduce

See bug description.

Configuration details

Provided if needed. Screenshots available.

Log details

Dec 27 11:43:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:24 charge power: 6077W
Dec 27 11:43:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:43:24 pv power: 3075W
Dec 27 11:43:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:43:24 battery soc: 95%
Dec 27 11:43:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:43:24 battery power: 3872W
Dec 27 11:43:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:43:24 grid power: 19W
Dec 27 11:43:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:43:24 site power: 3901W
Dec 27 11:43:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:24 charge currents: [9.1 8.9 8]A
Dec 27 11:43:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:24 detected active phases: 3p
Dec 27 11:43:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:24 charge total import: 2432.074kWh
Dec 27 11:43:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:24 charger status: C
Dec 27 11:43:25 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:25 vehicle status: C
Dec 27 11:43:25 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:25 soc gradient updated: soc: 29.0%, socDiff: 12.0%, energyDiff: 5752Wh, energyPerSocStep: 479.3Wh, virtualCapacity: 47933Wh
Dec 27 11:43:25 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:25 vehicle soc: 29%
Dec 27 11:43:25 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:25 vehicle range: 68km
Dec 27 11:43:25 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:25 set bmwi3s plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
Dec 27 11:43:54 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:43:54 ----
Dec 27 11:43:54 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:54 charge power: 6071W
Dec 27 11:43:54 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:43:54 pv power: 2834W
Dec 27 11:43:54 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:43:54 battery soc: 95%
Dec 27 11:43:54 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:43:54 battery power: 4130W
Dec 27 11:43:54 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:43:54 grid power: 8W
Dec 27 11:43:54 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:43:54 site power: 4148W
Dec 27 11:43:54 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:54 charge currents: [9.1 8.8 8]A
Dec 27 11:43:54 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:54 detected active phases: 3p
Dec 27 11:43:54 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:54 charge total import: 2432.124kWh
Dec 27 11:43:54 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:54 charger status: C
Dec 27 11:43:54 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:54 soc estimated: 29.10% (vehicle: 29.00%)
Dec 27 11:43:54 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:54 vehicle soc: 29%
Dec 27 11:43:54 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:54 vehicle range: 68km
Dec 27 11:43:54 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:43:54 set bmwi3s plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
Dec 27 11:44:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:44:24 ----
Dec 27 11:44:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:24 charge power: 6057W
Dec 27 11:44:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:44:24 pv power: 3074W
Dec 27 11:44:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:44:24 battery soc: 94%
Dec 27 11:44:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:44:24 battery power: 3856W
Dec 27 11:44:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:44:24 grid power: -1W
Dec 27 11:44:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:44:24 site power: 3865W
Dec 27 11:44:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:24 charge currents: [9 8.8 8]A
Dec 27 11:44:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:24 detected active phases: 3p
Dec 27 11:44:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:24 charge total import: 2432.175kWh
Dec 27 11:44:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:24 charger status: C
Dec 27 11:44:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:24 soc estimated: 29.21% (vehicle: 29.00%)
Dec 27 11:44:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:24 vehicle soc: 29%
Dec 27 11:44:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:24 vehicle range: 68km
Dec 27 11:44:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:24 set bmwi3s plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
Dec 27 11:44:54 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:44:54 ----
Dec 27 11:44:54 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:54 charge power: 6047W
Dec 27 11:44:54 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:44:54 pv power: 2810W
Dec 27 11:44:54 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:44:54 battery soc: 94%
Dec 27 11:44:54 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:44:54 battery power: -2737W
Dec 27 11:44:54 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:44:54 grid power: 6202W
Dec 27 11:44:54 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:44:54 site power: 3475W
Dec 27 11:44:54 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:54 charge currents: [9.1 8.8 8]A
Dec 27 11:44:54 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:54 detected active phases: 3p
Dec 27 11:44:55 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:55 charge total import: 2432.224kWh
Dec 27 11:44:55 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:55 charger status: C
Dec 27 11:44:55 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:55 soc estimated: 29.31% (vehicle: 29.00%)
Dec 27 11:44:55 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:55 vehicle soc: 29%
Dec 27 11:44:55 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:55 vehicle range: 68km
Dec 27 11:44:55 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:44:55 set bmwi3s plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
Dec 27 11:45:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:45:24 ----
Dec 27 11:45:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:45:24 charge power: 6036W
Dec 27 11:45:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:45:24 pv power: 2859W
Dec 27 11:45:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:45:24 battery soc: 94%
Dec 27 11:45:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:45:24 battery power: -2830W
Dec 27 11:45:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:45:24 grid power: 6198W
Dec 27 11:45:24 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:45:24 site power: 3378W
Dec 27 11:45:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:45:24 charge currents: [9.1 8.9 8]A
Dec 27 11:45:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:45:24 detected active phases: 3p
Dec 27 11:45:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:45:24 charge total import: 2432.275kWh
Dec 27 11:45:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:45:24 charger status: C
Dec 27 11:45:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:45:24 soc estimated: 29.42% (vehicle: 29.00%)
Dec 27 11:45:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:45:24 vehicle soc: 29%
Dec 27 11:45:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:45:24 vehicle range: 68km
Dec 27 11:45:24 kira evcc[1014]: [lp-1  ] DEBUG 2023/12/27 11:45:24 set bmwi3s plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
Dec 27 11:45:54 kira evcc[1014]: [site  ] DEBUG 2023/12/27 11:45:54 ----

What type of operating system are you running?

Linux

Version

0.123.1

andig commented 10 months ago

I am not aware of having configured 95% threshold somewhere

Das ist Teil des Victron Templates wenn Du battery control verwendest. Zur Fluktuation kann ich nichts sagen. Vielleicht @philipptrenz ?

And btw: Battery locked state shows as "Battery (gesperrt)" in German localisation instead of "Batterie (gesperrt)".

Danke, behoben.