evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Alfen charger switches P3 -> p1 without EVCC knowing

Open MartijnvanGeffen13 opened this issue 1 year ago • 3 comments

Describe the bug

ofthen when in PV mode and PV delivers around 3-6 KWH (Cloudy day so output is constand changing) and EVCC wants to switch down after 5 mins the alfen charger is allready switched down causing EVCC to throw errors and wrong UI updates. (This only happens during the 5 min cool down to switch to 1P which never happens as within 1 or 2 minutes the PV output is high enough again).

I know i am running with 10S controle which a alfen can easy handle as their internal LB is also set to 10S and i see the same behavior with 30S contole timing.

It looks like in grid meter L2 is used: Image

While EVCC is in 3P mode (Thinks it is) but you can also see the power is lower than the 4.2 KWH minimum for 3P even when i have a 8A minimum set. Sometime this even displays values like 600 watt - 2kwh etc which are way below the 3P minimum

Image

Minimum 8A

Image

Steps to reproduce

...

Configuration details

# open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: debug
levels:
  cache: error

# unique installation id
plant: 81a0035db4c25f7833b02a404319127e36d820c7e0723d3e345b521652f58639

interval: 10s # control cycle interval

sponsortoken: ****

# sponsors can set telemetry: true to enable anonymous data aggregation
# see https://github.com/evcc-io/evcc/discussions/4554
telemetry: true

meters:
- name: grid
  type: template
  template: homewizard
  usage: grid
  host: 192.168.178.50
- name: airco
  type: template
  template: shelly-1pm
  host: 192.168.178.64 # IP address or hostname
  channel: 0
- name: pv1
  type: template
  template: huawei-dongle
  id: 1
  host: 192.168.178.58
  port: 502
  usage: pv
  modbus: tcpip
  timeout: 15s
- name: pv2
  type: custom
  power:
    source: http
    uri: http://192.168.178.53/api/v1/data
    method: GET
    headers:
      - content-type: application/json
    jq: .active_power_w * -1
    timeout: 15s
- name: pv3
  type: custom
  power:
    source: http
    uri: http://192.168.178.52/api/v1/data
    method: GET
    headers:
      - content-type: application/json
    jq: .active_power_w * -1
    timeout: 15s

chargers:
- type: template
  template: alfen 
  id: 1  
  host: 192.168.178.70  
  port: 502  
  modbus: tcpip  
  name: Alfen

loadpoints:
- title: Oprit
  charger: Alfen
  mode: pv
  vehicle: EX30 # set default vehicle (disables vehicle detection)
  phases: 0 # electrical connection (normal charger: default 3 for 3 phase, 1p3p charger: 0 for "auto" or 1/3 for fixed phases)
  circuit: laadpaal
  enable:
    # switch on when there is at least 1000 W surplus for 3 minute
    delay: 3m
    threshold: -1000
  disable:
    # switch off if more than 400 W are drawn from the mains for 7 minutes
    delay: 7m
    threshold: 400
  soc:
    poll:
      # poll mode defines under which condition the vehicle API is called:
      #   charging: update vehicle ONLY when charging (this is the recommended default)
      #   connected: update vehicle when connected (not only charging), interval defines how often
      #   always: always update vehicle regardless of connection state, interval defines how often (only supported for single vehicle)
      mode: connected
      # poll interval defines how often the vehicle API may be polled if NOT charging
      interval: 5m



site:
  title: Home
  meters:
    grid: grid
    pv:
      - pv1
      - pv2
      - pv3
    aux:
      - airco

vehicles:
- name: EX30
  title: EX30
  type: custom
  capacity: 51 # in kWh
  soc:
    source: http
    uri: http://192.168.178.201:6060
    method: GET
    headers:
      - content-type: application/jso
    jq: .batteryChargeLevel.value
  status:
    source: http
    uri: http://192.168.178.201:6060
    method: GET
    headers:
      - content-type: application/json
    jq: .EvccStatus.value
  range:
    source: http
    uri: http://192.168.178.201:6060
    method: GET
    headers:
      - content-type: application/json
    jq: .electricRange.value

circuits:
- name: main
  maxcurrent: 20
  meter: grid
  parent:
- name: laadpaal
  maxcurrent: 16
  parent: main
- name: airco
  maxcurrent: 2
  meter: airco
  parent: laadpaal

Log details

[lp-1  ] DEBUG 2025/08/12 13:05:12 vehicle range: 292km
[alfen ] TRACE 2025/08/12 13:05:12 modbus: send b9 90 00 00 00 06 01 03 04 ba 00 02
[alfen ] TRACE 2025/08/12 13:05:13 modbus: recv b9 90 00 00 00 07 01 03 04 41 00 00 00
[alfen ] TRACE 2025/08/12 13:05:13 modbus: send b9 91 00 00 00 06 01 03 04 bf 00 01
[alfen ] TRACE 2025/08/12 13:05:13 modbus: recv b9 91 00 00 00 05 01 03 02 00 03
[lp-1  ] DEBUG 2025/08/12 13:05:13 available power 2408W < 5520W min 3p threshold
[lp-1  ] DEBUG 2025/08/12 13:05:13 phase scale1p in 6m27s
[lp-1  ] DEBUG 2025/08/12 13:05:13 pv charge current: 6.41A = 8A + -1.59A (1100W @ 3p)
[circuit-laadpaal] TRACE 2025/08/12 13:05:13 validate current: 8.83A + (8.83A -> 8A) <= 16A ok
[circuit-main] TRACE 2025/08/12 13:05:13 validate current: 10.5A + (8.83A -> 8A) <= 20A ok
[site  ] TRACE 2025/08/12 13:05:13 telemetry: charge: Δ28/46Wh @ 3508W
[site  ] TRACE 2025/08/12 13:05:13 POST https://api.evcc.io/v1/charge
[site  ] TRACE 2025/08/12 13:05:13 {"instanceId":"81a0035db4c25f7833b02a404319127e36d820c7e0723d3e345b521652f58639","chargePower":3507.5,"greenPower":2407.5,"chargeEnergy":0.046000000000276486,"greenEnergy":0.028272599031082663}
--
{"status":"ok"}
[alfen ] TRACE 2025/08/12 13:05:15 modbus: send b9 92 00 00 00 0b 01 10 04 ba 00 02 04 41 00 00 00
[alfen ] TRACE 2025/08/12 13:05:15 modbus: recv b9 92 00 00 00 06 01 10 04 ba 00 02
[site  ] DEBUG 2025/08/12 13:05:19 ----
[alfen ] TRACE 2025/08/12 13:05:19 modbus: send b9 93 00 00 00 06 01 03 01 58 00 02
[alfen ] TRACE 2025/08/12 13:05:19 modbus: recv b9 93 00 00 00 07 01 03 04 45 5a f4 cd
[lp-1  ] DEBUG 2025/08/12 13:05:19 charge power: 3503W
[alfen ] TRACE 2025/08/12 13:05:19 modbus: send b9 94 00 00 00 06 01 03 01 40 00 06
[alfen ] TRACE 2025/08/12 13:05:19 modbus: recv b9 94 00 00 00 0f 01 03 0c 41 0d 26 ea 41 0a b4 3a 41 08 6a 7f
[lp-1  ] DEBUG 2025/08/12 13:05:19 charge currents: [8.82 8.67 8.53]A
[shelly] TRACE 2025/08/12 13:05:19 POST http://192.168.178.64/rpc/Switch.GetStatus?id=0
[shelly] TRACE 2025/08/12 13:05:19 {"id":0,"on":false,"src":"evcc","method":"Switch.GetStatus?id=0"}
--
{"id":0, "source":"HTTP_in", "output":false, "apower":0.0, "voltage":235.3, "freq":50.0, "current":0.000, "aenergy":{"total":252781.749,"by_minute":[0.000,0.000,0.000],"minute_ts":1754996700}, "ret_aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1754996700},"temperature":{"tC":45.9, "tF":114.5}}
[circuit-airco] DEBUG 2025/08/12 13:05:19 power: 0W
[circuit-airco] DEBUG 2025/08/12 13:05:19 current: 0A
[circuit-laadpaal] DEBUG 2025/08/12 13:05:19 power: 3503.3W
[circuit-laadpaal] DEBUG 2025/08/12 13:05:19 current: 8.82A
[homewizard] TRACE 2025/08/12 13:05:19 GET http://192.168.178.50/api/v1/data
[homewizard] TRACE 2025/08/12 13:05:19 {"wifi_ssid":"Ik sta er ook en ben sneller","wifi_strength":56,"smr_version":50,"meter_model":"Sagemcom T210-D ESMR5.0","unique_id":"4530303438303030303031343638313137","active_tariff":2,"total_power_import_kwh":35795.675,"total_power_import_t1_kwh":19936.772,"total_power_import_t2_kwh":15858.903,"total_power_export_kwh":8077.873,"total_power_export_t1_kwh":2426.933,"total_power_export_t2_kwh":5650.940,"active_power_w":1121.000,"active_power_l1_w":-217.000,"active_power_l2_w":2453.000,"active_power_l3_w":-1114.000,"active_voltage_l1_v":236.000,"active_voltage_l2_v":234.000,"active_voltage_l3_v":238.000,"active_current_a":16.083,"active_current_l1_a":-0.919,"active_current_l2_a":10.483,"active_current_l3_a":-4.681,"voltage_sag_l1_count":8.000,"voltage_sag_l2_count":9.000,"voltage_sag_l3_count":9.000,"voltage_swell_l1_count":0.000,"voltage_swell_l2_count":0.000,"voltage_swell_l3_count":0.000,"any_power_fail_count":1622.000,"long_power_fail_count":23.000,"total_gas_m3":12561.409,"gas_timestamp":250812130500,"gas_unique_id":"4730303533303033353933373339373137","external":[{"unique_id":"4730303533303033353933373339373137","type":"gas_meter","timestamp":250812130500,"value":12561.409,"unit":"m3"}]}
[circuit-main] DEBUG 2025/08/12 13:05:19 power: 1121W
[circuit-main] DEBUG 2025/08/12 13:05:19 current: 10.5A
[site  ] DEBUG 2025/08/12 13:05:19 aux 1 power: 0W
[pv1   ] TRACE 2025/08/12 13:05:19 modbus: send 5a 26 00 00 00 06 01 03 7d 50 00 02
[pv3   ] TRACE 2025/08/12 13:05:19 GET http://192.168.178.52/api/v1/data
[pv2   ] TRACE 2025/08/12 13:05:19 GET http://192.168.178.53/api/v1/data
[site  ] DEBUG 2025/08/12 13:05:19 grid power: 1121W
[site  ] DEBUG 2025/08/12 13:05:19 grid currents: [-0.919 10.5 -4.68]A
[pv2   ] TRACE 2025/08/12 13:05:19 {"wifi_ssid":"Ik sta er ook en ben sneller","wifi_strength":72,"total_power_import_kwh":368.534,"total_power_import_t1_kwh":368.534,"total_power_export_kwh":896.029,"total_power_export_t1_kwh":896.029,"active_power_w":-725.435,"active_power_l1_w":-725.435,"active_voltage_v":235.861,"active_current_a":3.080,"active_frequency_hz":49.982}
[site  ] DEBUG 2025/08/12 13:05:19 pv 2 power: 725W
[pv3   ] TRACE 2025/08/12 13:05:19 {"wifi_ssid":"Ik sta er ook en ben sneller","wifi_strength":40,"total_power_import_kwh":273.984,"total_power_import_t1_kwh":273.984,"total_power_export_kwh":1786.128,"total_power_export_t1_kwh":1786.128,"active_power_w":-1457.296,"active_power_l1_w":-1457.296,"active_voltage_v":240.771,"active_current_a":6.064,"active_frequency_hz":49.982}
[site  ] DEBUG 2025/08/12 13:05:19 pv 3 power: 1457W
[pv1   ] TRACE 2025/08/12 13:05:21 modbus: recv 5a 26 00 00 00 07 01 03 04 00 00 10 47
[site  ] DEBUG 2025/08/12 13:05:21 pv 1 power: 4167W
[pv1   ] TRACE 2025/08/12 13:05:21 modbus: send 5a 27 00 00 00 06 01 03 7d 6a 00 02
[pv1   ] TRACE 2025/08/12 13:05:21 modbus: recv 5a 27 00 00 00 07 01 03 04 00 14 9d da
[site  ] DEBUG 2025/08/12 13:05:21 pv power: 6350W
[site  ] DEBUG 2025/08/12 13:05:21 site power: 1121W
[alfen ] TRACE 2025/08/12 13:05:21 modbus: send b9 95 00 00 00 06 01 03 01 32 00 06
[alfen ] TRACE 2025/08/12 13:05:22 modbus: recv b9 95 00 00 00 0f 01 03 0c 43 6d f5 c2 43 6a 6e 14 43 6b eb 85
[lp-1  ] DEBUG 2025/08/12 13:05:22 charge voltages: [238 234 236]V
[lp-1  ] DEBUG 2025/08/12 13:05:22 detected active phases: 3p
[alfen ] TRACE 2025/08/12 13:05:22 modbus: send b9 96 00 00 00 06 01 03 01 76 00 04
[alfen ] TRACE 2025/08/12 13:05:22 modbus: recv b9 96 00 00 00 0b 01 03 08 41 51 62 ba 40 00 00 00
[alfen ] TRACE 2025/08/12 13:05:22 modbus: send b9 97 00 00 00 06 01 03 01 76 00 04
[alfen ] TRACE 2025/08/12 13:05:22 modbus: recv b9 97 00 00 00 0b 01 03 08 41 51 62 ba 40 00 00 00
[lp-1  ] DEBUG 2025/08/12 13:05:22 charge total import: 4557.545kWh
[alfen ] TRACE 2025/08/12 13:05:22 modbus: send b9 98 00 00 00 06 01 03 04 b1 00 05
[alfen ] TRACE 2025/08/12 13:05:22 modbus: recv b9 98 00 00 00 0d 01 03 0a 43 32 00 00 00 00 00 00 00 00
[lp-1  ] DEBUG 2025/08/12 13:05:22 charger status: C
[EX30  ] TRACE 2025/08/12 13:05:22 GET http://192.168.178.201:6060
[EX30  ] TRACE 2025/08/12 13:05:22 {
  "batteryChargeLevel": {
    "status": "OK",
    "value": 94.0,
    "unit": "percentage",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "electricRange": {
    "status": "OK",
    "value": 292,
    "unit": "km",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargerConnectionStatus": {
    "status": "OK",
    "value": "CONNECTED",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargingStatus": {
    "status": "OK",
    "value": "CHARGING",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargingType": {
    "status": "OK",
    "value": "AC",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargerPowerStatus": {
    "status": "OK",
    "value": "PROVIDING_POWER",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "estimatedChargingTimeToTargetBatteryChargeLevel": {
    "status": "OK",
    "value": 58,
    "unit": "minutes",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargingCurrentLimit": {
    "status": "ERROR",
    "code": "NOT_SUPPORTED",
    "message": "Resource is not supported for this vehicle"
  },
  "targetBatteryChargeLevel": {
    "status": "ERROR",
    "code": "ERROR_READING_PROPERTY",
    "message": "Failed to retrieve property."
  },
  "chargingPower": {
    "status": "ERROR",
    "code": "NOT_SUPPORTED",
    "message": "Resource is not supported for this vehicle"
  },
  "EvccStatus": {
    "value": "C"
  },
  "SunHoursTotalAverage": {
    "value": "11.9666666666667"
  },
  "SunHoursToday": {
    "value": "11.7"
  }
}
[lp-1  ] DEBUG 2025/08/12 13:05:22 soc estimated: 94.23% (vehicle: 94.00%)
[lp-1  ] DEBUG 2025/08/12 13:05:22 vehicle soc: 94%
[EX30  ] TRACE 2025/08/12 13:05:22 GET http://192.168.178.201:6060
[EX30  ] TRACE 2025/08/12 13:05:22 {
  "batteryChargeLevel": {
    "status": "OK",
    "value": 94.0,
    "unit": "percentage",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "electricRange": {
    "status": "OK",
    "value": 292,
    "unit": "km",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargerConnectionStatus": {
    "status": "OK",
    "value": "CONNECTED",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargingStatus": {
    "status": "OK",
    "value": "CHARGING",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargingType": {
    "status": "OK",
    "value": "AC",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargerPowerStatus": {
    "status": "OK",
    "value": "PROVIDING_POWER",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "estimatedChargingTimeToTargetBatteryChargeLevel": {
    "status": "OK",
    "value": 58,
    "unit": "minutes",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargingCurrentLimit": {
    "status": "ERROR",
    "code": "NOT_SUPPORTED",
    "message": "Resource is not supported for this vehicle"
  },
  "targetBatteryChargeLevel": {
    "status": "ERROR",
    "code": "ERROR_READING_PROPERTY",
    "message": "Failed to retrieve property."
  },
  "chargingPower": {
    "status": "ERROR",
    "code": "NOT_SUPPORTED",
    "message": "Resource is not supported for this vehicle"
  },
  "EvccStatus": {
    "value": "C"
  },
  "SunHoursTotalAverage": {
    "value": "11.9666666666667"
  },
  "SunHoursToday": {
    "value": "11.7"
  }
}
[lp-1  ] DEBUG 2025/08/12 13:05:22 vehicle range: 292km
[alfen ] TRACE 2025/08/12 13:05:22 modbus: send b9 99 00 00 00 06 01 03 04 ba 00 02
[alfen ] TRACE 2025/08/12 13:05:22 modbus: recv b9 99 00 00 00 07 01 03 04 41 00 00 00
[alfen ] TRACE 2025/08/12 13:05:22 modbus: send b9 9a 00 00 00 06 01 03 04 bf 00 01
[alfen ] TRACE 2025/08/12 13:05:22 modbus: recv b9 9a 00 00 00 05 01 03 02 00 03
[lp-1  ] DEBUG 2025/08/12 13:05:22 available power 2382W < 5520W min 3p threshold
[lp-1  ] DEBUG 2025/08/12 13:05:22 phase scale1p in 6m18s
[lp-1  ] DEBUG 2025/08/12 13:05:22 pv charge current: 6.38A = 8A + -1.62A (1121W @ 3p)
[circuit-laadpaal] TRACE 2025/08/12 13:05:22 validate current: 8.82A + (8.82A -> 8A) <= 16A ok
[circuit-main] TRACE 2025/08/12 13:05:22 validate current: 10.5A + (8.82A -> 8A) <= 20A ok
[httpd ] TRACE 2025/08/12 13:05:25 GET /api/state
[httpd ] TRACE 2025/08/12 13:05:27 GET /api/auth/status
[httpd ] TRACE 2025/08/12 13:05:27 GET /api/system/log
[httpd ] TRACE 2025/08/12 13:05:27 GET /api/system/log/areas
[site  ] DEBUG 2025/08/12 13:05:29 ----
[alfen ] TRACE 2025/08/12 13:05:29 modbus: send b9 9b 00 00 00 06 01 03 01 58 00 02
[alfen ] TRACE 2025/08/12 13:05:29 modbus: recv b9 9b 00 00 00 07 01 03 04 45 5a f3 33
[lp-1  ] DEBUG 2025/08/12 13:05:29 charge power: 3503W
[alfen ] TRACE 2025/08/12 13:05:29 modbus: send b9 9c 00 00 00 06 01 03 01 40 00 06
[alfen ] TRACE 2025/08/12 13:05:29 modbus: recv b9 9c 00 00 00 0f 01 03 0c 41 0d 06 25 41 0a 83 13 41 08 5e 36
[lp-1  ] DEBUG 2025/08/12 13:05:29 charge currents: [8.81 8.66 8.52]A
[shelly] TRACE 2025/08/12 13:05:29 POST http://192.168.178.64/rpc/Switch.GetStatus?id=0
[shelly] TRACE 2025/08/12 13:05:29 {"id":0,"on":false,"src":"evcc","method":"Switch.GetStatus?id=0"}
--
{"id":0, "source":"HTTP_in", "output":false, "apower":0.0, "voltage":235.2, "freq":49.9, "current":0.000, "aenergy":{"total":252781.749,"by_minute":[0.000,0.000,0.000],"minute_ts":1754996700}, "ret_aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1754996700},"temperature":{"tC":46.1, "tF":115.0}}
[circuit-airco] DEBUG 2025/08/12 13:05:29 power: 0W
[circuit-airco] DEBUG 2025/08/12 13:05:29 current: 0A
[circuit-laadpaal] DEBUG 2025/08/12 13:05:29 power: 3503.2W
[circuit-laadpaal] DEBUG 2025/08/12 13:05:29 current: 8.81A
[homewizard] TRACE 2025/08/12 13:05:29 GET http://192.168.178.50/api/v1/data
[homewizard] TRACE 2025/08/12 13:05:29 {"wifi_ssid":"Ik sta er ook en ben sneller","wifi_strength":56,"smr_version":50,"meter_model":"Sagemcom T210-D ESMR5.0","unique_id":"4530303438303030303031343638313137","active_tariff":2,"total_power_import_kwh":35795.678,"total_power_import_t1_kwh":19936.772,"total_power_import_t2_kwh":15858.906,"total_power_export_kwh":8077.873,"total_power_export_t1_kwh":2426.933,"total_power_export_t2_kwh":5650.940,"active_power_w":1116.000,"active_power_l1_w":-211.000,"active_power_l2_w":2468.000,"active_power_l3_w":-1113.000,"active_voltage_l1_v":236.000,"active_voltage_l2_v":234.000,"active_voltage_l3_v":238.000,"active_current_a":16.118,"active_current_l1_a":-0.894,"active_current_l2_a":10.547,"active_current_l3_a":-4.676,"voltage_sag_l1_count":8.000,"voltage_sag_l2_count":9.000,"voltage_sag_l3_count":9.000,"voltage_swell_l1_count":0.000,"voltage_swell_l2_count":0.000,"voltage_swell_l3_count":0.000,"any_power_fail_count":1622.000,"long_power_fail_count":23.000,"total_gas_m3":12561.409,"gas_timestamp":250812130500,"gas_unique_id":"4730303533303033353933373339373137","external":[{"unique_id":"4730303533303033353933373339373137","type":"gas_meter","timestamp":250812130500,"value":12561.409,"unit":"m3"}]}
[circuit-main] DEBUG 2025/08/12 13:05:29 power: 1116W
[circuit-main] DEBUG 2025/08/12 13:05:29 current: 10.5A
[site  ] DEBUG 2025/08/12 13:05:29 grid power: 1116W
[site  ] DEBUG 2025/08/12 13:05:29 grid currents: [-0.894 10.5 -4.68]A
[pv1   ] TRACE 2025/08/12 13:05:29 modbus: send 5a 28 00 00 00 06 01 03 7d 50 00 02
[pv3   ] TRACE 2025/08/12 13:05:29 GET http://192.168.178.52/api/v1/data
[pv2   ] TRACE 2025/08/12 13:05:29 GET http://192.168.178.53/api/v1/data
[site  ] DEBUG 2025/08/12 13:05:29 aux 1 power: 0W
[pv3   ] TRACE 2025/08/12 13:05:29 {"wifi_ssid":"Ik sta er ook en ben sneller","wifi_strength":36,"total_power_import_kwh":273.984,"total_power_import_t1_kwh":273.984,"total_power_export_kwh":1786.132,"total_power_export_t1_kwh":1786.132,"active_power_w":-1457.273,"active_power_l1_w":-1457.273,"active_voltage_v":240.333,"active_current_a":6.075,"active_frequency_hz":49.971}
[pv2   ] TRACE 2025/08/12 13:05:29 {"wifi_ssid":"Ik sta er ook en ben sneller","wifi_strength":70,"total_power_import_kwh":368.534,"total_power_import_t1_kwh":368.534,"total_power_export_kwh":896.032,"total_power_export_t1_kwh":896.032,"active_power_w":-725.434,"active_power_l1_w":-725.434,"active_voltage_v":235.820,"active_current_a":3.080,"active_frequency_hz":49.977}
[site  ] DEBUG 2025/08/12 13:05:29 pv 3 power: 1457W
[site  ] DEBUG 2025/08/12 13:05:29 pv 2 power: 725W
[pv1   ] TRACE 2025/08/12 13:05:29 modbus: recv 5a 28 00 00 00 07 01 03 04 00 00 10 42
[site  ] DEBUG 2025/08/12 13:05:29 pv 1 power: 4162W
[pv1   ] TRACE 2025/08/12 13:05:29 modbus: send 5a 29 00 00 00 06 01 03 7d 6a 00 02
[pv1   ] TRACE 2025/08/12 13:05:30 modbus: recv 5a 29 00 00 00 07 01 03 04 00 14 9d db
[site  ] DEBUG 2025/08/12 13:05:30 pv power: 6345W
[site  ] DEBUG 2025/08/12 13:05:30 site power: 1116W
[alfen ] TRACE 2025/08/12 13:05:30 modbus: send b9 9d 00 00 00 06 01 03 01 32 00 06
[alfen ] TRACE 2025/08/12 13:05:30 modbus: recv b9 9d 00 00 00 0f 01 03 0c 43 6e 00 00 43 6a 66 66 43 6b dc 29
[lp-1  ] DEBUG 2025/08/12 13:05:30 charge voltages: [238 234 236]V
[lp-1  ] DEBUG 2025/08/12 13:05:30 detected active phases: 3p
[alfen ] TRACE 2025/08/12 13:05:30 modbus: send b9 9e 00 00 00 06 01 03 01 76 00 04
[alfen ] TRACE 2025/08/12 13:05:30 modbus: recv b9 9e 00 00 00 0b 01 03 08 41 51 62 bc 40 00 00 00
[alfen ] TRACE 2025/08/12 13:05:30 modbus: send b9 9f 00 00 00 06 01 03 01 76 00 04
[alfen ] TRACE 2025/08/12 13:05:30 modbus: recv b9 9f 00 00 00 0b 01 03 08 41 51 62 bc 40 00 00 00
[lp-1  ] DEBUG 2025/08/12 13:05:30 charge total import: 4557.553kWh
[alfen ] TRACE 2025/08/12 13:05:30 modbus: send b9 a0 00 00 00 06 01 03 04 b1 00 05
[httpd ] TRACE 2025/08/12 13:05:30 GET /api/system/log
[alfen ] TRACE 2025/08/12 13:05:30 modbus: recv b9 a0 00 00 00 0d 01 03 0a 43 32 00 00 00 00 00 00 00 00
[lp-1  ] DEBUG 2025/08/12 13:05:30 charger status: C
[EX30  ] TRACE 2025/08/12 13:05:30 GET http://192.168.178.201:6060
[EX30  ] TRACE 2025/08/12 13:05:30 {
  "batteryChargeLevel": {
    "status": "OK",
    "value": 94.0,
    "unit": "percentage",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "electricRange": {
    "status": "OK",
    "value": 292,
    "unit": "km",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargerConnectionStatus": {
    "status": "OK",
    "value": "CONNECTED",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargingStatus": {
    "status": "OK",
    "value": "CHARGING",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargingType": {
    "status": "OK",
    "value": "AC",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargerPowerStatus": {
    "status": "OK",
    "value": "PROVIDING_POWER",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "estimatedChargingTimeToTargetBatteryChargeLevel": {
    "status": "OK",
    "value": 58,
    "unit": "minutes",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargingCurrentLimit": {
    "status": "ERROR",
    "code": "NOT_SUPPORTED",
    "message": "Resource is not supported for this vehicle"
  },
  "targetBatteryChargeLevel": {
    "status": "ERROR",
    "code": "ERROR_READING_PROPERTY",
    "message": "Failed to retrieve property."
  },
  "chargingPower": {
    "status": "ERROR",
    "code": "NOT_SUPPORTED",
    "message": "Resource is not supported for this vehicle"
  },
  "EvccStatus": {
    "value": "C"
  },
  "SunHoursTotalAverage": {
    "value": "11.9666666666667"
  },
  "SunHoursToday": {
    "value": "11.7"
  }
}
[lp-1  ] DEBUG 2025/08/12 13:05:30 soc estimated: 94.24% (vehicle: 94.00%)
[lp-1  ] DEBUG 2025/08/12 13:05:30 vehicle soc: 94%
[EX30  ] TRACE 2025/08/12 13:05:30 GET http://192.168.178.201:6060
[EX30  ] TRACE 2025/08/12 13:05:30 {
  "batteryChargeLevel": {
    "status": "OK",
    "value": 94.0,
    "unit": "percentage",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "electricRange": {
    "status": "OK",
    "value": 292,
    "unit": "km",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargerConnectionStatus": {
    "status": "OK",
    "value": "CONNECTED",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargingStatus": {
    "status": "OK",
    "value": "CHARGING",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargingType": {
    "status": "OK",
    "value": "AC",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargerPowerStatus": {
    "status": "OK",
    "value": "PROVIDING_POWER",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "estimatedChargingTimeToTargetBatteryChargeLevel": {
    "status": "OK",
    "value": 58,
    "unit": "minutes",
    "updatedAt": "2025-08-12T11:03:02Z"
  },
  "chargingCurrentLimit": {
    "status": "ERROR",
    "code": "NOT_SUPPORTED",
    "message": "Resource is not supported for this vehicle"
  },
  "targetBatteryChargeLevel": {
    "status": "ERROR",
    "code": "ERROR_READING_PROPERTY",
    "message": "Failed to retrieve property."
  },
  "chargingPower": {
    "status": "ERROR",
    "code": "NOT_SUPPORTED",
    "message": "Resource is not supported for this vehicle"
  },
  "EvccStatus": {
    "value": "C"
  },
  "SunHoursTotalAverage": {
    "value": "11.9666666666667"
  },
  "SunHoursToday": {
    "value": "11.7"
  }
}
[lp-1  ] DEBUG 2025/08/12 13:05:30 vehicle range: 292km
[alfen ] TRACE 2025/08/12 13:05:30 modbus: send b9 a1 00 00 00 06 01 03 04 ba 00 02
[alfen ] TRACE 2025/08/12 13:05:30 modbus: recv b9 a1 00 00 00 07 01 03 04 41 00 00 00
[alfen ] TRACE 2025/08/12 13:05:30 modbus: send b9 a2 00 00 00 06 01 03 04 bf 00 01
[alfen ] TRACE 2025/08/12 13:05:31 modbus: recv b9 a2 00 00 00 05 01 03 02 00 03
[lp-1  ] DEBUG 2025/08/12 13:05:31 available power 2387W < 5520W min 3p threshold
[lp-1  ] DEBUG 2025/08/12 13:05:31 phase scale1p in 6m10s
[lp-1  ] DEBUG 2025/08/12 13:05:31 pv charge current: 6.38A = 8A + -1.62A (1116W @ 3p)
[circuit-laadpaal] TRACE 2025/08/12 13:05:31 validate current: 8.81A + (8.81A -> 8A) <= 16A ok
[circuit-main] TRACE 2025/08/12 13:05:31 validate current: 10.5A + (8.81A -> 8A) <= 20A ok
[db    ] TRACE 2025/08/12 13:05:38 INSERT INTO `settings` (`key`,`value`) VALUES ("lp1.mode","pv"),("telemetry","true"),("lp1.minCurrent","8"),("jwtSecretKey","85e2d5e8a980d555c90743fadc9594355d1ad625a94484f438ce23eb279765d9"),("adminPassword","$2a$10$tlsBcnB5b1AJb8C8Kb/l3uJslDDa9DEbPnhsjTztooKmOrQrP36YO"),("lp1.maxCurrent","16"),("interval","10000000000"),("lp1.phasesConfigured","0"),("lp1.limitEnergy","0"),("vehicle.EX30.minSoc","30"),("vehicle.EX30.planTime","0001-01-01T00:00:00Z"),("vehicle.EX30.planSoc","0"),("lp1.limitSoc","0"),("vehicle.EX30.limitSoc","100"),("sponsorToken","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJldmNjLmlvIiwic3ViIjoiTWFydGlqbnZhbkdlZmZlbjEzIiwiZXhwIjoxODIxNDQ1MjAwLCJpYXQiOjE3MjY4MzcyMDAsInNyYyI6ImdoIn0.fajWIjkmjf6nFAkJu9uzQ43B3fJXisd1-DGzCgdHlRE"),("vehicle.EX30.repeatingPlans","[{""weekdays"":[2],""time"":""19:45"",""tz"":""Europe/Amsterdam"",""soc"":60,""precondition"":0,""active"":false},{""weekdays"":[1,5],""time"":""19:00"",""tz"":""Europe/Amsterdam"",""soc"":40,""precondition"":0,""active"":false}]"),("lp1.title","Oprit"),("tariffs","currency: EUR

grid: # price using energy from the grid
  type: fixed
  price: 0.26 # EUR/kWh

feedin: # price for feeding solar energy to the grid
  type: fixed
  price: 0.00 # EUR/kWh

#co2: # carbon intensity forecast data
#  type: template
#  template: grünstromindex
#  zip: <zip>"),("solarAccYield","{""pv1"":{""accumulated"":152.71547241804842},""pv2"":{""accumulated"":26.12448810208845},""pv3"":{""accumulated"":52.284097713390224}}"),("vehicle.EX30.planPrecondition","0"),("lp2.title","HomeClimate"),("lp2.mode","off"),("lp2.minCurrent","0.5") ON CONFLICT (`key`) DO UPDATE SET `value`=`excluded`.`value` 23 <nil>
[site  ] DEBUG 2025/08/12 13:05:39 ----
[alfen ] TRACE 2025/08/12 13:05:39 modbus: send b9 a3 00 00 00 06 01 03 01 58 00 02
[alfen ] TRACE 2025/08/12 13:05:39 modbus: recv b9 a3 00 00 00 07 01 03 04 45 5b 01 9a
[lp-1  ] DEBUG 2025/08/12 13:05:39 charge power: 3504W
[alfen ] TRACE 2025/08/12 13:05:39 modbus: send b9 a4 00 00 00 06 01 03 01 40 00 06
[alfen ] TRACE 2025/08/12 13:05:39 modbus: recv b9 a4 00 00 00 0f 01 03 0c 41 0d 16 88 41 0a a3 d7 41 08 6e 98
[lp-1  ] DEBUG 2025/08/12 13:05:39 charge currents: [8.82 8.66 8.53]A
[shelly] TRACE 2025/08/12 13:05:39 POST http://192.168.178.64/rpc/Switch.GetStatus?id=0
[shelly] TRACE 2025/08/12 13:05:39 {"id":0,"on":false,"src":"evcc","method":"Switch.GetStatus?id=0"}
--
{"id":0, "source":"HTTP_in", "output":false, "apower":0.0, "voltage":235.0, "freq":50.0, "current":0.000, "aenergy":{"total":252781.749,"by_minute":[0.000,0.000,0.000],"minute_ts":1754996700}, "ret_aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1754996700},"temperature":{"tC":46.0, "tF":114.8}}
[circuit-airco] DEBUG 2025/08/12 13:05:39 power: 0W
[circuit-airco] DEBUG 2025/08/12 13:05:39 current: 0A
[circuit-laadpaal] DEBUG 2025/08/12 13:05:39 power: 3504.1W
[circuit-laadpaal] DEBUG 2025/08/12 13:05:39 current: 8.82A
[homewizard] TRACE 2025/08/12 13:05:39 GET http://192.168.178.50/api/v1/data
[homewizard] TRACE 2025/08/12 13:05:39 {"wifi_ssid":"Ik sta er ook en ben sneller","wifi_strength":54,"smr_version":50,"meter_model":"Sagemcom T210-D ESMR5.0","unique_id":"4530303438303030303031343638313137","active_tariff":2,"total_power_import_kwh":35795.682,"total_power_import_t1_kwh":19936.772,"total_power_import_t2_kwh":15858.910,"total_power_export_kwh":8077.873,"total_power_export_t1_kwh":2426.933,"total_power_export_t2_kwh":5650.940,"active_power_w":1157.000,"active_power_l1_w":-207.000,"active_power_l2_w":2488.000,"active_power_l3_w":-1116.000,"active_voltage_l1_v":236.000,"active_voltage_l2_v":234.000,"active_voltage_l3_v":238.000,"active_current_a":16.199,"active_current_l1_a":-0.877,"active_current_l2_a":10.632,"active_current_l3_a":-4.689,"voltage_sag_l1_count":8.000,"voltage_sag_l2_count":9.000,"voltage_sag_l3_count":9.000,"voltage_swell_l1_count":0.000,"voltage_swell_l2_count":0.000,"voltage_swell_l3_count":0.000,"any_power_fail_count":1622.000,"long_power_fail_count":23.000,"total_gas_m3":12561.409,"gas_timestamp":250812130500,"gas_unique_id":"4730303533303033353933373339373137","external":[{"unique_id":"4730303533303033353933373339373137","type":"gas_meter","timestamp":250812130500,"value":12561.409,"unit":"m3"}]}
[circuit-main] DEBUG 2025/08/12 13:05:39 power: 1157W
[circuit-main] DEBUG 2025/08/12 13:05:39 current: 10.6A
[site  ] DEBUG 2025/08/12 13:05:39 grid power: 1157W
[site  ] DEBUG 2025/08/12 13:05:39 grid currents: [-0.877 10.6 -4.69]A
[pv3   ] TRACE 2025/08/12 13:05:39 GET http://192.168.178.52/api/v1/data
[pv1   ] TRACE 2025/08/12 13:05:39 modbus: send 5a 2a 00 00 00 06 01 03 7d 50 00 02
[pv2   ] TRACE 2025/08/12 13:05:39 GET http://192.168.178.53/api/v1/data
[site  ] DEBUG 2025/08/12 13:05:39 aux 1 power: 0W
[pv3   ] TRACE 2025/08/12 13:05:39 {"wifi_ssid":"Ik sta er ook en ben sneller","wifi_strength":42,"total_power_import_kwh":273.984,"total_power_import_t1_kwh":273.984,"total_power_export_kwh":1786.136,"total_power_export_t1_kwh":1786.136,"active_power_w":-1457.419,"active_power_l1_w":-1457.419,"active_voltage_v":240.737,"active_current_a":6.067,"active_frequency_hz":49.977}
[site  ] DEBUG 2025/08/12 13:05:39 pv 3 power: 1457W
[pv2   ] TRACE 2025/08/12 13:05:39 {"wifi_ssid":"Ik sta er ook en ben sneller","wifi_strength":72,"total_power_import_kwh":368.534,"total_power_import_t1_kwh":368.534,"total_power_export_kwh":896.033,"total_power_export_t1_kwh":896.033,"active_power_w":-725.683,"active_power_l1_w":-725.683,"active_voltage_v":235.797,"active_current_a":3.081,"active_frequency_hz":49.982}
[site  ] DEBUG 2025/08/12 13:05:39 pv 2 power: 726W
[pv1   ] TRACE 2025/08/12 13:05:40 modbus: recv 5a 2a 00 00 00 07 01 03 04 00 00 10 4a
[site  ] DEBUG 2025/08/12 13:05:40 pv 1 power: 4170W
[pv1   ] TRACE 2025/08/12 13:05:40 modbus: send 5a 2b 00 00 00 06 01 03 7d 6a 00 02
[httpd ] TRACE 2025/08/12 13:05:40 GET /api/state
[pv1   ] TRACE 2025/08/12 13:05:40 modbus: recv 5a 2b 00 00 00 07 01 03 04 00 14 9d dc
[site  ] DEBUG 2025/08/12 13:05:40 pv power: 6353W
[site  ] DEBUG 2025/08/12 13:05:40 site power: 1157W
[alfen ] TRACE 2025/08/12 13:05:40 modbus: send b9 a5 00 00 00 06 01 03 01 32 00 06
[alfen ] TRACE 2025/08/12 13:05:40 modbus: recv b9 a5 00 00 00 0f 01 03 0c 43 6e 07 ae 43 6a 78 52 43 6b fa e1
[lp-1  ] DEBUG 2025/08/12 13:05:40 charge voltages: [238 234 236]V
[lp-1  ] DEBUG 2025/08/12 13:05:40 detected active phases: 3p
[alfen ] TRACE 2025/08/12 13:05:40 modbus: send b9 a6 00 00 00 0b 01 10 04 ba 00 02 04 41 00 00 00
[alfen ] TRACE 2025/08/12 13:05:41 modbus: recv b9 a6 00 00 00 06 01 10 04 ba 00 02
[httpd ] TRACE 2025/08/12 13:05:41 GET /api/system/log
[alfen ] TRACE 2025/08/12 13:05:41 modbus: send b9 a7 00 00 00 06 01 03 01 76 00 04

What type of operating system or environment does evcc run on?

Linux

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [x] I have verified that the issue is reproducible with the latest nightly build

Version

2.7.0

MartijnvanGeffen13 avatar Aug 12 '25 11:08 MartijnvanGeffen13

From the logs you also see the power is 3500 watt but it uses 3* 8A ? or do i miss something

[lp-1 ] DEBUG 2025/08/12 13:05:39 charge power: 3504W [alfen ] TRACE 2025/08/12 13:05:39 modbus: send b9 a4 00 00 00 06 01 03 01 40 00 06 [alfen ] TRACE 2025/08/12 13:05:39 modbus: recv b9 a4 00 00 00 0f 01 03 0c 41 0d 16 88 41 0a a3 d7 41 08 6e 98 [lp-1 ] DEBUG 2025/08/12 13:05:39 charge currents: [8.82 8.66 8.53]A

MartijnvanGeffen13 avatar Aug 12 '25 11:08 MartijnvanGeffen13

Alfen charger switches P3 -> p1 without EVCC knowing

There are 2 options: open vendor ticket to get this fixed or find an interphase where evcc can read the actual phases to take corrective action. Either needs further input.

andig avatar Aug 12 '25 15:08 andig

Actually, Alfen already has option 2 implemented, so that should not be a problem.

ofthen when in PV mode and PV delivers around 3-6 KWH (Cloudy day so output is constand changing) and EVCC wants to switch down after 5 mins the alfen charger is allready switched down causing EVCC to throw errors and wrong UI updates.

Logfile doesn't show any of that, closing until logfile for issue available.

andig avatar Aug 12 '25 15:08 andig