Fast mode (with peak shaving configured) doesn't start at auto-switching phases
Describe the bug
Peak shaving is working correctly when I manually select 1 phase in "fast" mode. In case that it's configured at "auto-switching", the charger doesn't start.
I'm seeing no issues with auto-switching in case I'm using the "solar" and "minpv" mode. It seems to be the combination with the fast mode and peak shaving.
I've attached the debug log which shows that the charger doesn't start when changing to "fast" mode with auto-switching. Once I configure it for "1 phase", charging starts. The logfile initially shows "active phases: 3p", however my Alfen charger is configured to allow phase switching. The last charging sessions was also running at 1 phase.
My impression: EVCC doesn't seem to try 1 phase charging when auto-switching is active which implies that EVCC wants to start charging at 4.1kW. Since 4.1kW is higher than the configured peak shave value (3.5kW), charging doesn't take place. A couple of days ago I also seem to remember more or less the same issue when auto-switching was active in minpv mode:
- Car was actively being charged on 3 phase (enough sun available)
- Due to decrease in sun and sudden increase in grid usage, more than 3.5kW was taken from grid
- EVCC stopped charging correctly. It tried starting again but stopped immediately due to more than 3.5kW taken from grid However the charging kept starting on 3 phase. In case that EVCC started charging on 1 phase, it would pose no issue. So in this example, it also seems that EVCC isn't trying to start charging on 1 phase while auto-switching is active.
Steps to reproduce
- Configure "auto-switching" as phases
- Select "Fast" as mode ==> Charging doesn't start
- Configure "1 phase" as phases ==> Charging does start
Configuration details
network:
port: 7070
log: debug
interval: 15s
sponsortoken: ***
# database configuration for persisting charge sessions and settings
database:
type: sqlite
dsn: /root/evcc/evcc.db
# Plant ID required for telemetry (ID generated in the GUI if chosen to enable telemetry
plant: ***
site:
- title: Home # display name for UI
circuit: Automaat-Hoofdaansluiting
meters:
grid: P1Meter_grid # grid meter reference
pv: HuaweiDongle_pv
residualPower: 10 # additional household usage margin
circuits:
- name: Automaat-Hoofdaansluiting
#maxCurrent: 40
maxPower: 3500 #3.5 kW
meter: P1Meter_grid
parent:
- name: Automaat-LaadpaalVoortuin
#maxCurrent: 40
maxPower: 22000 #22.0 kW
meter:
parent: Automaat-Hoofdaansluiting
loadpoints:
- title: Voortuin # display name for UI
charger: Alfen # charger reference
vehicle: vehicle # reference to standard vehicle
mode: minpv # charge mode (off, now, minpv, pv). Default charge mode to apply when vehicle is disconnected; use "off" to disable by default if charger is publicly available
circuit: Automaat-LaadpaalVoortuin
meters:
- name: P1Meter_grid
type: template
template: homewizard
usage: grid
host: 192.168.0.106 # IP address or hostname
# - name: P1Meter_pv
# type: template
# template: homewizard
# usage: pv
# host: 192.168.0.106 # IP address or hostname
- name: HuaweiDongle_pv
type: template
template: huawei-dongle
usage: pv
# Modbus TCP
modbus: tcpip
id: 1
host: 192.168.0.208 # Hostname
port: 502 # Port
timeout: 15s # optional
chargers:
- type: template
template: alfen
id: 1
host: 192.168.0.145
port: 502
modbus: tcpip
name: Alfen
Log details
[circuit-Automaat-LaadpaalVoortuin] DEBUG 2024/07/11 00:08:08 power: 0W
[circuit-Automaat-LaadpaalVoortuin] DEBUG 2024/07/11 00:08:08 current: 0A
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:09 power: 269W
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:09 current: 0A
[site ] DEBUG 2024/07/11 00:08:09 pv power: 0W
[site ] DEBUG 2024/07/11 00:08:09 grid meter: 269W
[site ] DEBUG 2024/07/11 00:08:09 site power: 279W
[lp-1 ] DEBUG 2024/07/11 00:08:09 !! session: chargeRater.chargedEnergy=2.6 - chargedAtStartup=0.0
[lp-1 ] DEBUG 2024/07/11 00:08:10 charge total import: 2168.834kWh
[lp-1 ] DEBUG 2024/07/11 00:08:10 charger status: B
[lp-1 ] DEBUG 2024/07/11 00:08:10 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[circuit-Automaat-LaadpaalVoortuin] DEBUG 2024/07/11 00:08:10 validate power: 0W + (0W -> 22080W) > 22000W capped at 22000W
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:10 validate power: 269W + (0W -> 22000W) > 3500W capped at 3231W
[site ] DEBUG 2024/07/11 00:08:23 ----
[lp-1 ] DEBUG 2024/07/11 00:08:23 charge power: 0W
[lp-1 ] DEBUG 2024/07/11 00:08:23 charge currents: [0 0 0]A
[circuit-Automaat-LaadpaalVoortuin] DEBUG 2024/07/11 00:08:23 power: 0W
[circuit-Automaat-LaadpaalVoortuin] DEBUG 2024/07/11 00:08:23 current: 0A
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:24 power: 273W
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:24 current: 0A
[site ] DEBUG 2024/07/11 00:08:24 pv power: 0W
[site ] DEBUG 2024/07/11 00:08:24 grid meter: 273W
[site ] DEBUG 2024/07/11 00:08:24 site power: 283W
[lp-1 ] DEBUG 2024/07/11 00:08:24 !! session: chargeRater.chargedEnergy=2.6 - chargedAtStartup=0.0
[lp-1 ] DEBUG 2024/07/11 00:08:24 charge total import: 2168.834kWh
[lp-1 ] DEBUG 2024/07/11 00:08:24 charger status: B
[lp-1 ] DEBUG 2024/07/11 00:08:24 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[circuit-Automaat-LaadpaalVoortuin] DEBUG 2024/07/11 00:08:24 validate power: 0W + (0W -> 22080W) > 22000W capped at 22000W
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:24 validate power: 273W + (0W -> 22000W) > 3500W capped at 3227W
[lp-1 ] DEBUG 2024/07/11 00:08:33 set phases: 1
[site ] DEBUG 2024/07/11 00:08:33 ----
[lp-1 ] DEBUG 2024/07/11 00:08:33 charge power: 0W
[lp-1 ] DEBUG 2024/07/11 00:08:33 charge currents: [0 0 0]A
[circuit-Automaat-LaadpaalVoortuin] DEBUG 2024/07/11 00:08:33 power: 0W
[circuit-Automaat-LaadpaalVoortuin] DEBUG 2024/07/11 00:08:33 current: 0A
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:33 power: 293W
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:33 current: 0A
[site ] DEBUG 2024/07/11 00:08:34 pv power: 0W
[site ] DEBUG 2024/07/11 00:08:34 grid meter: 293W
[site ] DEBUG 2024/07/11 00:08:34 site power: 303W
[lp-1 ] DEBUG 2024/07/11 00:08:34 !! session: chargeRater.chargedEnergy=2.6 - chargedAtStartup=0.0
[lp-1 ] DEBUG 2024/07/11 00:08:34 charge total import: 2168.834kWh
[lp-1 ] DEBUG 2024/07/11 00:08:34 charger status: B
[lp-1 ] DEBUG 2024/07/11 00:08:34 switched phases: 1p
[lp-1 ] DEBUG 2024/07/11 00:08:34 !! active phases: 1p = min(0p measured 0p vehicle 1p physical 0p charger)
[site ] DEBUG 2024/07/11 00:08:38 ----
[lp-1 ] DEBUG 2024/07/11 00:08:38 charge power: 0W
[lp-1 ] DEBUG 2024/07/11 00:08:38 charge currents: [0 0 0]A
[circuit-Automaat-LaadpaalVoortuin] DEBUG 2024/07/11 00:08:38 power: 0W
[circuit-Automaat-LaadpaalVoortuin] DEBUG 2024/07/11 00:08:38 current: 0A
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:39 power: 309W
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:39 current: 0A
[site ] DEBUG 2024/07/11 00:08:39 pv power: 0W
[site ] DEBUG 2024/07/11 00:08:39 grid meter: 309W
[site ] DEBUG 2024/07/11 00:08:39 site power: 319W
[lp-1 ] DEBUG 2024/07/11 00:08:39 !! session: chargeRater.chargedEnergy=2.6 - chargedAtStartup=0.0
[lp-1 ] DEBUG 2024/07/11 00:08:39 charge total import: 2168.834kWh
[lp-1 ] DEBUG 2024/07/11 00:08:39 charger status: B
[lp-1 ] DEBUG 2024/07/11 00:08:39 !! active phases: 1p = min(0p measured 0p vehicle 1p physical 0p charger)
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:39 validate power: 309W + (0W -> 7360W) > 3500W capped at 3191W
[lp-1 ] DEBUG 2024/07/11 00:08:39 max charge current: 13.9A
[lp-1 ] DEBUG 2024/07/11 00:08:39 charger enable
[lp-1 ] DEBUG 2024/07/11 00:08:39 wake-up timer: start
[site ] DEBUG 2024/07/11 00:08:53 ----
[lp-1 ] DEBUG 2024/07/11 00:08:53 charge power: 3031W
[lp-1 ] DEBUG 2024/07/11 00:08:53 charge currents: [13.2 0 0]A
[circuit-Automaat-LaadpaalVoortuin] DEBUG 2024/07/11 00:08:53 power: 3031.1W
[circuit-Automaat-LaadpaalVoortuin] DEBUG 2024/07/11 00:08:53 current: 13.2A
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:54 power: 3366W
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:54 current: 0A
[site ] DEBUG 2024/07/11 00:08:54 pv power: 0W
[site ] DEBUG 2024/07/11 00:08:54 grid meter: 3366W
[site ] DEBUG 2024/07/11 00:08:54 site power: 3376W
[lp-1 ] DEBUG 2024/07/11 00:08:54 !! session: chargeRater.chargedEnergy=2.6 - chargedAtStartup=0.0
[lp-1 ] DEBUG 2024/07/11 00:08:54 charge total import: 2168.838kWh
[lp-1 ] DEBUG 2024/07/11 00:08:54 charger status: C
[lp-1 ] DEBUG 2024/07/11 00:08:54 charge start energy: 2.17e+03kWh
[lp-1 ] INFO 2024/07/11 00:08:54 start charging ->
[lp-1 ] DEBUG 2024/07/11 00:08:54 wake-up timer: stop
[lp-1 ] DEBUG 2024/07/11 00:08:55 soc estimated: 28.04% (vehicle: 28.00%)
[lp-1 ] DEBUG 2024/07/11 00:08:55 vehicle soc: 28%
[lp-1 ] DEBUG 2024/07/11 00:08:55 vehicle range: 158km
[lp-1 ] DEBUG 2024/07/11 00:08:55 !! active phases: 1p = min(0p measured 0p vehicle 1p physical 0p charger)
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:55 validate power: 3366W + (3031.1W -> 7360W) > 3500W capped at 3165.1W
[lp-1 ] DEBUG 2024/07/11 00:08:55 max charge current: 13.8A
[lp-1 ] DEBUG 2024/07/11 00:08:56 set charge mode: off
[site ] DEBUG 2024/07/11 00:08:56 ----
[lp-1 ] DEBUG 2024/07/11 00:08:56 charge power: 3026W
[lp-1 ] DEBUG 2024/07/11 00:08:56 charge currents: [13.2 0 0]A
[circuit-Automaat-LaadpaalVoortuin] DEBUG 2024/07/11 00:08:56 power: 3025.6W
[circuit-Automaat-LaadpaalVoortuin] DEBUG 2024/07/11 00:08:56 current: 13.2A
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:56 power: 3368W
[circuit-Automaat-Hoofdaansluiting] DEBUG 2024/07/11 00:08:56 current: 0A
[site ] DEBUG 2024/07/11 00:08:57 pv power: 0W
[site ] DEBUG 2024/07/11 00:08:58 grid meter: 3330W
[site ] DEBUG 2024/07/11 00:08:58 site power: 3340W
[lp-1 ] DEBUG 2024/07/11 00:08:58 !! session: chargeRater.chargedEnergy=2.6 - chargedAtStartup=0.0
[lp-1 ] DEBUG 2024/07/11 00:08:58 charge total import: 2168.841kWh
[lp-1 ] DEBUG 2024/07/11 00:08:58 charger status: C
[lp-1 ] DEBUG 2024/07/11 00:08:58 soc estimated: 28.04% (vehicle: 28.00%)
[lp-1 ] DEBUG 2024/07/11 00:08:58 vehicle soc: 28%
[lp-1 ] DEBUG 2024/07/11 00:08:58 vehicle range: 158km
[lp-1 ] DEBUG 2024/07/11 00:08:58 !! active phases: 1p = min(0p measured 0p vehicle 1p physical 0p charger)
[lp-1 ] DEBUG 2024/07/11 00:08:58 charger disable
[lp-1 ] DEBUG 2024/07/11 00:08:58 wake-up timer: stop
What type of operating system are you running?
Docker container
Version
0.128.2
Yes, fast mode is always 3p on switchable charger in automatic mode.
/cc @andig
I don't see a good solution for this. At the point the limit is applied this is a 3p device. Since we don't have timers there we can't do this automatically. Since "Fast" mode is equivalent to 3p that's kind of expected. For time being works as implemented. Unfortunate but wontfix, we'll put it in the backlog.
@premultiply & @andig : appreciate the quick feedback and explanation. Thanks for putting it at the backlog! Just wanted to point out behaviour in case you weren’t aware about it.
Thanks for keeping up the good work! 😉 I’m enjoying EVCC!
Siehe https://github.com/evcc-io/evcc/discussions/15779#discussioncomment-11357550:
Nur dass das tatsächlich nicht nur beim Schnelladen sondern auch im PV Modus ein Problem ist. Wenn ich das richtig verstehe kann das nur bei einem Leistungslimit passieren. Wir brauchen also einen Mechanismus, der- egal ob PV oder Fast- ein Leistungslimit abfragt und- falls MinPower3p unterschritten wird auf 1p geht.
/cc @premultiply
is this being worked on? i have the same kind of question, soon i will have a new meter (belgium)
i want to start at 1/3fase charging with a max load balancing for example 6kw , so as soon my other household load is below 1.8 , its ok, when my other household is higher then 1.8 (max 4.2 3 fase charging) , i want to switch back to 1 fase charging...