evcc-io / evcc

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

Wattpilot: Connection to charger not valid #9748

Closed stadlaa closed 1 year ago

stadlaa commented 1 year ago

Describe the bug

Suddenly there was an Error, saying: connection to charger not valid! It came every 2-4sec and was not always exactly the same message but with simmilar meaning (Ithink it was sth. like: charge meter not valid!).

The Charger (Fronius WattPilot) was perfectly accessable through the Fronius App. After a restart of evcc everything worked perfectly fine.

Steps to reproduce

1. 2. 3. ...

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: evcc.local
  # 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: FroniusSmartMeter
   type: custom   
   power:
      source: modbus
      id: 1
      uri: 10.0.0.122:8899
      rtu: true # rs485 device connected using ethernet adapter
      register:
        address: 40
        type: holding #holding or input
        decode: int32s # int16|32|64, uint16|32|64, float32|64 and u|int32s + float32s
      scale: -0.1 # floating point factor applied to result, e.g. for kW to W conversion
      timeout: 2s # timeout, without unit in ns

# 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: WattPilot
    type: template
    template: fronius-wattpilot
    host: 10.0.0.120 # IP-Adresse oder Hostname
    password: waTTpilot1 # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen) (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: ZOE_10
    type: template
    template: renault
    title: ZOE|10A # Wird in der Benutzeroberfläche angezeigt (Optional)
    user:** # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.)
    password: ** # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen)
    vin: ** # Erforderlich, wenn mehrere Fahrzeuge des Herstellers vorhanden sind (Optional)
    capacity: 41 # Akkukapazität in kWh (Optional)
    mode: now # enable mode when vehicle is identified
    maxCurrent: 10  # maximum charge current (default 16A)
    minSoc: 0 # immediately charge to 0% regardless of mode unless "off" (disabled)
    targetSoc: 100 # limit charge to 90%

  - name: ZOE_16
    type: template
    template: renault
    title: ZOE|16A # Wird in der Benutzeroberfläche angezeigt (Optional)
    user: ** # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.)
    password:** # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen)
    vin: ** # Erforderlich, wenn mehrere Fahrzeuge des Herstellers vorhanden sind (Optional)
    capacity: 41 # Akkukapazität in kWh (Optional)
    mode: now # enable mode when vehicle is identified
    maxCurrent: 16  # maximum charge current (default 16A)
    minSoc: 0 # immediately charge to 0% regardless of mode unless "off" (disabled)
    targetSoc: 100 # limit charge to 90%

  - name: ZOE_20
    type: template
    template: renault
    title: ZOE|20A # Wird in der Benutzeroberfläche angezeigt (Optional)
    user: ** # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.)
    password: ** # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen)
    vin:** # Erforderlich, wenn mehrere Fahrzeuge des Herstellers vorhanden sind (Optional)
    capacity: 41 # Akkukapazität in kWh (Optional)
    mode: now # enable mode when vehicle is identified
    maxCurrent: 20  # maximum charge current (default 16A)
    minSoc: 0 # immediately charge to 0% regardless of mode unless "off" (disabled)
    targetSoc: 100 # limit charge to 90%

  - name: renaultZOE_32
    type: template
    template: renault
    title: ZOE|32A # Wird in der Benutzeroberfläche angezeigt (Optional)
    user: ** # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.)
    password: ** # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen)
    vin: ** # Erforderlich, wenn mehrere Fahrzeuge des Herstellers vorhanden sind (Optional)
    capacity: 41 # Akkukapazität in kWh (Optional)
    mode: now # enable mode when vehicle is identified
    maxCurrent: 32  # maximum charge current (default 16A)
    minSoc: 0 # immediately charge to 0% regardless of mode unless "off" (disabled)
    targetSoc: 100 # limit charge to 90%

# site describes the EVU connection, PV and home battery
site:
  title: Zuhause # display name for UI
  meters:
    grid: FroniusSmartMeter # grid meter
    # pv:
    #   - pv # list of pv inverters/ meters
    # battery:
    #   - battery # list of battery meters
    # aux:
    #   - aux # list of auxiliary meters for adjusting grid operating point
  residualPower: 0 # additional household usage margin
  prioritySoc: 0 # give home battery priority up to this soc (empty to disable)
  bufferSoc: 0 # continue charging on battery above soc (0 to disable)
  bufferStartSoc: 0 # start charging on battery above soc (0 to disable)
  maxGridSupplyWhileBatteryCharging: 0 # ignore battery charging if AC consumption is above this value
  smartCostLimit: 0 # 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: WattPilot # charger
    #meter:  # charge meter
    mode: "now" # (set default charge mode:"off","pv",minpv","now"   use "off" to disable by default if charger is publicly available
    vehicle: ZOE_16 # set default vehicle (disables vehicle detection)
    resetOnDisconnect: false # 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: 10 # minimum charge current (default 6A)
    maxCurrent: 32 # maximum charge current (default 16A)

    # remaining settings are experts-only and best left at default values
    priority: 5 # 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: always
        # 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
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 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: 0.08 # 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

    # # or variable Nordpool via elering.ee (only for LT, LV, EE, FI)
    # type: elering
    # region: ee # or lt, lv, fi

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

# 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

no error anymore

What type of operating system are you running?

Windows

Version

evcc version 0.119.0

TheFreaker86 commented 1 year ago

You published your username, Password and VINs for your Renault account. You should change your password right now (!!!) whereever this password is used and cleanse your post here for any private data immediately!

andig commented 1 year ago

/cc @mabunixda

klobin925 commented 1 year ago

Ich denke gleiches wie #7601

stadlaa commented 1 year ago

You published your username, Password and VINs for your Renault account. You should change your password right now (!!!) whereever this password is used and cleanse your post here for any private data immediately!

Thank you very much! How stupid of me!

andig commented 1 year ago

Duplikat zu https://github.com/evcc-io/evcc/issues/9806