evcc-io / evcc

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

Missed electricity flow chart #7907

Closed petosak closed 1 year ago

petosak commented 1 year ago

Describe the bug

After upgrade to 0.117 i missed electricity chart. image

Steps to reproduce

  1. upgrade to 0.117

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

# 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
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: grid
    type: custom
    power:
      source: mqtt
      topic: homeassistant/sensor/storion_grid_meter_total_power/state
      timeout: 30s # don't accept values older than timeout
      # scale: 0.001 # floating point factor applied to result, e.g. for Wh to kWh conversion
    energy:
      source: mqtt
      topic: homeassistant/sensor/storion_grid_meter_total_energy_consume_from_grid/state
      #timeout: 30s # don't accept values older than timeout
      # scale: 0.001 # floating point factor applied to result, e.g. for Wh to kWh conversion

  - name: pv
    type: custom
    power:
      source: mqtt
      topic: homeassistant/sensor/storion_total_pv_power/state
      #timeout: 30s # don't accept values older than timeout
      # scale: 0.001 # floating point factor applied to result, e.g. for Wh to kWh conversion
    energy:
      source: mqtt
      topic: homeassistant/sensor/storion_inverter_total_pv_energy/state
      #timeout: 30s # don't accept values older than timeout
      # scale: 0.001 # floating point factor applied to result, e.g. for Wh to kWh conversion

  - name: battery
    type: custom
    soc:
      source: mqtt
      topic: homeassistant/sensor/storion_battery_soc/state
      #timeout: 30s # don't accept values older than timeout
      # scale: 0.001 # floating point factor applied to result, e.g. for Wh to kWh conversion
    power:
      source: mqtt
      topic: homeassistant/sensor/storion_battery_power/state
      #timeout: 30s # don't accept values older than timeout
      # scale: 0.001 # floating point factor applied to result, e.g. for Wh to kWh conversion

# 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: phoenix-ev-eth
    host: 192.168.0.35 # IP-Adresse oder Hostname
    port: 502 # Port # Optional

# 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: id4
    type: template
    template: id
    title: VW ID.4 GTX
    user: pxxxx@gmail.com # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.)
    password: xxxxx # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen)
    vin: xxxxx # Erforderlich, wenn mehrere Fahrzeuge des Herstellers vorhanden sind # Optional
    capacity: 77 # Akkukapazität in kWh # Optional
    mode: pv
    mincurrent: 6
    maxcurrent: 16
    minSoc: 35
    targetSoc: 80
    priority: 5

# 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
    battery:
      - battery # list of battery meters
    # aux: aux # auxiliary meters for adjusting grid operating point
  residualPower: # additional household usage margin
  prioritySoc: # give home battery priority up to this soc (empty to disable)
  bufferSoc: # ignore home battery discharge above soc (empty to disable)
  maxGridSupplyWhileBatteryCharging: # ignore battery charging if AC consumption is above this value
  smartCostLimit: # set cost limit for automatic charging in PV mode

# loadpoint describes the charger, charge meter and connected vehicle
loadpoints:
  - title: Garage # display name for UI
    charger: Wallbox # charger
    #    meter: dummymeter # charge meter
    mode: "pv" # set default charge mode, use "off" to disable by default if charger is publicly available
    vehicle: id4 # set default vehicle (disables vehicle detection)
    resetOnDisconnect: true # set defaults when vehicle disconnects
    phases: 3 # 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: 1m # threshold must be exceeded for this long
      threshold: 0 # maximum import power (W)
    guardDuration: 1m # switch charger contactor not more often than this (default 5m)

# tariffs are the fixed or variable tariffs
tariffs:
  currency: CZK # three letter ISO-4217 currency code (default EUR)
  grid:
    # either static grid price (or price zones)
    type: fixed
    price: 6 # CZK/kWh
    # zones:
    #   - days: Mo-Fr
    #     hours: 2-5
    #     price: 0.2 # EUR/kWh
    #   - days: Sa,So
    #     price: 0.15 # EUR/kWh

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

    # # or variable via awattar
    # type: awattar
    # region: de # optional, choose at for Austria
  feedin:
    # rate for feeding excess (pv) energy to the grid
    type: fixed
    price: 6 # CZK/kWh
  planner:
    # planner tariff can be used for target charging if not grid tariff is specified
    # GrünStromIndex (Germany only) or ElectricityMaps provide CO2 intensity forecast

    # type: grünstromindex
    # zip: <zip>

    # type: electricitymaps
    # uri: <uri>
    # token: <token>
    # zone: DE

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

# 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: xxx:xxx
      chats:
        - -xxx
  # - 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 2023/05/10 16:31:12 pv charge current: 0.614A = 0A + 0.614A (-424W @ 3p)
[site  ] DEBUG 2023/05/10 16:31:21 ----
[lp-1  ] DEBUG 2023/05/10 16:31:21 charge power: 0W
[site  ] DEBUG 2023/05/10 16:31:21 pv power: 1102W
[site  ] DEBUG 2023/05/10 16:31:21 battery soc: 100%
[site  ] DEBUG 2023/05/10 16:31:21 battery power: -427W
[site  ] DEBUG 2023/05/10 16:31:21 grid power: 37W
[site  ] DEBUG 2023/05/10 16:31:21 site power: -390W
[lp-1  ] DEBUG 2023/05/10 16:31:21 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/10 16:31:22 charge meter total import: 1024.391kWh
[lp-1  ] DEBUG 2023/05/10 16:31:22 charger status: B
[lp-1  ] DEBUG 2023/05/10 16:31:22 pv charge current: 0.565A = 0A + 0.565A (-390W @ 3p)
[site  ] DEBUG 2023/05/10 16:31:31 ----
[lp-1  ] DEBUG 2023/05/10 16:31:31 charge power: 0W
[site  ] DEBUG 2023/05/10 16:31:31 pv power: 1139W
[site  ] DEBUG 2023/05/10 16:31:31 battery soc: 100%
[site  ] DEBUG 2023/05/10 16:31:31 battery power: -454W
[site  ] DEBUG 2023/05/10 16:31:31 grid power: -26W
[site  ] DEBUG 2023/05/10 16:31:31 site power: -480W
[lp-1  ] DEBUG 2023/05/10 16:31:31 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/10 16:31:32 charge meter total import: 1024.391kWh
[lp-1  ] DEBUG 2023/05/10 16:31:32 charger status: B
[lp-1  ] DEBUG 2023/05/10 16:31:32 pv charge current: 0.696A = 0A + 0.696A (-480W @ 3p)
[site  ] DEBUG 2023/05/10 16:31:41 ----
[lp-1  ] DEBUG 2023/05/10 16:31:41 charge power: 0W
[site  ] DEBUG 2023/05/10 16:31:41 pv power: 1135W
[site  ] DEBUG 2023/05/10 16:31:41 battery soc: 100%
[site  ] DEBUG 2023/05/10 16:31:41 battery power: -480W
[site  ] DEBUG 2023/05/10 16:31:41 grid power: -9W
[site  ] DEBUG 2023/05/10 16:31:41 site power: -489W
[lp-1  ] DEBUG 2023/05/10 16:31:41 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/10 16:31:42 charge meter total import: 1024.391kWh
[lp-1  ] DEBUG 2023/05/10 16:31:42 charger status: B
[lp-1  ] DEBUG 2023/05/10 16:31:42 pv charge current: 0.709A = 0A + 0.709A (-489W @ 3p)
[site  ] DEBUG 2023/05/10 16:31:51 ----
[lp-1  ] DEBUG 2023/05/10 16:31:51 charge power: 0W
[site  ] DEBUG 2023/05/10 16:31:51 pv power: 1144W
[site  ] DEBUG 2023/05/10 16:31:51 battery soc: 100%
[site  ] DEBUG 2023/05/10 16:31:51 battery power: -427W
[site  ] DEBUG 2023/05/10 16:31:51 grid power: -31W
[site  ] DEBUG 2023/05/10 16:31:51 site power: -458W
[lp-1  ] DEBUG 2023/05/10 16:31:51 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/10 16:31:52 charge meter total import: 1024.391kWh
[lp-1  ] DEBUG 2023/05/10 16:31:52 charger status: B
[lp-1  ] DEBUG 2023/05/10 16:31:52 pv charge current: 0.664A = 0A + 0.664A (-458W @ 3p)
[site  ] DEBUG 2023/05/10 16:32:01 ----
[lp-1  ] DEBUG 2023/05/10 16:32:01 charge power: 0W
[site  ] DEBUG 2023/05/10 16:32:01 pv power: 1144W
[site  ] DEBUG 2023/05/10 16:32:01 battery soc: 100%
[site  ] DEBUG 2023/05/10 16:32:01 battery power: -507W
[site  ] DEBUG 2023/05/10 16:32:01 grid power: 5W
[site  ] DEBUG 2023/05/10 16:32:01 site power: -502W
[lp-1  ] DEBUG 2023/05/10 16:32:01 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/10 16:32:02 charge meter total import: 1024.391kWh
[lp-1  ] DEBUG 2023/05/10 16:32:02 charger status: B
[lp-1  ] DEBUG 2023/05/10 16:32:02 pv charge current: 0.728A = 0A + 0.728A (-502W @ 3p)
[site  ] DEBUG 2023/05/10 16:32:11 ----
[lp-1  ] DEBUG 2023/05/10 16:32:11 charge power: 0W
[site  ] DEBUG 2023/05/10 16:32:11 pv power: 1149W
[site  ] DEBUG 2023/05/10 16:32:11 battery soc: 100%
[site  ] DEBUG 2023/05/10 16:32:11 battery power: -454W
[site  ] DEBUG 2023/05/10 16:32:11 grid power: -39W
[site  ] DEBUG 2023/05/10 16:32:11 site power: -493W
[lp-1  ] DEBUG 2023/05/10 16:32:11 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/10 16:32:12 charge meter total import: 1024.391kWh
[lp-1  ] DEBUG 2023/05/10 16:32:12 charger status: B
[lp-1  ] DEBUG 2023/05/10 16:32:12 pv charge current: 0.714A = 0A + 0.714A (-493W @ 3p)
[site  ] DEBUG 2023/05/10 16:32:21 ----
[lp-1  ] DEBUG 2023/05/10 16:32:21 charge power: 0W
[site  ] DEBUG 2023/05/10 16:32:21 pv power: 1170W
[site  ] DEBUG 2023/05/10 16:32:21 battery soc: 100%
[site  ] DEBUG 2023/05/10 16:32:21 battery power: -507W
[site  ] DEBUG 2023/05/10 16:32:21 grid power: -15W
[site  ] DEBUG 2023/05/10 16:32:21 site power: -522W
[lp-1  ] DEBUG 2023/05/10 16:32:21 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/10 16:32:22 charge meter total import: 1024.391kWh
[lp-1  ] DEBUG 2023/05/10 16:32:22 charger status: B
[lp-1  ] DEBUG 2023/05/10 16:32:22 pv charge current: 0.757A = 0A + 0.757A (-522W @ 3p)
[site  ] DEBUG 2023/05/10 16:32:31 ----
[lp-1  ] DEBUG 2023/05/10 16:32:31 charge power: 0W
[site  ] DEBUG 2023/05/10 16:32:31 pv power: 1188W
[site  ] DEBUG 2023/05/10 16:32:31 battery soc: 100%
[site  ] DEBUG 2023/05/10 16:32:31 battery power: -481W
[site  ] DEBUG 2023/05/10 16:32:31 grid power: 8W
[site  ] DEBUG 2023/05/10 16:32:31 site power: -473W
[lp-1  ] DEBUG 2023/05/10 16:32:31 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/10 16:32:32 charge meter total import: 1024.391kWh
[lp-1  ] DEBUG 2023/05/10 16:32:32 charger status: B
[lp-1  ] DEBUG 2023/05/10 16:32:32 pv charge current: 0.686A = 0A + 0.686A (-473W @ 3p)
[site  ] DEBUG 2023/05/10 16:32:41 ----
[lp-1  ] DEBUG 2023/05/10 16:32:41 charge power: 0W
[site  ] DEBUG 2023/05/10 16:32:41 pv power: 1196W
[site  ] DEBUG 2023/05/10 16:32:41 battery soc: 100%
[site  ] DEBUG 2023/05/10 16:32:41 battery power: -534W
[site  ] DEBUG 2023/05/10 16:32:41 grid power: -9W
[site  ] DEBUG 2023/05/10 16:32:41 site power: -543W
[lp-1  ] DEBUG 2023/05/10 16:32:42 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/05/10 16:32:42 charge meter total import: 1024.391kWh
[lp-1  ] DEBUG 2023/05/10 16:32:42 charger status: B
[lp-1  ] DEBUG 2023/05/10 16:32:42 pv charge current: 0.787A = 0A + 0.787A (-543W @ 3p)

What type of operating system are you running?

HomeAssistant Add-on

Version

0.117

andig commented 1 year ago

See https://github.com/evcc-io/evcc/issues/7892