evcc-io / evcc

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

Charging plan dont start with max load #14674

Closed mbuhansen closed 2 weeks ago

mbuhansen commented 2 weeks ago

Describe the bug

When i use planing in EVCC and mode is in SOL it only start charging with 10 amp and not 16 as i have set to max. Can see plan expect 3700 watt, but orbis charger is only set to 10 amp. If i change max changing rate from 16 amp to 17 amp and back to 16 when plan is running charger is raising charge to 16 amp.

I have see this a lot of time now.

Is this normal or a fail..??

Steps to reproduce

1. 2. 3. ...

Configuration details

network:
  schema: http
  host: 192.168.1.159
  port: 7070

interval: 30s # control cycle interval. Interval <30s can lead to unexpected behavior, see https://docs.evcc.io/docs/reference/configuration/interval

log: info
levels:
  site: debug
  lp-1: debug
  lp-2: debug
  cache: error
  db: error

meters:
  - name: grid
    type: template
    template: kostal-ksem
    usage: grid

    # Modbus TCP
    modbus: tcpip
    id: 71
    host: 192.168.1.221 # Hostname
    port: 502 # Port 

  - name: pv
    type: template
    template: kostal-plenticore
    usage: pv

    # Modbus TCP
    modbus: tcpip
    id: 71
    host: 192.168.1.116 # Hostname
    port: 1502 # Port

  - name: aux
    type: template
    template: thor
    usage: aux
    host: 192.168.1.90 # IP address or hostname

chargers:
  - name: orbis
    type: template
    template: orbis-viaris
    timeout: 5m # optional 

vehicles:
  - name: my_car
    type: template
    template: vw
    title: # Will be displayed in the user interface (optional)
    user: michaelbuskhansen@gmail.com # User account (e.g. email address, user id, etc.)
    password: 19Doserofa83 # Password of the user account (use single quotes in case of leading zeros)
    vin: WVWZZZ3CZJE094087 # Required if you own multiple vehicles of the same brand (optional)
    capacity: 10 # Battery capacity in kWh (optional)
    timeout: 10s # optional     

# site describes the EVU connection, PV and home battery
site:
  title: Home # display name for UI
  meters:
    grid: grid # grid meter
    pv:
      - pv # list of pv inverters/ meters
    aux:
      - aux # list of auxiliary meters for adjusting grid operating point
  residualPower: 0 # additional household usage margin
  maxGridSupplyWhileBatteryCharging: 0 # ignore battery charging if AC consumption is above this value

# loadpoint describes the charger, charge meter and connected vehicle
loadpoints:
  - title: Garage # display name for UI
    charger: orbis # charger
    mode: "pv" # default charge mode to apply when vehicle is disconnected; use "off" to disable by default if charger is publicly available

    # 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: connected
        # 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: 1m # threshold must be exceeded for this long
      threshold: 0 # grid power threshold (in Watts, negative=export). If zero, export must exceed minimum charge power to enable
    disable: # pv mode disable behavior
      delay: 3m # threshold must be exceeded for this long
      threshold: 0 # maximum import power (W)

# tariffs are the fixed or variable tariffs
tariffs:
  currency: DKK
  grid:
    type: fixed
    price: 1.18 # dkk/kWh
    zones:
      - days: Mo-So
        hours: 0-6
        price: 2.43 # dkk/kWh
      - days: Mo-So
        hours: 6-17
        price: 2.50 # dkk/kWh
      - days: Mo-So
        hours: 17-21
        price: 2.83 # dkk/kWh
      - days: Mo-So
        hours: 21-0
        price: 2.50 # dkk/kWh

    #type: custom
    #forecast:
    #  source: http
    #  uri: http://192.168.1.159:1880/endpoint/price
    #  jq: '[.timestamps, .prices] | transpose | map([{ "start": (.[0] | strptime("%Y-%m-%dT%H:%M:%S.%f%z") | strftime("%Y-%m-%dT%H:%M:%SZ")), "end": (.[0] | strptime("%Y-%m-%dT%H:%M:%S.%f%z") | mktime + 3600 | strftime("%Y-%m-%dT%H:%M:%SZ")), "price": .[1] }]) | tostring'

    # 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: entsoe # Entso-E european market data
    # domain: BZN|DE-LU # https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html#_areas
    # securitytoken: # api token
    # charges: # optional, additional charges per kWh
    # tax: # optional, additional tax (0.1 for 10%)

    # type: pun # PUN - Prezzo unico nazionale - Hourly Italian wholesale prices
    # charges: 0 # optional, additional charges per kWh
    # tax: 0 # optional, additional tax (0.1 for 10%)

    # type: amber
    # token: # api token from https://app.amber.com.au/developers/
    # siteid: # site ID returned by the API
    # channel: general

    # type: custom # price from a plugin source; see https://docs.evcc.io/docs/reference/plugins
    # price:
    #   source: http
    #   uri: https://example.org/price.json
    #   jq: .price.current

  feedin:
    type: energinet # Energinet using the price in DKK
    region: dk2 # or dk2
    #charges: # optional, additional charges per kWh
    #tax: # optional, additional tax (0.1 for 10%)    

    # rate for feeding excess (pv) energy to the grid
    #type: fixed
    #price: 0.08 # dkk/kWh

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

    # type: amber
    # token: # api token from https://app.amber.com.au/developers/
    # siteid: # site ID returned by the API
    # channel: feedIn
  co2:
    # co2 tariff provides co2 intensity forecast and is for co2-optimized target charging if no variable grid tariff is specified
    # type: grünstromindex # GrünStromIndex (Germany only)
    # zip: <zip>

    # type: electricitymaps # https://app.electricitymaps.com/map
    # uri: <uri>
    # token: <token> # needs to be a token with forecast (not in the free tier)
    # zone: DE

    # type: ngeso # National Grid Electricity System Operator data (Great Britain only) https://carbonintensity.org.uk/
    # provides national data if both region and postcode are omitted - Choose ONE only!
    # region: 1 # optional, coarser than using a postcode - The region details are at https://carbon-intensity.github.io/api-definitions/#region-list
    # postcode: SW1 # optional - Outward postcode i.e. RG41 or SW1 or TF8. Do not include full postcode, outward postcode only

# mqtt message broker
mqtt:
   broker: 192.168.1.159:1883
   topic: evcc # root topic for publishing, set empty to disable
   user: esp32
   password: 12hojvang34

# 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

[lp-1  ] DEBUG 2024/07/02 22:52:59 charge power: 2249W
[site  ] DEBUG 2024/07/02 22:52:59 pv power: 0W
[site  ] DEBUG 2024/07/02 22:52:59 grid meter: 2820W
[site  ] DEBUG 2024/07/02 22:52:59 grid powers: [2580 160 70]W
[site  ] DEBUG 2024/07/02 22:52:59 grid currents: [11.9 3.04 2.8]A
[site  ] DEBUG 2024/07/02 22:52:59 aux power 1: 0W
[site  ] DEBUG 2024/07/02 22:52:59 aux power: 0W
[site  ] DEBUG 2024/07/02 22:52:59 site power: 2820W
[lp-1  ] DEBUG 2024/07/02 22:52:59 !! session: chargeRater.chargedEnergy=5.8 - chargedAtStartup=0.0
[lp-1  ] DEBUG 2024/07/02 22:52:59 charge total import: 263.616kWh
[lp-1  ] DEBUG 2024/07/02 22:52:59 charger status: C
[lp-1  ] DEBUG 2024/07/02 22:52:59 soc estimated: 79.61% (vehicle: 45.00%)
[lp-1  ] DEBUG 2024/07/02 22:52:59 vehicle soc: 80%
[lp-1  ] DEBUG 2024/07/02 22:52:59 vehicle range: 14km
[lp-1  ] DEBUG 2024/07/02 22:52:59 plan: charge 30m33s between 2024-07-02 22:53:00 +0200 CEST until 2024-07-02 23:00:00 +0200 CEST (overruns by 23m33s, power: 3680W, avg cost: 2.500)
[site  ] DEBUG 2024/07/02 22:53:29 ----
[lp-1  ] DEBUG 2024/07/02 22:53:29 charge power: 2237W
[site  ] DEBUG 2024/07/02 22:53:29 pv power: 0W
[site  ] DEBUG 2024/07/02 22:53:29 grid meter: 2860W
[site  ] DEBUG 2024/07/02 22:53:29 grid powers: [2600 170 70]W
[site  ] DEBUG 2024/07/02 22:53:29 grid currents: [12 3.07 2.82]A
[site  ] DEBUG 2024/07/02 22:53:29 aux power 1: 0W
[site  ] DEBUG 2024/07/02 22:53:29 aux power: 0W
[site  ] DEBUG 2024/07/02 22:53:29 site power: 2860W
[lp-1  ] DEBUG 2024/07/02 22:53:29 !! session: chargeRater.chargedEnergy=5.8 - chargedAtStartup=0.0
[lp-1  ] DEBUG 2024/07/02 22:53:29 charge total import: 263.652kWh
[lp-1  ] DEBUG 2024/07/02 22:53:29 charger status: C
[lp-1  ] DEBUG 2024/07/02 22:53:29 soc estimated: 80.03% (vehicle: 45.00%)
[lp-1  ] DEBUG 2024/07/02 22:53:29 vehicle soc: 80%
[lp-1  ] DEBUG 2024/07/02 22:53:29 vehicle range: 14km
[lp-1  ] DEBUG 2024/07/02 22:53:29 plan: charge 29m58s between 2024-07-02 22:53:30 +0200 CEST until 2024-07-02 23:00:00 +0200 CEST (overruns by 23m28s, power: 3680W, avg cost: 2.500)
[lp-1  ] DEBUG 2024/07/02 22:53:55 set max current: 17
[site  ] DEBUG 2024/07/02 22:53:59 ----
[lp-1  ] DEBUG 2024/07/02 22:53:59 charge power: 2237W
[site  ] DEBUG 2024/07/02 22:53:59 pv power: 0W
[site  ] DEBUG 2024/07/02 22:53:59 grid meter: 2870W
[site  ] DEBUG 2024/07/02 22:53:59 grid powers: [2630 160 70]W
[site  ] DEBUG 2024/07/02 22:53:59 grid currents: [12.1 3.04 2.81]A
[site  ] DEBUG 2024/07/02 22:53:59 aux power 1: 0W
[site  ] DEBUG 2024/07/02 22:53:59 aux power: 0W
[site  ] DEBUG 2024/07/02 22:53:59 site power: 2870W
[lp-1  ] DEBUG 2024/07/02 22:53:59 !! session: chargeRater.chargedEnergy=5.8 - chargedAtStartup=0.0
[lp-1  ] DEBUG 2024/07/02 22:53:59 charge total import: 263.652kWh
[lp-1  ] DEBUG 2024/07/02 22:53:59 charger status: C
[lp-1  ] DEBUG 2024/07/02 22:53:59 soc estimated: 80.03% (vehicle: 45.00%)
[lp-1  ] DEBUG 2024/07/02 22:53:59 vehicle soc: 80%
[lp-1  ] DEBUG 2024/07/02 22:53:59 vehicle range: 14km
[lp-1  ] DEBUG 2024/07/02 22:53:59 plan: charge 28m27s between 2024-07-02 22:54:00 +0200 CEST until 2024-07-02 23:00:00 +0200 CEST (overruns by 22m27s, power: 3910W, avg cost: 2.500)
[lp-1  ] DEBUG 2024/07/02 22:53:59 max charge current: 17A
[site  ] DEBUG 2024/07/02 22:54:29 ----
[lp-1  ] DEBUG 2024/07/02 22:54:29 charge power: 3277W
[site  ] DEBUG 2024/07/02 22:54:29 pv power: 0W
[site  ] DEBUG 2024/07/02 22:54:29 grid meter: 3930W
[site  ] DEBUG 2024/07/02 22:54:29 grid powers: [3700 150 70]W
[site  ] DEBUG 2024/07/02 22:54:29 grid currents: [16.7 3.03 2.8]A
[site  ] DEBUG 2024/07/02 22:54:29 aux power 1: 0W
[site  ] DEBUG 2024/07/02 22:54:29 aux power: 0W
[site  ] DEBUG 2024/07/02 22:54:29 site power: 3930W
[lp-1  ] DEBUG 2024/07/02 22:54:29 !! session: chargeRater.chargedEnergy=5.8 - chargedAtStartup=0.0
[lp-1  ] DEBUG 2024/07/02 22:54:29 charge total import: 263.693kWh
[lp-1  ] DEBUG 2024/07/02 22:54:29 charger status: C
[lp-1  ] DEBUG 2024/07/02 22:54:29 soc estimated: 80.51% (vehicle: 45.00%)
[lp-1  ] DEBUG 2024/07/02 22:54:29 vehicle soc: 81%
[lp-1  ] DEBUG 2024/07/02 22:54:29 vehicle range: 14km
[lp-1  ] DEBUG 2024/07/02 22:54:29 plan: charge 27m50s between 2024-07-02 22:54:30 +0200 CEST until 2024-07-02 23:00:00 +0200 CEST (overruns by 22m20s, power: 3910W, avg cost: 2.500)
[lp-1  ] DEBUG 2024/07/02 22:54:39 set max current: 16

What type of operating system are you running?

HomeAssistant Add-on

Version

0.127.3

andig commented 2 weeks ago

but orbis charger is only set to 10 amp. If i change max changing rate from 16 amp to 17 amp and back to 16 when plan is running charger is raising charge to 16 amp.

Please add a log file where this is visible (charge communication on trace).