Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mindestladung bei Ankunft: Lädt nur 1-phasig bei Phaseneinstellung "automatisch" #18610

Closed
2 tasks done
An-Wi opened this issue Feb 5, 2025 · 4 comments · Fixed by #18637
Closed
2 tasks done

Mindestladung bei Ankunft: Lädt nur 1-phasig bei Phaseneinstellung "automatisch" #18610

An-Wi opened this issue Feb 5, 2025 · 4 comments · Fixed by #18637
Assignees
Labels
bug Something isn't working

Comments

@An-Wi
Copy link

An-Wi commented Feb 5, 2025

Describe the bug

Erwartet hatte ich ein Laden mit 3 Phasen, um möglichst schnell die Mindestladung zu erreichen.

Die Logs habe ich selektiv angefügt (wichtigen Einträgen mit Stichwort "phase", den Ladestart sowie die manuellen Eingriffe).
Bei Bedarf liefere ich gern weitere Logs nach.

Ergänzend sei noch angemerkt, dass letzten Woche Freitag (31.1.) ein Firmware-Updates meiner Wallbox erfolgt ist.
Möglicherweise ist durch den Hersteller-Support zuletzt am 3.2. ein Neustart der Wallbox durchgeführt worden -> ggf. haben sich dadurch unerwartete Konstellationen ergeben.

Steps to reproduce

  1. Zuletzt geladen mit "Min+PV" mit Einstellung "3-phasig".
    [lp-1 ] DEBUG 2025/02/01 22:41:26 switched phases: 3p
    [lp-1 ] INFO 2025/02/02 08:50:49 start charging ->
    [lp-1 ] INFO 2025/02/02 16:37:30 stop charging <-
  2. (2 Tage später) Umstellung auf Phaseneinstellung "Automatisch" 10min bevor Auto angesteckt wurde.
    [lp-1 ] DEBUG 2025/02/04 19:33:28 set phases: 0
  3. Auto angesteckt
    [lp-1 ] INFO 2025/02/04 19:45:51 car connected
  4. =>evcc: startet Laden nur 1-phasig
    [lp-1 ] INFO 2025/02/04 19:46:11 start charging ->
    [lp-1 ] DEBUG 2025/02/04 19:46:31 detected active phases: 1p
  5. Manuell auf "3-phasig" umgestellt
    [lp-1 ] DEBUG 2025/02/04 20:15:47 set phases: 3
  6. =>evcc: keine Phasenumschaltung! Läde weiter 1-phasig
    [lp-1 ] DEBUG 2025/02/04 20:15:47 detected active phases: 1p
    [lp-1 ] DEBUG 2025/02/04 20:15:51 detected active phases: 1p
  7. Manuell auf "1-phasig" umgestellt
    [lp-1 ] DEBUG 2025/02/04 20:15:53 set phases: 1
  8. Anschließend direkt manuelle Phaseneinstellung auf "Automatisch"
    [lp-1 ] DEBUG 2025/02/04 20:15:55 set phases: 0
  9. =>evcc: Phasenwechsel und lädt nun 3-phasig
    [lp-1 ] DEBUG 2025/02/04 20:16:08 switched phases: 3p

Configuration details

# open evcc at http://evcc.local:7070

network:
  # schema is the HTTP schema
  # setting to `https` does not enable https, it only changes the way URLs are generated
  schema: http
  # host is the hostname or IP address
  # if the host name contains a `.local` suffix, the name will be announced on MDNS
  # docker: MDNS announcements don't work. host must be set to the docker host's name.
  host: evcc.local
  # port is the listening port for UI and api
  # evcc will listen on all available interfaces
  port: 7070

interval: 20s   #25s #30s # control cycle interval

# database configuration for persisting charge sessions and settings
# database:
#   type: sqlite
#   dsn: <path-to-db-file>

# sponsor token enables optional features (request at https://sponsor.evcc.io)
sponsortoken: ey***

# telemetry enables aggregated statistics
#
# Telemetry allows collecting usage data (grid and green energy, charge power).
# Data is aggregated, no individual charging sessions are tracked. The collected,
# anonymous data can be retrieved using https://api.evcc.io.
#
# See https://github.com/evcc-io/evcc/pull/4343 or details.
#
# For time being, this is only available to sponsors, hence data is associated with
# the sponsor token's identity.
#
# telemetry: true

# log settings
log: info   #debug #trace
levels:
  site: debug
  lp-1: debug #trace
  lp-2: debug
  cache: error
  db: trace #error
  #nissan: debug #trace
  nissan: trace
  script: debug


# modbus proxy for allowing external programs to reuse the evcc modbus connection
# each entry will start a proxy instance at the given port speaking Modbus TCP and
# relaying to the given modbus downstream device (either TCP or RTU, RS485 or TCP)
modbusproxy:
  #  - port: 5200
  #    uri: solar-edge:502
  #    # rtu: true
  #    # readonly: true


# meter definitions
# name can be freely chosen and is used as reference when assigning meters to site and loadpoints
# for documentation see https://docs.evcc.io/docs/devices/meters
meters:
  - name: grid1
    type: template
    template: tq-em 
    usage: grid  
    host: 192.168.115.10  
    port: 80  
    password: ***
    # power: Power # default value, optionally override
    # energy: Sum # default value, optionally override
  - name: pv1
    type: custom
    power:
        source: script
        cmd: /fupcService/pvCurrentPower.bat
        timeout: 5s
  #- name: pv2
  #  type: custom
  #      source: const
  #      value: 0
  


# charger definitions
# name can be freely chosen and is used as reference when assigning charger to vehicle
# for documentation see https://docs.evcc.io/docs/devices/chargers
chargers:
  - name: wallbox1
    type: template
    template: dadapower
    #Modbus TCP
    modbus: tcpip
    id: 1
    host: 192.168.115.11
    port: 502


# vehicle definitions
# name can be freely chosen and is used as reference when assigning vehicle to loadpoint
# for documentation see https://docs.evcc.io/docs/devices/vehicles
vehicles:
  - name: ev1
    #type: template
    ##template: nissan 
    #template: nissan-ariya
    type: nissan
    version: v2     #ariya
    expiry: 12h
    title: Ariya  
    user: ***
    password: ***
    vin: JN***
    capacity: 87  # kWh
    cache: 5m   #default: 15m
    identifiers:
    - N-0402fb013d4903-card1

    # onIdentify: # set defaults when vehicle is identified
    #   mode: minpv # enable PV-charging when vehicle is identified
    #   minSoc: 20 # immediately charge to 0% regardless of mode unless "off" (disabled)
    #   targetSoc: 90 # limit charge to 90%

  #- name: ev2
  #  title: Gast-NFC
  #  type: custom
  #  icon: van   #generic
  #  identifiers:
  #  - N-04038101c00303-card2


# site describes the EVU connection, PV and home battery
site:
  title: ev ↯ charge control  # display name for UI
  meters:
    grid: grid1 # grid meter
    pv: pv1
    # pv:
    #   - pv # list of pv inverters/ meters
    # battery:
    #   - battery # list of battery meters
    # aux:
    #   - aux # list of auxiliary meters for adjusting grid operating point
  #residualPower: 0     #(original) additional household usage margin
  #residualPower: 0     #200    #100  #(summer)
  residualPower: -100  #-200 #(winter)
  # prioritySoc: 0 # give home battery priority up to this soc (empty to disable)
  # bufferSoc: 0 # continue charging on battery above soc (0 to disable)
  # bufferStartSoc: 0 # start charging on battery above soc (0 to disable)
  maxGridSupplyWhileBatteryCharging: 0 # ignore battery charging if AC consumption is above this value
  # smartCostLimit: 0 # set cost limit for automatic charging in PV mode

 
# loadpoint describes the charger, charge meter and connected vehicle
loadpoints:
  - title: Einfahrt # display name for UI
    charger: wallbox1 # charger
    # meter: charge # charge meter
    mode: pv   # minpv  # set default charge mode, use "off" to disable by default if charger is publicly available
    vehicle: ev1 # set default vehicle (disables vehicle detection)
    # resetOnDisconnect: true # set defaults when vehicle disconnects
    phases: 0   #3   #0 # electrical connection (normal charger: default 3 for 3 phase, 1p3p charger: 0 for "auto" or 1/3 for fixed phases)
    # minCurrent: 6 # minimum charge current (default 6A)
    # maxCurrent: 16 # maximum charge current (default 16A)

    # remaining settings are experts-only and best left at default values
    priority: 0 # relative priority for concurrent charging in PV mode with multiple loadpoints (higher values have higher priority)
    soc:
      # polling defines usage of the vehicle APIs
      # Modifying the default settings it NOT recommended. It MAY deplete your vehicle's battery
      # or lead to vehicle manufacturer banning you from API use. USE AT YOUR OWN RISK.
      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: always    #charging
        # poll interval defines how often the vehicle API may be polled if NOT charging
        interval: 60m
      estimate: true # set false to disable interpolating between api updates (not recommended)
    enable: # pv mode enable behavior
      delay: 2m         #1m # threshold must be exceeded for this long
      #threshold: 0     #(original) grid power threshold (in Watts, negative=export). If zero, export must exceed minimum charge power to enable
      threshold: -444   #-800   #(winter)
      #threshold: -1000          #(summer)
    disable: # pv mode disable behavior
      delay: 5m         # 3m # threshold must be exceeded for this long
      #threshold: 0     #(original) maximum import power (W)
      threshold: 999    #500    #(winter)
      #threshold: 500            #(summer)
    guardDuration: 10m # 5m # switch charger contactor not more often than this (default 5m)

    
   
  
  
  # tariffs are the fixed or variable tariffs
tariffs:
  currency: EUR # three letter ISO-4217 currency code (default EUR)
  grid:
    # either static grid price (or price zones)
    type: fixed
    price: 0.2797       #0.2961  #0.2797  #0.312  #0.355 # EUR/kWh
#    zones:
#      - days: Mo-So
#        hours: 0-6
#        price: 0.2797   #0.2961  #0.2797  #0.312  #0.2455 # EUR/kWh
#      - days: Mo-So
#        hours: 22-0
#        price: 0.2797   #0.2961  #0.2797  #0.312  #0.2455 # EUR/kWh

    # or variable tariffs
    # type: tibber
    # token: "476c477d8a039529478ebd690d35ddd80e3308ffc49b59c65b142321aee963a4" # access token
    # homeid: "cc83e83e-8cbf-4595-9bf7-c3cf192f7d9c" # optional if multiple homes associated to account

    # type: awattar
    # region: de # optional, choose at for Austria
    # charges: # optional, additional charges per kWh
    # tax: # optional, additional tax (0.1 for 10%)

    # type: octopusenergy
    # tariff: AGILE-FLEX-22-11-25 # Tariff code
    # region: A # optional

    # type: elering # Nordpool
    # region: ee # or lt, lv, fi
    # charges: # optional, additional charges per kWh
    # tax: # optional, additional tax (0.1 for 10%)

    # type: energinet # Energinet using the price in DKK
    # region: dk1 # or dk2
    # charges: # optional, additional charges per kWh
    # tax: # optional, additional tax (0.1 for 10%)
  feedin:
    # rate for feeding excess (pv) energy to the grid
    type: fixed
    price: 0.1427 # EUR/kWh

    # type: octopusenergy
    # tariff: AGILE-FLEX-22-11-25 # Tariff code
    # region: A # optional
  co2:
    # co2 tariff provides co2 intensity forecast and is for co2-optimized target charging if no variable grid tariff is specified
    type: template
    template: grünstromindex # GrünStromIndex (Germany only)
    zip: "07552"

#    type: template
#    template: electricitymaps-free
#    token: zY0tUv1U6IjgMYW6TbgO
#    zone: DE

    # type: electricitymaps # https://app.electricitymaps.com/map
    # uri: <uri>
    # token: <token>
    # zone: DE

    # type: ngeso # National Grid Electricity System Operator data (United Kingdom only) https://carbonintensity.org.uk/
    # provides national data if both region and postcode are omitted - do not supply both at the same time!
    # region: 1 # optional, coarser than using a postcode - see https://api.carbonintensity.org.uk/ for full list
    # postcode: SW1A1AA # optional

  planner:
    type: fixed
    price: 0.2797


# mqtt message broker
mqtt:
  # broker: localhost:1883
  # topic: evcc # root topic for publishing, set empty to disable
  # user:
  # password:

# influx database
influx:
  # url: http://localhost:8086
  # database: evcc
  # user:
  # password:

# eebus credentials
eebus:
  # uri: # :4712
  # interfaces: # limit eebus to specific network interfaces
  # - en0
  # certificate: # local signed certificate, required, can be generated via `evcc eebus-cert`
  #   public: # public key
  #   private: # private key

# push messages
messaging:
  events:
    start: # charge start event
      title: Charge started
      msg: Started charging in "${mode}" mode
    stop: # charge stop event
      title: Charge finished
      msg: Finished charging ${chargedEnergy:%.1fk}kWh in ${chargeDuration}.
    connect: # vehicle connect event
      title: Car connected
      msg: "Car connected at ${pvPower:%.1fk}kW PV"
    disconnect: # vehicle connected event
      title: Car disconnected
      msg: Car disconnected after ${connectedDuration}
    soc: # vehicle soc update event
      title: Soc updated
      msg: Battery charged to ${vehicleSoc:%.0f}%
    guest: # vehicle could not be identified
      title: Unknown vehicle
      msg: Unknown vehicle, guest connected?
  services:
  # - type: pushover
  #   app: # app id
  #   recipients:
  #   - # list of recipient ids
  # - type: telegram
  #   token: # bot id
  #   chats:
  #   - # list of chat ids
  # - type: email
  #   uri: smtp://<user>:<password>@<host>:<port>/?fromAddress=<from>&toAddresses=<to>
  # - type: ntfy
  #   uri: https://<host>/<topics>
  #   priority: <priority>
  #   tags: <tags> 

Log details

[site  ] DEBUG 2025/02/04 19:33:10 ----
[lp-1  ] DEBUG 2025/02/04 19:33:10 charge power: 0W
[lp-1  ] DEBUG 2025/02/04 19:33:10 charge currents: [0 0 0]A
[script] DEBUG 2025/02/04 19:33:10 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 19:33:10 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 19:33:11 grid power: 348W
[site  ] DEBUG 2025/02/04 19:33:11 grid currents: [0.692 0.852 0.679]A
[site  ] DEBUG 2025/02/04 19:33:11 site power: 248W
[lp-1  ] DEBUG 2025/02/04 19:33:11 charge total import: 9140.172kWh
[lp-1  ] DEBUG 2025/02/04 19:33:11 charger status: A
[lp-1  ] DEBUG 2025/02/04 19:33:11 next soc poll remaining time: 34m20s
[lp-1  ] DEBUG 2025/02/04 19:33:11 plan: charge 3h3m53s between 2025-02-05 04:26:07 +0100 CET until 2025-02-05 07:30:00 +0100 CET (power: 11040W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 19:33:28 set phases: 0
[site  ] DEBUG 2025/02/04 19:33:28 ----
[lp-1  ] DEBUG 2025/02/04 19:33:28 charge power: 0W
[lp-1  ] DEBUG 2025/02/04 19:33:28 charge currents: [0 0 0]A
[script] DEBUG 2025/02/04 19:33:28 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 19:33:28 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 19:33:29 grid power: 378W
[site  ] DEBUG 2025/02/04 19:33:29 grid currents: [0.805 0.848 0.705]A
[site  ] DEBUG 2025/02/04 19:33:29 site power: 278W
[lp-1  ] DEBUG 2025/02/04 19:33:29 charge total import: 9140.172kWh
[lp-1  ] DEBUG 2025/02/04 19:33:29 charger status: A
[lp-1  ] DEBUG 2025/02/04 19:33:29 next soc poll remaining time: 34m1s
[lp-1  ] DEBUG 2025/02/04 19:33:29 plan: charge 3h3m53s between 2025-02-05 04:26:07 +0100 CET until 2025-02-05 07:30:00 +0100 CET (power: 11040W, avg cost: 0.280)
[site  ] DEBUG 2025/02/04 19:33:30 ----

...

[site  ] DEBUG 2025/02/04 19:45:30 ----
[lp-1  ] DEBUG 2025/02/04 19:45:30 charge power: 0W
[lp-1  ] DEBUG 2025/02/04 19:45:30 charge currents: [0 0 0]A
[script] DEBUG 2025/02/04 19:45:30 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 19:45:30 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 19:45:31 grid power: 392W
[site  ] DEBUG 2025/02/04 19:45:31 grid currents: [0.527 1.05 0.571]A
[site  ] DEBUG 2025/02/04 19:45:31 site power: 292W
[lp-1  ] DEBUG 2025/02/04 19:45:31 charge total import: 9140.172kWh
[lp-1  ] DEBUG 2025/02/04 19:45:31 charger status: A
[lp-1  ] DEBUG 2025/02/04 19:45:31 next soc poll remaining time: 22m0s
[lp-1  ] DEBUG 2025/02/04 19:45:31 plan: charge 3h3m53s between 2025-02-05 04:26:07 +0100 CET until 2025-02-05 07:30:00 +0100 CET (power: 11040W, avg cost: 0.280)
[site  ] DEBUG 2025/02/04 19:45:50 ----
[lp-1  ] DEBUG 2025/02/04 19:45:50 charge power: 0W
[lp-1  ] DEBUG 2025/02/04 19:45:50 charge currents: [0 0 0]A
[script] DEBUG 2025/02/04 19:45:50 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 19:45:50 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 19:45:51 grid power: 386W
[site  ] DEBUG 2025/02/04 19:45:51 grid currents: [0.529 1.01 0.604]A
[site  ] DEBUG 2025/02/04 19:45:51 site power: 286W
[lp-1  ] DEBUG 2025/02/04 19:45:51 charge total import: 9140.172kWh
[lp-1  ] DEBUG 2025/02/04 19:45:51 charger status: B
[lp-1  ] INFO 2025/02/04 19:45:51 car connected
[lp-1  ] DEBUG 2025/02/04 19:45:51 pv timer elapse
[lp-1  ] DEBUG 2025/02/04 19:45:51 pv timer inactive
[lp-1  ] DEBUG 2025/02/04 19:45:51 charge total import: 9140.172kWh
[nissan] TRACE 2025/02/04 19:45:51 GET https://alliance-platform-caradapter-prod.apps.eu2.kamereon.io/car-adapter/v2/cars/***/battery-status
[nissan] TRACE 2025/02/04 19:45:51 {"id":"***","timestamp":"2025-02-04T18:45:49Z","batteryLevel":13,"batteryAutonomy":49,"batteryCapacity":87,"batteryAvailableEnergy":12,"plugStatus":1,"chargingStatus":0.4,"chargingRemainingTime":655}
[lp-1  ] DEBUG 2025/02/04 19:45:51 vehicle status: B
[lp-1  ] DEBUG 2025/02/04 19:45:51 vehicle soc: 13%
[lp-1  ] DEBUG 2025/02/04 19:45:51 vehicle range: 49km
[lp-1  ] DEBUG 2025/02/04 19:45:51 plan: charge 4h6m55s between 2025-02-05 03:23:05 +0100 CET until 2025-02-05 07:30:00 +0100 CET (power: 11040W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 19:45:51 forced charging at vehicle soc 13% (< 30% min soc)
[lp-1  ] DEBUG 2025/02/04 19:45:51 max charge current: 16A
[lp-1  ] DEBUG 2025/02/04 19:45:51 charger enable
[lp-1  ] DEBUG 2025/02/04 19:45:51 wake-up timer: start
[site  ] DEBUG 2025/02/04 19:46:10 ----
[lp-1  ] DEBUG 2025/02/04 19:46:10 charge power: 3451W
[lp-1  ] DEBUG 2025/02/04 19:46:10 charge currents: [14.9 0 0]A
[script] DEBUG 2025/02/04 19:46:10 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 19:46:10 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 19:46:11 grid power: 3909W
[site  ] DEBUG 2025/02/04 19:46:11 grid currents: [15.3 1.05 0.583]A
[site  ] DEBUG 2025/02/04 19:46:11 site power: 3809W
[lp-1  ] DEBUG 2025/02/04 19:46:11 charge total import: 9140.176kWh
[lp-1  ] DEBUG 2025/02/04 19:46:11 charger status: C
[lp-1  ] INFO 2025/02/04 19:46:11 start charging ->
[lp-1  ] DEBUG 2025/02/04 19:46:11 wake-up timer: stop
[db    ] TRACE 2025/02/04 19:46:11 INSERT INTO `sessions` (`created`,`finished`,`loadpoint`,`identifier`,`vehicle`,`odometer`,`meter_start_kwh`,`meter_end_kwh`,`charged_kwh`,`charge_duration`,`solar_percentage`,`price`,`price_per_kwh`,`co2_per_kwh`) VALUES ("2025-02-04 19:46:11.043","0000-00-00 00:00:00","Einfahrt","","Ariya",NULL,9140.172,NULL,0,NULL,NULL,NULL,NULL,NULL) RETURNING `id` 1 <nil>
[lp-1  ] DEBUG 2025/02/04 19:46:11 charger vehicle id: P-543-Test                              
[lp-1  ] DEBUG 2025/02/04 19:46:11 soc estimated: 13.00% (vehicle: 13.00%)
[lp-1  ] DEBUG 2025/02/04 19:46:11 vehicle soc: 13%
[lp-1  ] DEBUG 2025/02/04 19:46:11 vehicle range: 49km
[lp-1  ] DEBUG 2025/02/04 19:46:11 plan: charge 4h6m54s between 2025-02-05 03:23:06 +0100 CET until 2025-02-05 07:30:00 +0100 CET (power: 11040W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 19:46:11 forced charging at vehicle soc 13% (< 30% min soc)
[site  ] DEBUG 2025/02/04 19:46:30 ----
[lp-1  ] DEBUG 2025/02/04 19:46:30 charge power: 3429W
[lp-1  ] DEBUG 2025/02/04 19:46:30 charge currents: [14.9 0 0]A
[lp-1  ] DEBUG 2025/02/04 19:46:30 forced charging at vehicle soc 13% (< 30% min soc)
[script] DEBUG 2025/02/04 19:46:30 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 19:46:30 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 19:46:31 grid power: 3894W
[site  ] DEBUG 2025/02/04 19:46:31 grid currents: [15.3 0.994 0.571]A
[site  ] DEBUG 2025/02/04 19:46:31 site power: 3794W
[lp-1  ] DEBUG 2025/02/04 19:46:31 detected active phases: 1p
[lp-1  ] DEBUG 2025/02/04 19:46:31 charge total import: 9140.195kWh
[lp-1  ] DEBUG 2025/02/04 19:46:31 charger status: C
[lp-1  ] DEBUG 2025/02/04 19:46:31 soc estimated: 13.02% (vehicle: 13.00%)
[lp-1  ] DEBUG 2025/02/04 19:46:31 vehicle soc: 13%
[lp-1  ] DEBUG 2025/02/04 19:46:31 vehicle range: 49km
[lp-1  ] DEBUG 2025/02/04 19:46:31 plan: charge 12h20m24s between 2025-02-04 19:46:31 +0100 CET until 2025-02-05 07:30:00 +0100 CET (overruns by 36m55s, power: 3680W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 19:46:31 forced charging at vehicle soc 13% (< 30% min soc)
[site  ] DEBUG 2025/02/04 19:46:50 ----
[lp-1  ] DEBUG 2025/02/04 19:46:50 charge power: 3449W
[lp-1  ] DEBUG 2025/02/04 19:46:50 charge currents: [14.9 0 0]A
[lp-1  ] DEBUG 2025/02/04 19:46:50 forced charging at vehicle soc 13% (< 30% min soc)
[script] DEBUG 2025/02/04 19:46:51 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 19:46:51 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 19:46:51 grid power: 3914W
[site  ] DEBUG 2025/02/04 19:46:51 grid currents: [15.3 1.05 0.602]A
[site  ] DEBUG 2025/02/04 19:46:51 site power: 3814W
[lp-1  ] DEBUG 2025/02/04 19:46:51 detected active phases: 1p
[lp-1  ] DEBUG 2025/02/04 19:46:51 charge total import: 9140.214kWh
[lp-1  ] DEBUG 2025/02/04 19:46:51 charger status: C
[lp-1  ] DEBUG 2025/02/04 19:46:51 soc estimated: 13.04% (vehicle: 13.00%)
[lp-1  ] DEBUG 2025/02/04 19:46:51 vehicle soc: 13%
[lp-1  ] DEBUG 2025/02/04 19:46:51 vehicle range: 49km
[lp-1  ] DEBUG 2025/02/04 19:46:51 plan: charge 12h20m6s between 2025-02-04 19:46:51 +0100 CET until 2025-02-05 07:30:00 +0100 CET (overruns by 36m57s, power: 3680W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 19:46:51 forced charging at vehicle soc 13% (< 30% min soc)
[site  ] DEBUG 2025/02/04 19:47:10 ----

...

[site  ] DEBUG 2025/02/04 20:14:50 ----
[lp-1  ] DEBUG 2025/02/04 20:14:50 charge power: 3439W
[lp-1  ] DEBUG 2025/02/04 20:14:50 charge currents: [14.8 0 0]A
[lp-1  ] DEBUG 2025/02/04 20:14:50 forced charging at vehicle soc 14% (< 30% min soc)
[script] DEBUG 2025/02/04 20:14:51 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 20:14:51 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 20:14:51 grid power: 3777W
[site  ] DEBUG 2025/02/04 20:14:51 grid currents: [15.3 0.758 0.611]A
[site  ] DEBUG 2025/02/04 20:14:51 site power: 3677W
[lp-1  ] DEBUG 2025/02/04 20:14:51 detected active phases: 1p
[lp-1  ] DEBUG 2025/02/04 20:14:51 charge total import: 9141.814kWh
[lp-1  ] DEBUG 2025/02/04 20:14:51 charger status: C
[lp-1  ] DEBUG 2025/02/04 20:14:51 soc estimated: 14.45% (vehicle: 14.00%)
[lp-1  ] DEBUG 2025/02/04 20:14:51 vehicle soc: 14%
[lp-1  ] DEBUG 2025/02/04 20:14:51 vehicle range: 53km
[lp-1  ] DEBUG 2025/02/04 20:14:51 plan: charge 11h57m53s between 2025-02-04 20:14:51 +0100 CET until 2025-02-05 07:30:00 +0100 CET (overruns by 42m44s, power: 3680W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 20:14:51 forced charging at vehicle soc 14% (< 30% min soc)
[site  ] DEBUG 2025/02/04 20:15:10 ----
[lp-1  ] DEBUG 2025/02/04 20:15:10 charge power: 3439W
[lp-1  ] DEBUG 2025/02/04 20:15:10 charge currents: [14.9 0 0]A
[lp-1  ] DEBUG 2025/02/04 20:15:10 forced charging at vehicle soc 14% (< 30% min soc)
[script] DEBUG 2025/02/04 20:15:11 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 20:15:11 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 20:15:11 grid power: 3803W
[site  ] DEBUG 2025/02/04 20:15:11 grid currents: [15.4 0.735 0.609]A
[site  ] DEBUG 2025/02/04 20:15:11 site power: 3703W
[lp-1  ] DEBUG 2025/02/04 20:15:11 detected active phases: 1p
[lp-1  ] DEBUG 2025/02/04 20:15:11 charge total import: 9141.833kWh
[lp-1  ] DEBUG 2025/02/04 20:15:11 charger status: C
[lp-1  ] DEBUG 2025/02/04 20:15:11 soc estimated: 14.47% (vehicle: 14.00%)
[lp-1  ] DEBUG 2025/02/04 20:15:11 vehicle soc: 14%
[lp-1  ] DEBUG 2025/02/04 20:15:11 vehicle range: 53km
[lp-1  ] DEBUG 2025/02/04 20:15:11 plan: charge 11h57m33s between 2025-02-04 20:15:11 +0100 CET until 2025-02-05 07:30:00 +0100 CET (overruns by 42m44s, power: 3680W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 20:15:11 forced charging at vehicle soc 14% (< 30% min soc)
[site  ] DEBUG 2025/02/04 20:15:30 ----
[lp-1  ] DEBUG 2025/02/04 20:15:30 charge power: 3440W
[lp-1  ] DEBUG 2025/02/04 20:15:30 charge currents: [14.9 0 0]A
[lp-1  ] DEBUG 2025/02/04 20:15:30 forced charging at vehicle soc 14% (< 30% min soc)
[script] DEBUG 2025/02/04 20:15:30 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 20:15:30 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 20:15:31 grid power: 3814W
[site  ] DEBUG 2025/02/04 20:15:31 grid currents: [15.3 0.827 0.611]A
[site  ] DEBUG 2025/02/04 20:15:31 site power: 3714W
[lp-1  ] DEBUG 2025/02/04 20:15:31 detected active phases: 1p
[lp-1  ] DEBUG 2025/02/04 20:15:31 charge total import: 9141.852kWh
[lp-1  ] DEBUG 2025/02/04 20:15:31 charger status: C
[lp-1  ] DEBUG 2025/02/04 20:15:31 soc estimated: 14.49% (vehicle: 14.00%)
[lp-1  ] DEBUG 2025/02/04 20:15:31 vehicle soc: 14%
[lp-1  ] DEBUG 2025/02/04 20:15:31 vehicle range: 53km
[lp-1  ] DEBUG 2025/02/04 20:15:31 plan: charge 11h57m14s between 2025-02-04 20:15:31 +0100 CET until 2025-02-05 07:30:00 +0100 CET (overruns by 42m45s, power: 3680W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 20:15:31 forced charging at vehicle soc 14% (< 30% min soc)
[lp-1  ] DEBUG 2025/02/04 20:15:47 set phases: 3
[site  ] DEBUG 2025/02/04 20:15:47 ----
[lp-1  ] DEBUG 2025/02/04 20:15:47 charge power: 3407W
[lp-1  ] DEBUG 2025/02/04 20:15:47 charge currents: [14.9 0 0]A
[lp-1  ] DEBUG 2025/02/04 20:15:47 forced charging at vehicle soc 14% (< 30% min soc)
[script] DEBUG 2025/02/04 20:15:47 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 20:15:47 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 20:15:47 grid power: 3812W
[site  ] DEBUG 2025/02/04 20:15:47 grid currents: [15.3 0.854 0.575]A
[site  ] DEBUG 2025/02/04 20:15:47 site power: 3712W
[lp-1  ] DEBUG 2025/02/04 20:15:47 detected active phases: 1p
[lp-1  ] DEBUG 2025/02/04 20:15:47 charge total import: 9141.868kWh
[lp-1  ] DEBUG 2025/02/04 20:15:47 charger status: C
[lp-1  ] DEBUG 2025/02/04 20:15:47 soc estimated: 14.51% (vehicle: 14.00%)
[lp-1  ] DEBUG 2025/02/04 20:15:47 vehicle soc: 15%
[lp-1  ] DEBUG 2025/02/04 20:15:47 vehicle range: 53km
[lp-1  ] DEBUG 2025/02/04 20:15:47 plan: charge 11h57m0s between 2025-02-04 20:15:48 +0100 CET until 2025-02-05 07:30:00 +0100 CET (overruns by 42m48s, power: 3680W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 20:15:47 forced charging at vehicle soc 15% (< 30% min soc)
[site  ] DEBUG 2025/02/04 20:15:50 ----
[lp-1  ] DEBUG 2025/02/04 20:15:50 charge power: 3426W
[lp-1  ] DEBUG 2025/02/04 20:15:50 charge currents: [14.9 0 0]A
[lp-1  ] DEBUG 2025/02/04 20:15:50 forced charging at vehicle soc 15% (< 30% min soc)
[script] DEBUG 2025/02/04 20:15:50 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 20:15:50 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 20:15:51 grid power: 3816W
[site  ] DEBUG 2025/02/04 20:15:51 grid currents: [15.3 0.85 0.577]A
[site  ] DEBUG 2025/02/04 20:15:51 site power: 3716W
[lp-1  ] DEBUG 2025/02/04 20:15:51 detected active phases: 1p
[lp-1  ] DEBUG 2025/02/04 20:15:51 charge total import: 9141.871kWh
[lp-1  ] DEBUG 2025/02/04 20:15:51 charger status: C
[lp-1  ] DEBUG 2025/02/04 20:15:51 soc estimated: 14.51% (vehicle: 14.00%)
[lp-1  ] DEBUG 2025/02/04 20:15:51 vehicle soc: 15%
[lp-1  ] DEBUG 2025/02/04 20:15:51 vehicle range: 53km
[lp-1  ] DEBUG 2025/02/04 20:15:51 plan: charge 11h56m57s between 2025-02-04 20:15:51 +0100 CET until 2025-02-05 07:30:00 +0100 CET (overruns by 42m48s, power: 3680W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 20:15:51 forced charging at vehicle soc 15% (< 30% min soc)
[lp-1  ] DEBUG 2025/02/04 20:15:53 set phases: 1
[site  ] DEBUG 2025/02/04 20:15:53 ----
[lp-1  ] DEBUG 2025/02/04 20:15:53 charge power: 3412W
[lp-1  ] DEBUG 2025/02/04 20:15:53 charge currents: [14.9 0 0]A
[lp-1  ] DEBUG 2025/02/04 20:15:53 forced charging at vehicle soc 15% (< 30% min soc)
[script] DEBUG 2025/02/04 20:15:53 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 20:15:53 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 20:15:53 grid power: 3815W
[site  ] DEBUG 2025/02/04 20:15:53 grid currents: [15.3 0.855 0.577]A
[site  ] DEBUG 2025/02/04 20:15:53 site power: 3715W
[lp-1  ] DEBUG 2025/02/04 20:15:53 detected active phases: 1p
[lp-1  ] DEBUG 2025/02/04 20:15:53 charge total import: 9141.874kWh
[lp-1  ] DEBUG 2025/02/04 20:15:53 charger status: C
[lp-1  ] DEBUG 2025/02/04 20:15:53 soc estimated: 14.51% (vehicle: 14.00%)
[lp-1  ] DEBUG 2025/02/04 20:15:53 vehicle soc: 15%
[lp-1  ] DEBUG 2025/02/04 20:15:53 vehicle range: 53km
[lp-1  ] DEBUG 2025/02/04 20:15:53 plan: charge 11h56m54s between 2025-02-04 20:15:54 +0100 CET until 2025-02-05 07:30:00 +0100 CET (overruns by 42m48s, power: 3680W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 20:15:55 set phases: 0
[lp-1  ] DEBUG 2025/02/04 20:16:00 switched phases: 1p
[site  ] DEBUG 2025/02/04 20:16:00 ----
[lp-1  ] DEBUG 2025/02/04 20:16:00 charge power: 0W
[lp-1  ] DEBUG 2025/02/04 20:16:00 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2025/02/04 20:16:00 forced charging at vehicle soc 15% (< 30% min soc)
[site  ] DEBUG 2025/02/04 20:16:01 grid power: 316W
[site  ] DEBUG 2025/02/04 20:16:01 grid currents: [0.569 0.847 0.609]A
[script] DEBUG 2025/02/04 20:16:01 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 20:16:01 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 20:16:01 site power: 216W
[lp-1  ] DEBUG 2025/02/04 20:16:01 charge total import: 9141.875kWh
[lp-1  ] DEBUG 2025/02/04 20:16:01 charger status: B
[lp-1  ] INFO 2025/02/04 20:16:01 stop charging <-
[lp-1  ] DEBUG 2025/02/04 20:16:01 wake-up timer: start
[lp-1  ] DEBUG 2025/02/04 20:16:01 charge total import: 9141.875kWh
[db    ] TRACE 2025/02/04 20:16:01 UPDATE `sessions` SET `created`="2025-02-04 19:46:11.043",`finished`="2025-02-04 20:16:01.217",`loadpoint`="Einfahrt",`identifier`="",`vehicle`="Ariya",`odometer`=NULL,`meter_start_kwh`=9140.172,`meter_end_kwh`=9141.875,`charged_kwh`=1.701,`charge_duration`="29m50s",`solar_percentage`=0,`price`=0.4757697000000002,`price_per_kwh`=0.2797000000000001,`co2_per_kwh`=213.6137566137567 WHERE `id` = 432 1 <nil>
[nissan] TRACE 2025/02/04 20:16:01 GET https://alliance-platform-caradapter-prod.apps.eu2.kamereon.io/car-adapter/v2/cars/***/battery-status
[nissan] TRACE 2025/02/04 20:16:01 {"id":"***","timestamp":"2025-02-04T19:15:54Z","batteryLevel":14,"batteryAutonomy":53,"batteryCapacity":87,"batteryAvailableEnergy":14,"plugStatus":1,"chargingStatus":0.0,"chargingRemainingTime":1329}
[lp-1  ] DEBUG 2025/02/04 20:16:01 soc estimated: 14.51% (vehicle: 14.00%)
[lp-1  ] DEBUG 2025/02/04 20:16:01 vehicle soc: 15%
[lp-1  ] DEBUG 2025/02/04 20:16:01 vehicle range: 53km
[lp-1  ] DEBUG 2025/02/04 20:16:01 plan: charge 3h58m58s between 2025-02-05 03:31:02 +0100 CET until 2025-02-05 07:30:00 +0100 CET (power: 11040W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 20:16:01 plan: continuing until end of slot
[lp-1  ] DEBUG 2025/02/04 20:16:01 forced charging at vehicle soc 15% (< 30% min soc)
[lp-1  ] DEBUG 2025/02/04 20:16:08 switched phases: 3p
[site  ] DEBUG 2025/02/04 20:16:10 ----
[lp-1  ] DEBUG 2025/02/04 20:16:10 charge power: 0W
[lp-1  ] DEBUG 2025/02/04 20:16:10 charge currents: [0 0 0]A
[script] DEBUG 2025/02/04 20:16:10 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 20:16:10 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 20:16:11 grid power: 314W
[site  ] DEBUG 2025/02/04 20:16:11 grid currents: [0.575 0.853 0.597]A
[site  ] DEBUG 2025/02/04 20:16:11 site power: 214W
[lp-1  ] DEBUG 2025/02/04 20:16:11 charge total import: 9141.875kWh
[lp-1  ] DEBUG 2025/02/04 20:16:11 charger status: B
[lp-1  ] DEBUG 2025/02/04 20:16:11 next soc poll remaining time: 59m50s
[lp-1  ] DEBUG 2025/02/04 20:16:11 plan: charge 3h58m58s between 2025-02-05 03:31:02 +0100 CET until 2025-02-05 07:30:00 +0100 CET (power: 11040W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 20:16:11 plan: continuing until end of slot
[lp-1  ] DEBUG 2025/02/04 20:16:11 forced charging at vehicle soc 15% (< 30% min soc)
[site  ] DEBUG 2025/02/04 20:16:30 ----
[lp-1  ] DEBUG 2025/02/04 20:16:30 charge power: 10595W
[lp-1  ] DEBUG 2025/02/04 20:16:30 charge currents: [15.2 15.1 15.1]A
[script] DEBUG 2025/02/04 20:16:30 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 20:16:30 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 20:16:31 grid power: 10987W
[site  ] DEBUG 2025/02/04 20:16:31 grid currents: [15.6 15.7 15.5]A
[site  ] DEBUG 2025/02/04 20:16:31 site power: 10887W
[lp-1  ] DEBUG 2025/02/04 20:16:31 charge total import: 9141.911kWh
[lp-1  ] DEBUG 2025/02/04 20:16:31 charger status: C
[lp-1  ] INFO 2025/02/04 20:16:31 start charging ->
[lp-1  ] DEBUG 2025/02/04 20:16:31 wake-up timer: stop
[db    ] TRACE 2025/02/04 20:16:31 UPDATE `sessions` SET `created`="2025-02-04 19:46:11.043",`finished`="2025-02-04 20:16:01.217",`loadpoint`="Einfahrt",`identifier`="",`vehicle`="Ariya",`odometer`=NULL,`meter_start_kwh`=9140.172,`meter_end_kwh`=9141.875,`charged_kwh`=1.701,`charge_duration`="29m50s",`solar_percentage`=0,`price`=0.4757697000000002,`price_per_kwh`=0.2797000000000001,`co2_per_kwh`=213.6137566137567 WHERE `id` = 432 1 <nil>
[lp-1  ] DEBUG 2025/02/04 20:16:31 soc estimated: 14.55% (vehicle: 14.00%)
[lp-1  ] DEBUG 2025/02/04 20:16:31 vehicle soc: 15%
[lp-1  ] DEBUG 2025/02/04 20:16:31 vehicle range: 53km
[lp-1  ] DEBUG 2025/02/04 20:16:31 plan: charge 3h58m46s between 2025-02-05 03:31:14 +0100 CET until 2025-02-05 07:30:00 +0100 CET (power: 11040W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 20:16:31 plan: continuing until end of slot
[lp-1  ] DEBUG 2025/02/04 20:16:31 forced charging at vehicle soc 15% (< 30% min soc)
[db    ] TRACE 2025/02/04 20:16:32 INSERT INTO `settings` (`key`,`value`) VALUES ("savings.started","2023-10-05T10:05:17+02:00"),("savings.gridCharged","423.075212018717"),("savings.gridCost","133.8678684231701"),("savings.gridSavedCost","7.140685711261891"),("savings.selfConsumptionCharged","40.56666730025957"),("savings.selfConsumptionCost","5.787900641499003"),("vehicle.0.targetSoc","95"),("vehicle.0.targetEnergy","80"),("vehicle.0.minSoc","40"),("vehicle.0.targetTime","0001-01-01T00:00:00Z"),("vehicle.1.targetSoc","75"),("vehicle.1.targetEnergy","0"),("vehicle.1.minSoc","0"),("vehicle.1.targetTime","0001-01-01T00:00:00Z"),("telemetry","true"),("vehicle.ev1.planTime","2025-02-05T06:30:00Z"),("vehicle.ev1.planSoc","60"),("lp1.mode","pv"),("lp1.limitSoc","0"),("vehicle.ev1.minSoc","30"),("vehicle.ev1.limitSoc","90"),("lp1.planEnergy","0"),("lp1.planTime","0001-01-01T00:00:00Z"),("smartCostLimit","0"),("lp1.minCurrent","6"),("lp1.maxCurrent","16"),("lp1.phasesConfigured","0"),("lp1.smartCostLimit",""),("adminPassword","$2a$10$.CSjTf2f4sRYiiSvsY2y7Ol9QTd4F4/wyyfrynfJHOH0hjZfMZ2eG"),("jwtSecretKey","bcbadc169f75b205ee8158258cc745fa8c28ede856590146d4c73b2104b6f5e8"),("lp1.limitEnergy","0"),("vehicle.ev1.repeatingPlans","[{""weekdays"":[1,4,2,3],""time"":""07:00"",""tz"":""Europe/Berlin"",""soc"":85,""active"":false},{""weekdays"":[5],""time"":""07:00"",""tz"":""Europe/Berlin"",""soc"":50,""active"":false}]") ON CONFLICT (`key`) DO UPDATE SET `value`=`excluded`.`value` 32 <nil>
[site  ] DEBUG 2025/02/04 20:16:50 ----
[lp-1  ] DEBUG 2025/02/04 20:16:50 charge power: 10599W
[lp-1  ] DEBUG 2025/02/04 20:16:50 charge currents: [15.2 15.1 15.1]A
[lp-1  ] DEBUG 2025/02/04 20:16:50 forced charging at vehicle soc 15% (< 30% min soc)
[script] DEBUG 2025/02/04 20:16:50 /fupcService/pvCurrentPower.bat: 0
[site  ] DEBUG 2025/02/04 20:16:50 pv 1 power: 0W
[site  ] DEBUG 2025/02/04 20:16:51 grid power: 11124W
[site  ] DEBUG 2025/02/04 20:16:51 grid currents: [16.2 15.7 15.5]A
[site  ] DEBUG 2025/02/04 20:16:51 site power: 11024W
[lp-1  ] DEBUG 2025/02/04 20:16:51 charge total import: 9141.970kWh
[lp-1  ] DEBUG 2025/02/04 20:16:51 charger status: C
[lp-1  ] DEBUG 2025/02/04 20:16:51 soc estimated: 14.61% (vehicle: 14.00%)
[lp-1  ] DEBUG 2025/02/04 20:16:51 vehicle soc: 15%
[lp-1  ] DEBUG 2025/02/04 20:16:51 vehicle range: 53km
[lp-1  ] DEBUG 2025/02/04 20:16:51 plan: charge 3h58m27s between 2025-02-05 03:31:33 +0100 CET until 2025-02-05 07:30:00 +0100 CET (power: 11040W, avg cost: 0.280)
[lp-1  ] DEBUG 2025/02/04 20:16:51 plan: continuing until end of slot
[lp-1  ] DEBUG 2025/02/04 20:16:51 forced charging at vehicle soc 15% (< 30% min soc)
[site  ] DEBUG 2025/02/04 20:17:10 ----

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

Windows

External automation

  • 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

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

Version

0.133.0

@andig andig self-assigned this Feb 5, 2025
@andig andig added the question Rather clarification than issue label Feb 5, 2025
@andig
Copy link
Member

andig commented Feb 5, 2025

Missing config

@andig andig closed this as completed Feb 5, 2025
@An-Wi
Copy link
Author

An-Wi commented Feb 5, 2025

Config ergänzt in Beschreibung oben...
Sorry - dachte nicht, dass sie wichtig ist für dieses Problem.

@andig andig reopened this Feb 5, 2025
@andig
Copy link
Member

andig commented Feb 5, 2025

Laut Log

[lp-1  ] DEBUG 2025/02/04 19:45:51 forced charging at vehicle soc 13% (< 30% min soc)

passiert

	// minimum or target charging
	case lp.minSocNotReached() || plannerActive:
		err = lp.fastCharging()
		lp.resetPhaseTimer()
		lp.elapsePVTimer() // let PV mode disable immediately afterwards

wobei der erste Aufruf auf 3p schaltet. Davon zeigt das Log aber nichts. Das müsste hier passieren:

// scalePhasesIfAvailable scales if api.PhaseSwitcher is available
func (lp *Loadpoint) scalePhasesIfAvailable(phases int) error {
	if lp.configuredPhases != 0 {
		phases = lp.configuredPhases
	}

	if lp.hasPhaseSwitching() {
		return lp.scalePhases(phases)
	}

	return nil
}

@naltatis hältst Du es für möglich, dass mit den Phasen irgendwas prinzipiell kaputt ist?

@andig
Copy link
Member

andig commented Feb 5, 2025

@naltatis das sieht ähnlich aus wie #18606. Nur ist es hier v133- da war noch kein Config UI drin? Mit dieser Config ist der Charger ab Start immer auf 3p- was nicht sein sollte.

network:
  port: 7070

log: debug

interval: 3s

javascript:
  - vm: shared
    script: |
      state = {
        residualpower: 500,
        pvpower: 0,
        batterypower: 0,
        batterySoc: 55,
        gridpower: -1000,
        loadpoints: [
          { enabled: false, vehicleSoc: 0, maxcurrent: 6, phases: 1, chargepower: 0 },
          { enabled: false, vehicleSoc: 22, maxcurrent: 0, phases: 3, chargepower: 0 }
        ]
      };
      function logState() {
        console.log("state:", JSON.stringify(state));
      }

meters:
  - name: grid
    type: custom
    power:
      source: js
      vm: shared
      script: |
        state.gridpower = state.loadpoints[0].chargepower + state.loadpoints[1].chargepower + state.residualpower - batterypower - pvpower;
        state.gridpower;
      in:
        - name: pvpower
          type: float
          config:
            source: js
            vm: shared
            script: |
              state.pvpower = 8000+500*Math.random();
              state.pvpower
        - name: batterypower
          type: float
          config:
            source: js
            vm: shared
            script: |
              state.batterypower = state.gridpower > 0 ? 1000 * Math.random() : 0;
              state.batterypower

  - name: pv
    type: custom
    power:
      source: js
      vm: shared
      script: 0

  - name: battery
    type: custom
    power:
      source: js
      vm: shared
      script: state.batterypower;
    soc:
      source: js
      vm: shared
      script: |
        if (state.batterypower < 0) state.batterySoc++; else state.batterySoc--;
        if (state.batterySoc < 10) state.batterySoc = 90;
        if (state.batterySoc > 90) state.batterySoc = 10;
        state.batterySoc;
    capacity: 13.4
    batterymode:
      source: js
      vm: shared
      script: |
        1

  - name: meter_charger_1
    type: custom
    power:
      source: js
      vm: shared
      script: state.loadpoints[0].chargepower;

chargers:
  - name: charger_1
    type: custom
    enable:
      source: js
      vm: shared
      script: |
        logState();
        var lp = state.loadpoints[0];
        lp.enabled = enable;
        enable;
      out:
        - name: enable
          type: bool
          config:
            source: js
            vm: shared
            script: |
              if (enable) lp.chargepower = lp.maxcurrent * 230 * lp.phases; else lp.chargepower = 0;
    enabled:
      source: js
      vm: shared
      script: |
        state.loadpoints[0].enabled;
    status:
      source: js
      vm: shared
      script: |
        if (state.loadpoints[0].enabled) "C"; else "B";
    maxcurrent:
      source: js
      vm: shared
      script: |
        logState();
        var lp = state.loadpoints[0];
        lp.maxcurrent = maxcurrent;
        if (lp.enabled) lp.chargepower = lp.maxcurrent * 230 * lp.phases; else lp.chargepower = 0;
    Phases1p3p:
      source: js
      vm: shared
      script: |
        logState();
        lp.phases = phases
    Tos: true

vehicles:
  - name: vehicle_1
    title: blauer e-Golf
    type: custom
    soc:
      source: js
      vm: shared
      script: 10
    capacity: 44

site:
  title: Zuhause
  meters:
    grid: grid
    pv: pv
    battery: battery

loadpoints:
  - title: Carport
    charger: charger_1
    mode: pv
    meter: meter_charger_1
    vehicle: vehicle_1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants