evcc-io / evcc

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

No evcc update possible since evcc 0.122.1 #15708

Closed frog60 closed 2 months ago

frog60 commented 2 months ago

Describe the bug

After updating evcc to a newer version than 0.122.1 the addon start failes always.

I am a sponsor, so I decided to raise this issues after several months to get the benefits as sponsor ;-)

Hardware: Raspi 4

Steps to reproduce

  1. install newer version than evcc 0.122.1
  2. automatic restart of the addon
  3. often not always after several restarts I was able to assign the evcc admin password

image

evcc does not start with full screen info:

image

image

...

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: homeassistant.local
  # host: evcc.local
  # port is the listening port for UI and api
  # evcc will listen on all available interfaces
  port: 7070

interval: 30s # control cycle interval - < 30 sec könnte System zum Schwingen bringen

# 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
# used for sharing data 
plant: <...>

# 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: my_rct_grid
    type: template
    template: rct-power
    usage: grid
    host: xxx.xxx.xxx.xx
  - name: my_rct_pv
    type: template
    template: rct-power
    usage: pv
    host: xxx.xxx.xxx.xx
  - name: my_rct_battery
    type: template
    template: rct-power
    usage: battery
    host: xxx.xxx.xxx.xx
    capacity: 8.64
  # - name: my_fritz_pv1 # Bluetti
  #  type: template
  #  template: fritzdect
  #  usage: pv
    #uri: https://fritz.box # Optional
  #  user: <...>
  #  password: <...>
  #  ain: <...>
  # raw config for leading ain: "0..": refer to https://github.com/evcc-io/evcc/issues/6399#issuecomment-1442459448
  - name: my_fritz_pv2 # Sued1
    type: template
    template: fritzdect
    usage: pv
    #uri: https://fritz.box # Optional
    user: <...>
    password: <...>
    ain: <...>
  - name: my_fritz_pv3 # Nachfuehrung
    type: template
    template: fritzdect
    usage: pv
    #uri: https://fritz.box # Optional
    user: homeassistant
    password: greenHouse#2023
    ain: 116570368105
#  - name: my_fritz_pv4
#    type: template
#    template: fritzdect
#    usage: pv
#    #uri: https://fritz.box # Optional
#    user: homeassistant
#    password: greenHouse#2023
#    ain: 116570268956
  - name: my_deye_biohort
    type: custom
    power: # power (W)
      source: mqtt # plugin type
      topic: sensor/inverters/deye_biohort_total_ac_output_power_active
      timeout: 360s
  - name: my_deye_sud_3
    type: custom
    power: # power (W)
      source: mqtt # plugin type
      topic: sensor/inverters/deye_sud_3_total_ac_output_power_active
      timeout: 360s
  - name: my_bluetti_battery
    type: custom
    power: # power (W)
      source: mqtt # plugin type
      # topic: bluetti/state/AC200M-2236008116154/dc_output_power
      # nachfolgender Wert scheint noch nicht übernommen zu werden
      topic: sensor/ac200max/ac200m_dc_output_power_2
      timeout: 360s # don't accept values older than timeout
      # scale: 0.001 # floating point factor applied to result, e.g. for Wh to kWh conversion
      scale: 0.9 # negativ "charging"; positiv "discharging" - 90% efficiency after inverter
    soc: # optional battery soc (%)
      source: mqtt # plugin type
      # topic: bluetti/state/AC200M-2236008116154/total_battery_percent
      # nachfolgender Wert scheint noch nicht übernommen zu werden
      topic: sensor/ac200max/ac200m_total_battery_percent_2
      timeout: 360s # don't accept values older than timeout
    # currents: # optional currents (A)
    #  - source: # L1 plugin type
    #  - source: # L2 plugin type
    #  - source: # L3 plugin type
    capacity: 3.7
# 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: my_charger
    type: template
    template: go-e-v3
    host: xxx.xxx.xxx.xx

# 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: IONIQ_5
    type: template
    template: hyundai
    title: "IONIQ 5" # Wird in der Benutzeroberfläche angezeigt # Optional
    user: <....>
    password: <...>
    #vin: # Erforderlich, wenn mehrere Fahrzeuge des Herstellers vorhanden sind # Optional
    capacity: 72 # Akkukapazität in kWh # Optional
    phases: 3
    minCurrent: 6
    maxCurrent: 16
    identifiers:
      - "Michael Ioniq 5" # RFID token ID
      - "Christin Ioniq 5" # RFID token ID
    language: en # 'de' für Deutsch und 'en' für Englisch # Optional
  - name: FIAT_500e
    type: template
    template: offline
    title: "FIAT 500e" # Wird in der Benutzeroberfläche angezeigt # Optional
    capacity: 24 # Akkukapazität in kWh # Optional 
    phases: 1
    minCurrent: 8
    maxCurrent: 16
    identifiers:
      - "Michael 500e" # RFID token ID
      - "Christin 500e" # RFID token ID
  - name: FIAT_500e_La_Prima
    type: template
    template: offline
    title: "FIAT 500e La Prima" # Wird in der Benutzeroberfläche angezeigt # Optional
    capacity: 42 # Akkukapazität in kWh # Optional 
    phases: 3
    minCurrent: 6
    maxCurrent: 16
    identifiers:
      - "Peppino" # RFID token ID
  - name: Greenhouse_Gast
    type: template
    template: offline
    title: "Greenhouse Gast" # Wird in der Benutzeroberfläche angezeigt # Optional
    # capacity: 24 # Akkukapazität in kWh # Optional 
    phases: 1
    minCurrent: 8
    maxCurrent: 16
    identifiers:
      - "Gast" # RFID token ID
    # site describes the EVU connection, PV and home battery
site:
  title: Greenhouse # display name for UI
  meters:
    grid: my_rct_grid # grid meter
    pv: # list of pv inverters/ meters
      - my_rct_pv
      # - my_fritz_pv1
      - my_fritz_pv2
      - my_fritz_pv3
      #- my_fritz_pv4
      - my_deye_biohort
      - my_deye_sud_3
      #- my_deye_inverters
    battery: # list of battery meters
      - my_rct_battery 
      - my_bluetti_battery
    #aux:
  residualPower: 400 # standard house consumption
#  prioritySoc: 60 # obsolete - give home battery priority up to this soc (empty to disable)
#  bufferSoc: 95 # obsolete - ignore home battery discharge above soc (empty to disable)

# loadpoint describes the charger, charge meter and connected vehicle
loadpoints:
  - title: Abstellplatz # display name for UI
    charger: my_charger # charger
    # meter: # charge meter
    mode: pv # set default charge mode, use "off" to disable by default if charger is publicly available
    vehicle: FIAT_500e # set default vehicle (disables vehicle detection)
    #resetOnDisconnect: true # set defaults when vehicle disconnects
    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) - deprecated
#    maxCurrent: 16 # maximum charge current (default 16A) - deprecated

    # remaining settings are experts-only and best left at default values
    # priority: # 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: 3m # 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)

# tariffs are the fixed or variable tariffs
# cheap (tibber/awattar) can be used to define a tariff rate considered cheap enough for charging
tariffs:
  currency: EUR # three letter ISO-4217 currency code (default EUR)
  grid:
    # either static grid price (or price zones)
    type: fixed
    price: 0.5027 # EUR/kWh
    zones:
      - days: Mo-Fr
        hours: 2-5
        price: 0.5027 # EUR/kWh
      - days: Sa,So
        price: 0.5027 # EUR/kWh

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

    # # or variable via awattar
    # type: awattar
    # cheap: 0.2 # EUR/kWh
    # region: de # optional, choose at for Austria
  feedin:
    # rate for feeding excess (pv) energy to the grid
    type: fixed
    price: 0.10 # EUR/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: mqttuser
  password: greenHouse

# 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?
    error: # errors (deduplicated)
      title: "Error: {{ .error }}"
    warn: # warnings (deduplicated)
      title: "Warning: {{ .warn }}"
  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  ] INFO 2024/08/26 19:37:42 site config:
[site  ] INFO 2024/08/26 19:37:42   meters:      grid ✓ pv ✓ battery ✓
[site  ] INFO 2024/08/26 19:37:42     grid:      power ✓ energy ✓ currents ✗
[site  ] INFO 2024/08/26 19:37:42     pv 1:      power ✓ energy ✗ currents ✗
[site  ] INFO 2024/08/26 19:37:42     pv 2:      power ✓ energy ✓ currents ✗
[site  ] INFO 2024/08/26 19:37:42     pv 3:      power ✓ energy ✓ currents ✗
[site  ] INFO 2024/08/26 19:37:42     pv 4:      power ✓ energy ✗ currents ✗
[site  ] INFO 2024/08/26 19:37:42     pv 5:      power ✓ energy ✗ currents ✗
[site  ] INFO 2024/08/26 19:37:42     battery 1: power ✓ energy ✗ currents ✗ soc ✓ capacity ✓
[site  ] INFO 2024/08/26 19:37:42     battery 2: power ✓ energy ✗ currents ✗ soc ✓ capacity ✓
[site  ] INFO 2024/08/26 19:37:42   vehicles:
[site  ] INFO 2024/08/26 19:37:42     vehicle 1: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[site  ] INFO 2024/08/26 19:37:42     vehicle 2: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[site  ] INFO 2024/08/26 19:37:42     vehicle 3: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[site  ] INFO 2024/08/26 19:37:42     vehicle 4: range ✓ finish ✓ status ✓ climate ✗ wakeup ✓
[lp-1  ] INFO 2024/08/26 19:37:42 loadpoint 1:
[lp-1  ] INFO 2024/08/26 19:37:42   mode:        pv
[lp-1  ] INFO 2024/08/26 19:37:42   charger:     power ✓ energy ✓ currents ✓ phases ✓ wakeup ✗
[lp-1  ] INFO 2024/08/26 19:37:42   meters:      charge ✓
[lp-1  ] INFO 2024/08/26 19:37:42     charge:    power ✓ energy ✓ currents ✓
[lp-1  ] DEBUG 2024/08/26 19:37:42 phase timer inactive
[lp-1  ] DEBUG 2024/08/26 19:37:42 pv timer inactive
[lp-1  ] INFO 2024/08/26 19:37:42 vehicle updated: unknown -> FIAT 500e
[site  ] DEBUG 2024/08/26 19:37:42 ----
[lp-1  ] DEBUG 2024/08/26 19:37:42 charge power: 0W
[lp-1  ] DEBUG 2024/08/26 19:37:42 charge currents: [0 0 0]A
[main  ] INFO 2024/08/26 19:37:42 new version available: 0.130.4
Using config file: /config/evcc.yaml
starting evcc: 'EVCC_DATABASE_DSN=/data/evcc.db evcc --config /config/evcc.yaml'
[main  ] INFO 2024/08/26 19:40:40 evcc 0.130.3
[main  ] INFO 2024/08/26 19:40:40 using config file: /config/evcc.yaml
[mqtt  ] INFO 2024/08/26 19:40:41 connecting evcc-2070517360 at tcp://localhost:1883
[main  ] INFO 2024/08/26 19:40:41 listening at :7070
[lp-1  ] DEBUG 2024/08/26 19:40:42 charge total import: 4521.571kWh
[site  ] WARN 2024/08/26 19:40:44 vehicle 'FIAT 500e' does not support automatic detection
[site  ] WARN 2024/08/26 19:40:44 vehicle 'FIAT 500e La Prima' does not support automatic detection
[site  ] WARN 2024/08/26 19:40:44 vehicle 'Greenhouse Gast' does not support automatic detection
[site  ] INFO 2024/08/26 19:40:44 site config:
[site  ] INFO 2024/08/26 19:40:44   meters:      grid ✓ pv ✓ battery ✓
[site  ] INFO 2024/08/26 19:40:44     grid:      power ✓ energy ✓ currents ✗
[site  ] INFO 2024/08/26 19:40:44     pv 1:      power ✓ energy ✗ currents ✗
[site  ] INFO 2024/08/26 19:40:44     pv 2:      power ✓ energy ✓ currents ✗
[site  ] INFO 2024/08/26 19:40:44     pv 3:      power ✓ energy ✓ currents ✗
[site  ] INFO 2024/08/26 19:40:44     pv 4:      power ✓ energy ✗ currents ✗
[site  ] INFO 2024/08/26 19:40:44     pv 5:      power ✓ energy ✗ currents ✗
[site  ] INFO 2024/08/26 19:40:44     battery 1: power ✓ energy ✗ currents ✗ soc ✓ capacity ✓
[site  ] INFO 2024/08/26 19:40:44     battery 2: power ✓ energy ✗ currents ✗ soc ✓ capacity ✓
[site  ] INFO 2024/08/26 19:40:44   vehicles:
[site  ] INFO 2024/08/26 19:40:44     vehicle 1: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[site  ] INFO 2024/08/26 19:40:44     vehicle 2: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[site  ] INFO 2024/08/26 19:40:44     vehicle 3: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[site  ] INFO 2024/08/26 19:40:44     vehicle 4: range ✓ finish ✓ status ✓ climate ✗ wakeup ✓
[lp-1  ] INFO 2024/08/26 19:40:44 loadpoint 1:
[lp-1  ] INFO 2024/08/26 19:40:44   mode:        pv
[lp-1  ] INFO 2024/08/26 19:40:44   charger:     power ✓ energy ✓ currents ✓ phases ✓ wakeup ✗
[lp-1  ] INFO 2024/08/26 19:40:44   meters:      charge ✓
[lp-1  ] INFO 2024/08/26 19:40:44     charge:    power ✓ energy ✓ currents ✓
[lp-1  ] DEBUG 2024/08/26 19:40:44 phase timer inactive
[lp-1  ] DEBUG 2024/08/26 19:40:44 pv timer inactive
[lp-1  ] INFO 2024/08/26 19:40:44 vehicle updated: unknown -> FIAT 500e
[main  ] INFO 2024/08/26 19:40:44 new version available: 0.130.4
[site  ] DEBUG 2024/08/26 19:40:44 ----
[lp-1  ] DEBUG 2024/08/26 19:40:44 charge power: 0W
[lp-1  ] DEBUG 2024/08/26 19:40:44 charge currents: [0 0 0]A
Using config file: /config/evcc.yaml
starting evcc: 'EVCC_DATABASE_DSN=/data/evcc.db evcc --config /config/evcc.yaml'
[main  ] INFO 2024/08/26 19:43:42 evcc 0.130.3
[main  ] INFO 2024/08/26 19:43:42 using config file: /config/evcc.yaml
[mqtt  ] INFO 2024/08/26 19:43:43 connecting evcc-1642149322 at tcp://localhost:1883
[main  ] INFO 2024/08/26 19:43:43 listening at :7070
[lp-1  ] DEBUG 2024/08/26 19:43:45 charge total import: 4521.571kWh
[site  ] WARN 2024/08/26 19:43:46 vehicle 'FIAT 500e' does not support automatic detection
[site  ] WARN 2024/08/26 19:43:46 vehicle 'FIAT 500e La Prima' does not support automatic detection
[site  ] WARN 2024/08/26 19:43:46 vehicle 'Greenhouse Gast' does not support automatic detection
[site  ] INFO 2024/08/26 19:43:46 site config:
[site  ] INFO 2024/08/26 19:43:46   meters:      grid ✓ pv ✓ battery ✓
[site  ] INFO 2024/08/26 19:43:46     grid:      power ✓ energy ✓ currents ✗
[site  ] INFO 2024/08/26 19:43:46     pv 1:      power ✓ energy ✗ currents ✗
[site  ] INFO 2024/08/26 19:43:46     pv 2:      power ✓ energy ✓ currents ✗
[site  ] INFO 2024/08/26 19:43:46     pv 3:      power ✓ energy ✓ currents ✗
[site  ] INFO 2024/08/26 19:43:46     pv 4:      power ✓ energy ✗ currents ✗
[site  ] INFO 2024/08/26 19:43:46     pv 5:      power ✓ energy ✗ currents ✗
[site  ] INFO 2024/08/26 19:43:46     battery 1: power ✓ energy ✗ currents ✗ soc ✓ capacity ✓
[site  ] INFO 2024/08/26 19:43:46     battery 2: power ✓ energy ✗ currents ✗ soc ✓ capacity ✓
[site  ] INFO 2024/08/26 19:43:46   vehicles:
[site  ] INFO 2024/08/26 19:43:46     vehicle 1: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[site  ] INFO 2024/08/26 19:43:46     vehicle 2: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[site  ] INFO 2024/08/26 19:43:46     vehicle 3: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[site  ] INFO 2024/08/26 19:43:46     vehicle 4: range ✓ finish ✓ status ✓ climate ✗ wakeup ✓
[lp-1  ] INFO 2024/08/26 19:43:46 loadpoint 1:
[lp-1  ] INFO 2024/08/26 19:43:46   mode:        pv
[lp-1  ] INFO 2024/08/26 19:43:46   charger:     power ✓ energy ✓ currents ✓ phases ✓ wakeup ✗
[lp-1  ] INFO 2024/08/26 19:43:46   meters:      charge ✓
[lp-1  ] INFO 2024/08/26 19:43:46     charge:    power ✓ energy ✓ currents ✓
[lp-1  ] DEBUG 2024/08/26 19:43:46 phase timer inactive
[lp-1  ] DEBUG 2024/08/26 19:43:46 pv timer inactive
[lp-1  ] INFO 2024/08/26 19:43:46 vehicle updated: unknown -> FIAT 500e
[site  ] DEBUG 2024/08/26 19:43:46 ----
[lp-1  ] DEBUG 2024/08/26 19:43:46 charge power: 0W
[lp-1  ] DEBUG 2024/08/26 19:43:46 charge currents: [0 0 0]A
[main  ] INFO 2024/08/26 19:43:46 new version available: 0.130.5

What type of operating system are you running?

HomeAssistant Add-on

Version

0.130.3

naltatis commented 2 months ago

@frog60 can you please fix the title?

naltatis commented 2 months ago

Not quite sure what the issue is here. Does evcc perma-restart? Log looks like this. Or is this a UI issue. Screenshots look strange.

frog60 commented 2 months ago

Not quite sure what the issue is here. Does evcc perma-restart? Log looks like this. Or is this a UI issue. Screenshots look strange.

Right the UI looks strange. Sometimes it seems so that UI looks fine, but it restarts again.

premultiply commented 2 months ago

Maybe it is just waiting for some external meter values via MQTT? Will need better log.

Maybe just try evcc meter and see if it finishes output with no error whithin a few seconds.

frog60 commented 2 months ago

"Evcc Meter" using ssh on cmd line?

andig commented 2 months ago

We don‘t support the HA addon.