evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Tariff Planer fehlt, Ladestatistik falsch berechnet

Open 0163deralex opened this issue 2 years ago • 1 comments

Describe the bug

Seit heute morgen, wahrscheinlich seit 0.127.2 poppen Fehlermeldungen auf: [site ] WARN 2024/06/18 09:10:15 smartCost: outdated Die Preise in der Ladestatistik sind auch sehr viel niedriger, als sie sein müssten. Screenshot_20240618-091009 Ich nutze Tibber, SMA, Vestel und Tesla.

Steps to reproduce

  1. Auto anschließen
  2. Laden
  3. Fehlermeldung Screenshot_20240618-091016

...

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
  # 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: xxx

# 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: xxx

# 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: xxx
#    homeid: xxx # 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: xxx

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

  - name: WR-PV2         # SMA Sunny Tripower 6.0 SE Wlan
    type: sma
    uri: 192.168.188.146
    password: xxx
 
#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: [email protected]
#    password: Ta1sxff23
#    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-command
    title: Valentino # Wird in der Benutzeroberfläche angezeigt (Optional)
    accessToken: xxx # Siehe https://docs.evcc.io/docs/devices/vehicles#tesla
    refreshToken: EU_xxx  # 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: xxx # access token
    # homeid: xxx # 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: 

    # 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: xxx
  password:xxx

# 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:  # 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 2024/06/18 09:10:05 ----
[lp-1 ] DEBUG 2024/06/18 09:10:05 charge power: 3657W
[lp-1 ] DEBUG 2024/06/18 09:10:05 charge currents: [16.2 0.018 0.018]A
[site ] WARN 2024/06/18 09:10:05 smartCost: outdated
[site ] DEBUG 2024/06/18 09:10:05 pv power: 7847W
[site ] DEBUG 2024/06/18 09:10:05 grid meter: -3926W
[site ] DEBUG 2024/06/18 09:10:05 grid powers: [1137 -2487 -2576]W
[site ] DEBUG 2024/06/18 09:10:05 grid currents: [5.01 -10.7 -11]A
[site ] DEBUG 2024/06/18 09:10:05 site power: -3926W
[lp-1 ] DEBUG 2024/06/18 09:10:05 charge voltages: [228 236 238]V
[lp-1 ] DEBUG 2024/06/18 09:10:05 detected connected phases: 3p
[lp-1 ] DEBUG 2024/06/18 09:10:05 detected active phases: 1p
[lp-1 ] DEBUG 2024/06/18 09:10:05 !! session: chargeRater.chargedEnergy=2.9 - chargedAtStartup=0.0
[lp-1 ] DEBUG 2024/06/18 09:10:05 charge total import: 3925.600kWh
[lp-1 ] DEBUG 2024/06/18 09:10:05 charger status: C
[lp-1 ] DEBUG 2024/06/18 09:10:05 soc estimated: 80.15% (vehicle: 79.00%)
[lp-1 ] DEBUG 2024/06/18 09:10:05 vehicle soc: 80%
[lp-1 ] DEBUG 2024/06/18 09:10:05 vehicle soc limit: 96%
[lp-1 ] DEBUG 2024/06/18 09:10:05 vehicle range: 409km
[lp-1 ] DEBUG 2024/06/18 09:10:05 !! active phases: 1p = min(1p measured 0p vehicle 3p physical 0p charger)
[lp-1 ] DEBUG 2024/06/18 09:10:05 pv charge current: 33.1A = 16A + 17.1A (-3926W @ 1p)
[site ] DEBUG 2024/06/18 09:10:15 ----
[lp-1 ] DEBUG 2024/06/18 09:10:15 charge power: 3670W
[lp-1 ] DEBUG 2024/06/18 09:10:15 charge currents: [16.2 0.018 0.018]A
[site ] WARN 2024/06/18 09:10:15 smartCost: outdated
[site ] DEBUG 2024/06/18 09:10:15 pv power: 7303W
[site ] DEBUG 2024/06/18 09:10:15 grid meter: -3431W
[site ] DEBUG 2024/06/18 09:10:15 grid powers: [1310 -2327 -2414]W
[site ] DEBUG 2024/06/18 09:10:15 grid currents: [5.75 -10 -10.4]A
[site ] DEBUG 2024/06/18 09:10:15 site power: -3431W
[lp-1 ] DEBUG 2024/06/18 09:10:15 charge voltages: [228 236 238]V
[lp-1 ] DEBUG 2024/06/18 09:10:15 detected connected phases: 3p
[lp-1 ] DEBUG 2024/06/18 09:10:15 detected active phases: 1p
[lp-1 ] DEBUG 2024/06/18 09:10:15 !! session: chargeRater.chargedEnergy=3.0 - chargedAtStartup=0.0
[lp-1 ] DEBUG 2024/06/18 09:10:15 charge total import: 3925.600kWh
[lp-1 ] DEBUG 2024/06/18 09:10:15 charger status: C
[lp-1 ] DEBUG 2024/06/18 09:10:15 soc estimated: 80.16% (vehicle: 79.00%)
[lp-1 ] DEBUG 2024/06/18 09:10:15 vehicle soc: 80%
[lp-1 ] DEBUG 2024/06/18 09:10:15 vehicle soc limit: 96%
[lp-1 ] DEBUG 2024/06/18 09:10:15 vehicle range: 409km
[lp-1 ] DEBUG 2024/06/18 09:10:15 !! active phases: 1p = min(1p measured 0p vehicle 3p physical 0p charger)
[lp-1 ] DEBUG 2024/06/18 09:10:15 pv charge current: 30.9A = 16A + 14.9A (-3431W @ 1p)
[site ] DEBUG 2024/06/18 09:10:25 ----
[lp-1 ] DEBUG 2024/06/18 09:10:25 charge power: 3674W
[lp-1 ] DEBUG 2024/06/18 09:10:25 charge currents: [16.2 0.018 0.018]A
[site ] WARN 2024/06/18 09:10:25 smartCost: outdated
[site ] DEBUG 2024/06/18 09:10:25 pv power: 5116W
[site ] DEBUG 2024/06/18 09:10:25 grid meter: -1231W
[site ] DEBUG 2024/06/18 09:10:25 grid powers: [2039 -1594 -1677]W
[site ] DEBUG 2024/06/18 09:10:25 grid currents: [8.88 -6.88 -7.21]A
[site ] DEBUG 2024/06/18 09:10:25 site power: -1231W
[lp-1 ] DEBUG 2024/06/18 09:10:25 charge voltages: [228 236 238]V
[lp-1 ] DEBUG 2024/06/18 09:10:25 detected connected phases: 3p
[lp-1 ] DEBUG 2024/06/18 09:10:25 detected active phases: 1p
[lp-1 ] DEBUG 2024/06/18 09:10:25 !! session: chargeRater.chargedEnergy=3.0 - chargedAtStartup=0.0
[lp-1 ] DEBUG 2024/06/18 09:10:25 charge total import: 3925.700kWh
[lp-1 ] DEBUG 2024/06/18 09:10:25 charger status: C
[lp-1 ] DEBUG 2024/06/18 09:10:25 soc estimated: 80.17% (vehicle: 79.00%)
[lp-1 ] DEBUG 2024/06/18 09:10:25 vehicle soc: 80%
[lp-1 ] DEBUG 2024/06/18 09:10:25 vehicle soc limit: 96%
[lp-1 ] DEBUG 2024/06/18 09:10:25 vehicle range: 409km
[lp-1 ] DEBUG 2024/06/18 09:10:25 !! active phases: 1p = min(1p measured 0p vehicle 3p physical 0p charger)
[lp-1 ] DEBUG 2024/06/18 09:10:25 pv charge current: 21.4A = 16A + 5.35A (-1231W @ 1p)
[site ] DEBUG 2024/06/18 09:10:35 ----
[lp-1 ] DEBUG 2024/06/18 09:10:35 charge power: 3649W
[lp-1 ] DEBUG 2024/06/18 09:10:35 charge currents: [16.1 0.018 0.018]A
[site ] WARN 2024/06/18 09:10:35 smartCost: outdated

What type of operating system are you running?

Linux Homeassistant Add.On

Version

0.127.2

0163deralex avatar Jun 18 '24 07:06 0163deralex

Hm, scheint wohl ein vorrübergehendes Problem bei Tibber gewesen zu sein. Die Fehlermeldungen sind nun weg bzw das System hat sich eben neu gestartet und jetzt sind auch die Preise wieder korrekt.... :( Ich beobachte das mal weiter.

0163deralex avatar Jun 18 '24 07:06 0163deralex