evcc-io / evcc

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

Planner: Fehler bei Vorschau ohne verbundenen Tesla #11278

Closed 0163deralex closed 10 months ago

0163deralex commented 10 months ago

Describe the bug

Wenn der Wagen nicht angeschlossen ist und ich den Plan öffne, erscheint ein rotes ⚠ Warndreieck mit folgendem Inhalt;Request failed with status code 400: API request failed https://xxxxxxxxxxx.de/api/hassio_ingress/xxxxxxxxxxxxxxxxxxxxxx20Auhx7vnrK4Os/api/loadpoints/1/plan/preview/energy/10/2023-12-27T11:45:00.000Z

Steps to reproduce

  1. Evcc öffnen
  2. Loadpoint 1 auswählen und auf Plan klicken
  3. Ohne Auto oben genannte Fehlermeldung
  4. Mit Auto keine Fehlermeldung
  5. Nur beim Tesla Loadpoint Screenshot_20231227-112517

Seit 0.123.0 bis 0.123.2

Configuration details


`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: 192.168.188.105
  # host: XXXXXXX.de/49686a9f_evcc
  # port is the listening port for UI and api
  # evcc will listen on all available interfaces
  port: 7070

interval: 10s # 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: xxxxxxxxx

# 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
plant: xxxxxxxxx

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

# 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: Tibber
    type: template
    template: tibber-pulse
    usage: grid
    token: xxxx
#    homeid: xxxx # Optional 

  - name: sma_grid
    type: template
    template: sma-home-manager
    usage: grid
    host: 192.168.178.57 # IP-Adresse oder Hostname 

  - name: WR-PV           #SMA Sunny TriPower 8.0
    type: sma
    uri: 192.168.178.61
    password: xxxx

#  - name: WR-PV2         # SMA Sunny Tripower 6.0 SE
#    type: sma
#    uri: 192.168.178.59
#    password: xxxxx

  - name: WR-PV2         # SMA Sunny Tripower 6.0 SE Wlan
    type: sma
    uri: 192.168.188.146
    password: xxxxx

#hems:
#  type: sma
#  allowcontrol: false # set true to allow SHM controlling charger in PV modes 

# 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: Wallbox
    type: template
    template: vestel
    modbus: tcpip
    id: 255
    host: 192.168.178.40 # Hostname
    port: 502 # Port  

# ebike Ladesteckdose
  - name: eBike-Plug
    type: template
    template: tapo
    host: 192.168.188.160
    user: xxxxx
    password: xxxx
    standbypower: 15
  #  integrateddevice: true
    icon: bike

# 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: Valentino
    type: template
    template: tesla
    title: Valentino # Wird in der Benutzeroberfläche angezeigt (Optional)
    accessToken: xxxxxx # Siehe https://docs.evcc.io/docs/devices/vehicles#tesla
    refreshToken: xxxxx # Siehe https://docs.evcc.io/docs/devices/vehicles#tesla
    # vin: W... # Erforderlich, wenn mehrere Fahrzeuge des Herstellers vorhanden sind (Optional)
    capacity: 75 # Akkukapazität in kWh (Optional) 
  - name: Cowboy-Akku
    type: custom
    title: Cowboy-Akku
    capacity: 0.75
    icon: bike

# site describes the EVU connection, PV and home battery
site:
  - title: Zuhause # display name for UI
    meters:
#      grid: Tibber
#      pvs: SHM2
      grid: sma_grid
      Pv: 
        - WR-PV 
        - WR-PV2
#        - SHM2
# loadpoint describes the charger, charge meter and connected vehicle
loadpoints:
  - title: Garage # display name for UI
    charger: Wallbox # charger
    mode: "PV" # set default charge mode, use "off" to disable by default if charger is publicly available
    vehicle: Valentino # 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)
    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: 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: 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: 2m # threshold must be exceeded for this long
      threshold: 0 # maximum import power (W)
    guardDuration: 5m # switch charger contactor not more often than this (default 5m)

  - title: Wohnzimmer
    charger: eBike-Plug
    mode: "PV"
    vehicle: Cowboy-Akku
    phases: 1 # electrical connection (normal charger: default 3 for 3 phase, 1p3p charger: 0 for "auto" or 1/3 for fixed phases)
    minCurrent: 0.5 # minimum charge current (default 6A)
    maxCurrent: 3 # maximum charge current (default 16A)

# 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.294 # EUR/kWh
    # zones:
    #   - days: Mo-Fr
    #    hours: 2-5
    #   price: 0.2 # EUR/kWh
    #  - days: Sa,So
    #    price: 0.15 # EUR/kWh

    # or variable tariffs
    type: tibber
    token: xxxx # access token
    # homeid: xxxx # 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: elering # Nordpool
    # region: ee # or lt, lv, fi
    # 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.20
    # price: 0.07862 # EUR/kWh
  planner:
   #  planner 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: 40789

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

# mqtt message broker
mqtt:
  broker: core-mosquitto:1883
  topic: evcc # root topic for publishing, set empty to disable
  clientid: mqttevcc
  user: xxxx
  password: xxxx

# influx database
influx:
  url: http://192.168.188.105:8086
  database: evcc
  user: xxxx
  password: xxxx

# 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: Aufladevorgang hat begonnen
      msg: Started charging in "${mode}" mode
    stop: # charge stop event
      title: Aufladevorgang ist beendet
      msg: Finished charging ${chargedEnergy:%.1fk}kWh in ${chargeDuration}.
    connect: # vehicle connect event
      title: Auto angeschlossen
      msg: "Car connected at ${pvPower:%.1fk}kW PV"
    disconnect: # vehicle connected event
      title: Auto nicht angeschlossen
      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: Unbekanntes Fahrzeug
      msg: Unknown vehicle, guest connected?
  services:
  # - type: pushover
  #   app: # app id
  #   recipients:
  #   - # list of recipient ids
    - type: telegram
      token: xxxxxxxx # 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 2023/12/27 11:31:59 ----
[lp-1  ] DEBUG 2023/12/27 11:31:59 charge power: 4W
[lp-2  ] DEBUG 2023/12/27 11:31:59 charge power: 0W
[site  ] DEBUG 2023/12/27 11:31:59 pv power: 783W
[site  ] DEBUG 2023/12/27 11:31:59 grid power: -610W
[site  ] DEBUG 2023/12/27 11:31:59 grid powers: [-203 -208 -199]W
[site  ] DEBUG 2023/12/27 11:31:59 grid currents: [-0.953 -1.01 -0.921]A
[site  ] DEBUG 2023/12/27 11:31:59 site power: -610W
[lp-1  ] DEBUG 2023/12/27 11:31:59 charge voltages: [232 232 233]V
[lp-1  ] DEBUG 2023/12/27 11:31:59 detected connected phases: 3p
[lp-1  ] DEBUG 2023/12/27 11:31:59 charge currents: [0.049 0.018 0.018]A
[lp-1  ] DEBUG 2023/12/27 11:31:59 charge total import: 2300.500kWh
[lp-1  ] DEBUG 2023/12/27 11:31:59 charger status: A
[lp-1  ] DEBUG 2023/12/27 11:31:59 set Valentino plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
[site  ] DEBUG 2023/12/27 11:32:09 ----
[lp-1  ] DEBUG 2023/12/27 11:32:09 charge power: 4W
[lp-2  ] DEBUG 2023/12/27 11:32:09 charge power: 0W
[site  ] DEBUG 2023/12/27 11:32:09 pv power: 775W
[site  ] DEBUG 2023/12/27 11:32:09 grid power: -617W
[site  ] DEBUG 2023/12/27 11:32:09 grid powers: [-203 -210 -203]W
[site  ] DEBUG 2023/12/27 11:32:09 grid currents: [-0.953 -1.02 -0.936]A
[site  ] DEBUG 2023/12/27 11:32:09 site power: -617W
[lp-2  ] DEBUG 2023/12/27 11:32:10 charger status: B
[lp-2  ] DEBUG 2023/12/27 11:32:10 pv charge current: 2.68A = 0A + 2.68A (-617W @ 1p)
[lp-2  ] DEBUG 2023/12/27 11:32:10 max charge current: 2.68A
[site  ] DEBUG 2023/12/27 11:32:19 ----
[lp-1  ] DEBUG 2023/12/27 11:32:19 charge power: 4W
[lp-2  ] DEBUG 2023/12/27 11:32:19 charge power: 0W
[site  ] DEBUG 2023/12/27 11:32:19 pv power: 787W
[site  ] DEBUG 2023/12/27 11:32:19 grid power: -620W
[site  ] DEBUG 2023/12/27 11:32:19 grid powers: [-206 -212 -202]W
[site  ] DEBUG 2023/12/27 11:32:19 grid currents: [-0.965 -1.02 -0.932]A
[site  ] DEBUG 2023/12/27 11:32:19 site power: -620W
[lp-1  ] DEBUG 2023/12/27 11:32:19 charge voltages: [232 231 233]V
[lp-1  ] DEBUG 2023/12/27 11:32:19 detected connected phases: 3p
[lp-1  ] DEBUG 2023/12/27 11:32:19 charge currents: [0.049 0.018 0.018]A
[lp-1  ] DEBUG 2023/12/27 11:32:19 charge total import: 2300.500kWh
[lp-1  ] DEBUG 2023/12/27 11:32:19 charger status: A
[lp-1  ] DEBUG 2023/12/27 11:32:19 set Valentino plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
[site  ] DEBUG 2023/12/27 11:32:29 ----
[lp-1  ] DEBUG 2023/12/27 11:32:29 charge power: 4W
[lp-2  ] DEBUG 2023/12/27 11:32:29 charge power: 0W
[site  ] DEBUG 2023/12/27 11:32:29 pv power: 791W
[site  ] DEBUG 2023/12/27 11:32:29 grid power: -625W
[site  ] DEBUG 2023/12/27 11:32:29 grid powers: [-205 -214 -206]W
[site  ] DEBUG 2023/12/27 11:32:29 grid currents: [-0.96 -1.02 -0.947]A
[site  ] DEBUG 2023/12/27 11:32:29 site power: -625W
[lp-2  ] DEBUG 2023/12/27 11:32:30 charger status: B
[lp-2  ] DEBUG 2023/12/27 11:32:30 pv charge current: 2.72A = 0A + 2.72A (-625W @ 1p)
[lp-2  ] DEBUG 2023/12/27 11:32:30 max charge current: 2.72A
[site  ] DEBUG 2023/12/27 11:32:39 ----
[lp-1  ] DEBUG 2023/12/27 11:32:39 charge power: 3W
[lp-2  ] DEBUG 2023/12/27 11:32:39 charge power: 0W
[site  ] DEBUG 2023/12/27 11:32:39 pv power: 800W
[site  ] DEBUG 2023/12/27 11:32:39 grid power: -635W
[site  ] DEBUG 2023/12/27 11:32:39 grid powers: [-210 -216 -209]W
[site  ] DEBUG 2023/12/27 11:32:39 grid currents: [-0.985 -1.04 -0.96]A
[site  ] DEBUG 2023/12/27 11:32:39 site power: -635W
[lp-1  ] DEBUG 2023/12/27 11:32:39 charge voltages: [233 232 233]V
[lp-1  ] DEBUG 2023/12/27 11:32:39 detected connected phases: 3p
[lp-1  ] DEBUG 2023/12/27 11:32:39 charge currents: [0.049 0.018 0.018]A
[lp-1  ] DEBUG 2023/12/27 11:32:39 charge total import: 2300.500kWh
[lp-1  ] DEBUG 2023/12/27 11:32:39 charger status: A
[lp-1  ] DEBUG 2023/12/27 11:32:39 set Valentino plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
[site  ] DEBUG 2023/12/27 11:32:49 ----
[lp-1  ] DEBUG 2023/12/27 11:32:49 charge power: 4W
[lp-2  ] DEBUG 2023/12/27 11:32:49 charge power: 0W
[site  ] DEBUG 2023/12/27 11:32:49 pv power: 806W
[site  ] DEBUG 2023/12/27 11:32:49 grid power: -643W
[site  ] DEBUG 2023/12/27 11:32:49 grid powers: [-213 -218 -211]W
[site  ] DEBUG 2023/12/27 11:32:49 grid currents: [-0.993 -1.05 -0.97]A
[site  ] DEBUG 2023/12/27 11:32:49 site power: -643W
[lp-2  ] DEBUG 2023/12/27 11:32:50 charger status: B
[lp-2  ] DEBUG 2023/12/27 11:32:50 pv charge current: 2.79A = 0A + 2.79A (-643W @ 1p)
[lp-2  ] DEBUG 2023/12/27 11:32:50 max charge current: 2.79A
[site  ] DEBUG 2023/12/27 11:32:59 ----
[lp-1  ] DEBUG 2023/12/27 11:32:59 charge power: 4W
[lp-2  ] DEBUG 2023/12/27 11:32:59 charge power: 0W
[site  ] DEBUG 2023/12/27 11:32:59 pv power: 814W
[site  ] DEBUG 2023/12/27 11:32:59 grid power: -643W
[site  ] DEBUG 2023/12/27 11:32:59 grid powers: [-214 -219 -210]W
[site  ] DEBUG 2023/12/27 11:32:59 grid currents: [-0.995 -1.05 -0.966]A
[site  ] DEBUG 2023/12/27 11:32:59 site power: -643W
[lp-1  ] DEBUG 2023/12/27 11:32:59 charge voltages: [233 232 233]V
[lp-1  ] DEBUG 2023/12/27 11:32:59 detected connected phases: 3p
[lp-1  ] DEBUG 2023/12/27 11:32:59 charge currents: [0.049 0.018 0.018]A
[lp-1  ] DEBUG 2023/12/27 11:32:59 charge total import: 2300.500kWh
[lp-1  ] DEBUG 2023/12/27 11:32:59 charger status: A
[lp-1  ] DEBUG 2023/12/27 11:32:59 set Valentino plan soc: 0 @ 0001-01-01 00:53:28 +0053 LMT
[site  ] DEBUG 2023/12/27 11:33:09 ----
[lp-1  ] DEBUG 2023/12/27 11:33:09 charge power: 4W
[lp-2  ] DEBUG 2023/12/27 11:33:09 charge power: 0W
[site  ] DEBUG 2023/12/27 11:33:09 pv power: 803W
[site  ] DEBUG 2023/12/27 11:33:09 grid power: -636W
[site  ] DEBUG 2023/12/27 11:33:09 grid powers: [-211 -217 -209]W
[site  ] DEBUG 2023/12/27 11:33:09 grid currents: [-0.982 -1.04 -0.96]A
[site  ] DEBUG 2023/12/27 11:33:09 site power: -636W
[lp-2  ] DEBUG 2023/12/27 11:33:10 charger status: B
[lp-2  ] DEBUG 2023/12/27 11:33:10 pv charge current: 2.77A = 0A + 2.77A (-636W @ 1p)
[lp-2  ] DEBUG 2023/12/27 11:33:10 max charge current: 2.77A

What type of operating system are you running?

HomeAssistant Add-on

Version

0.123.2

andig commented 10 months ago

@0163deralex kannst Du in der Browserkonsole mal in den Request rein schauen? Gibts da eine konkrete Fehlermeldung? Sowas wie:

{"error":"energy planning not available for vehicles with known soc and capacity"}

Ich kann das provozieren wenn ein Fahrzeug mit Soc angeschlossen ist:

curl http://localhost:7070/api/loadpoints/1/plan/preview/energy/80/2023-12-30T18:00:00.000Z

Gelingt mir aber nicht, wenn kein Auto angeschlossen oder Gastfahrzeug. Wir brauchen also konkrete Steps to Reproduce. in Deinem Logfile oben ist der Tesla übrigens angeschlossen:

charger status: B

Passt also nicht zur Fehlerbeschreibung :(

0163deralex commented 10 months ago

Wie finde ich die Browserkonsole?

Loadpoint 2 ist B, loadpoint 1 ist doch A? Der Tesla ist definitiv nicht angeschlossen an loadpoint 1.

StefanSchoof commented 10 months ago

https://www.google.com/search?q=how+to+open+browser+console ?

0163deralex commented 10 months ago

ok, die Konsole haben ich gefunden und folgende Errors entdeckt (ist aus 2 mal öffnen entstanden).

EVCC_Konsolenscreenshot EVCC_Konsolenscreenshot2
andig commented 10 months ago

Ähh- schaut bitte ins Netzwerktab auf den Request ;)

0163deralex commented 10 months ago
EVCC_Konsolenscreenshot3
andig commented 10 months ago

schaut bitte ins Netzwerktab auf den Request ;)

andig commented 10 months ago

@0163deralex bitte nicht irgendwas posten- das hilft nix.

0163deralex commented 10 months ago

ich habe doch nur diese Error Meldung aus der Konsole gepostet :/

andig commented 10 months ago

Die nutzt uns aber nichts! Es braucht den Netzwerkrequest aus dem Network Tab, wie schon 2x geschrieben:

schaut bitte ins Netzwerktab auf den Request ;)

0163deralex commented 10 months ago

Sorry, aber ich habe keine Ahnung was genau...Das vielleicht?

EVCC_Konsolenscreenshot4
andig commented 10 months ago

Bitte noch ein Blick auf Response und die Ausgabe von /api/state (kein Screenshot bitte).

0163deralex commented 10 months ago

Hoffe, das sind die richtigen Zeilen:

Response: { "error": "energy planning not available for vehicles with known soc and capacity" }

api/state

{
    "batteryConfigured": false,
    "batteryDischargeControl": false,
    "batteryMode": "unknown",
    "bufferSoc": 0,
    "bufferStartSoc": 0,
    "currency": "EUR",
    "greenShareHome": 0,
    "greenShareLoadpoints": 0,
    "gridConfigured": true,
    "gridCurrents": [
        0.601,
        1.141,
        0.966
    ],
    "gridEnergy": 1308.5554,
    "gridPower": 393.8,
    "gridPowers": [
        78.80000000000001,
        184.3,
        130.70000000000002
    ],
    "homePower": 389.8,
    "loadpoints": [
        {
            "chargeCurrent": 0,
            "chargeCurrents": [
                0.049,
                0.018,
                0.018
            ],
            "chargeDuration": 159927000000000,
            "chargePower": 4,
            "chargeTotalImport": 2300.5,
            "chargeVoltages": [
                234,
                234,
                235
            ],
            "chargedEnergy": 0,
            "chargerFeatureHeating": false,
            "chargerFeatureIntegratedDevice": false,
            "chargerIcon": null,
            "charging": false,
            "connected": false,
            "connectedDuration": 9223372036854776000,
            "disableThreshold": 0,
            "effectiveLimitSoc": 80,
            "effectiveMaxCurrent": 16,
            "effectiveMinCurrent": 6,
            "effectivePlanSoc": 0,
            "effectivePlanTime": "0001-01-01T00:00:00Z",
            "effectivePriority": 0,
            "enableThreshold": 0,
            "enabled": false,
            "guardAction": "inactive",
            "guardRemaining": 0,
            "limitEnergy": 0,
            "limitSoc": 0,
            "maxCurrent": 16,
            "minCurrent": 6,
            "mode": "pv",
            "phaseAction": "inactive",
            "phaseRemaining": 0,
            "phasesActive": 3,
            "phasesConfigured": null,
            "phasesEnabled": 3,
            "planEnergy": 0,
            "planProjectedStart": "0001-01-01T00:00:00Z",
            "planTime": "0001-01-01T00:00:00Z",
            "priority": 0,
            "pvAction": "inactive",
            "pvRemaining": 0,
            "sessionCo2PerKWh": null,
            "sessionEnergy": 0,
            "sessionPrice": null,
            "sessionPricePerKWh": null,
            "sessionSolarPercentage": 0,
            "title": "Garage",
            "vehicleCapacity": 75,
            "vehicleClimaterActive": null,
            "vehicleDetectionActive": false,
            "vehicleFeatureOffline": false,
            "vehicleIcon": "car",
            "vehicleName": "Valentino",
            "vehicleOdometer": 0,
            "vehiclePresent": true,
            "vehicleRange": 0,
            "vehicleSoc": 0,
            "vehicleTargetSoc": 0,
            "vehicleTitle": "Valentino"
        },
        {
            "chargeCurrent": 0,
            "chargeDuration": 0,
            "chargePower": 0,
            "chargedEnergy": 0,
            "chargerFeatureHeating": false,
            "chargerFeatureIntegratedDevice": false,
            "chargerIcon": "bike",
            "charging": false,
            "connected": true,
            "connectedDuration": 0,
            "disableThreshold": 0,
            "effectiveLimitSoc": 100,
            "effectiveMaxCurrent": 3,
            "effectiveMinCurrent": 0.5,
            "effectivePlanSoc": 0,
            "effectivePlanTime": "0001-01-01T00:00:00Z",
            "effectivePriority": 0,
            "enableThreshold": 0,
            "enabled": false,
            "guardAction": "inactive",
            "guardRemaining": 0,
            "limitEnergy": 0.7,
            "limitSoc": 0,
            "maxCurrent": 3,
            "minCurrent": 0.5,
            "mode": "pv",
            "phaseAction": "inactive",
            "phaseRemaining": 0,
            "phasesActive": 1,
            "phasesConfigured": null,
            "phasesEnabled": 1,
            "planEnergy": 0,
            "planProjectedStart": "0001-01-01T00:00:00Z",
            "planTime": "0001-01-01T00:00:00Z",
            "priority": 0,
            "pvAction": "inactive",
            "pvRemaining": 0,
            "sessionCo2PerKWh": null,
            "sessionEnergy": 0,
            "sessionPrice": null,
            "sessionPricePerKWh": null,
            "sessionSolarPercentage": 0,
            "title": "Wohnzimmer",
            "vehicleCapacity": 0.75,
            "vehicleClimaterActive": null,
            "vehicleDetectionActive": false,
            "vehicleFeatureOffline": true,
            "vehicleIcon": "bike",
            "vehicleName": "Cowboy-Akku",
            "vehicleOdometer": 0,
            "vehiclePresent": true,
            "vehicleRange": 0,
            "vehicleSoc": 0,
            "vehicleTargetSoc": 0,
            "vehicleTitle": "Cowboy-Akku (offline)"
        }
    ],
    "prioritySoc": 0,
    "pv": [
        {
            "power": 0,
            "energy": 90.229
        },
        {
            "power": 0,
            "energy": 2185.715
        }
    ],
    "pvConfigured": true,
    "pvEnergy": 2275.944,
    "pvPower": 0,
    "residualPower": 0,
    "siteTitle": "Zuhause",
    "smartCostActive": false,
    "smartCostLimit": 0.17,
    "smartCostType": "priceforecast",
    "sponsor": "0163deralex",
    "sponsorTokenExpires": 0,
    "statistics": {
        "30d": {
            "avgCo2": 0,
            "avgPrice": 0.23554098146729704,
            "chargedKWh": 294.027,
            "solarPercentage": 8.032883579314783
        },
        "365d": {
            "avgCo2": 0,
            "avgPrice": 0.143617620940623,
            "chargedKWh": 1579.6670000000001,
            "solarPercentage": 43.374919467044315
        },
        "total": {
            "avgCo2": 0,
            "avgPrice": 0.143617620940623,
            "chargedKWh": 1579.6670000000001,
            "solarPercentage": 43.374919467044315
        }
    },
    "tariffFeedIn": 0.2,
    "tariffGrid": 0.2746,
    "tariffPriceHome": 0.2746,
    "tariffPriceLoadpoints": 0.2746,
    "vehicles": {
        "Cowboy-Akku": {
            "title": "Cowboy-Akku (offline)"
        },
        "Valentino": {
            "title": "Valentino",
            "limitSoc": 80
        }
    },
    "version": "0.123.2"
}
andig commented 10 months ago

@0163deralex Du sagtest der Fehler entsteht ohne Fahrzeug. Laut /api/state ist aber

  "vehiclePresent": true,

passen die Ausgaben wirklich zusammen?

0163deralex commented 10 months ago

Der Screenshot ist von heute morgen und die Codes von heute Abend. Aber in beiden Fällen ist der Wagen nicht an der Box angeschlossen. Da läuft ja noch ein zweiter Loadpoint, so ne tapo Steckdose. Da kommt auch in der ui der Hinweis, dass verbunden ist. Beim loadpoint 1 steht nicht, dass er verbunden ist. Screenshot_20231227-192954 Screenshot_20231227-193010

andig commented 10 months ago

Wir raten mangels Config leider schon wieder. Bitte im Issue ergänzen.

@naltatis ich sehe

connected: false aber
vehiclePresent: true

kann das ein Problem sein?

naltatis commented 10 months ago

Jo, Problem ist hier, dass wir diesen Halbzustand am Loadpoint haben. Fahrzeug ist da (present, name, ...), aber es gibt keinen SoC (bzw. soc: 0). Daher wird Energy-based Charging verwendet, was (korrekterweise) failed.

Vorschlag: Wir publishen socBasedPlanning am Loadpoint (im Core ist das ja korrekt) und ersetzen die redundante Berechnung in der UI: https://github.com/evcc-io/evcc/blob/master/assets/js/components/Loadpoint.vue#L248

Robbi12 commented 10 months ago

Also ich habe das Problem auch. Aber bei einem Volvo. Auto ist definitiv nicht angeschlossen. Wenn ich auf Plan gehe kommt folgender Fehler: Request failed with status code 400: API request failed http://192.168.178.134:7070/api/loadpoints/1/plan/preview/energy/10/2023-12-31T06:00:00.000Z