Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creating vehicle audi failed #17267

Closed
1 task done
Shianouk opened this issue Nov 14, 2024 · 1 comment
Closed
1 task done

creating vehicle audi failed #17267

Shianouk opened this issue Nov 14, 2024 · 1 comment

Comments

@Shianouk
Copy link

Describe the bug

Nach dem Update auf 0.131.5 (nightly zwecks Fehlersuche ebenfalls) erhalte ich beim initialisieren meines Fahrzeuges folgende error message:
[main ] ERROR 2024/11/14 20:08:25 creating vehicle audi failed: cannot create vehicle type 'template': cannot create vehicle type 'etron': cannot get vehicles: Message: Post "https://app-api.live-my.audi.com/vgql/v1/graphql": dial tcp: lookup app-api.live-my.audi.com: i/o timeout, Locations: [], Extensions: map[code:request_error], Path: []

bzw. in nightly:

[main ] ERROR 2024/11/14 20:22:11 creating vehicle audi failed: cannot create vehicle type 'template': cannot create vehicle type 'etron': Get "https://identity.vwgroup.io/oidc/v1/authorize?client_id=f4d0934f-32bf-4ce4-b3c4-699a7049ad26%40apps_vw-dilab_com&code_challenge=JWjPg1lbSLahj9lzvf3UmKePROEvrLHBHaH3ZQJemNw&code_challenge_method=S256&prompt=login&redirect_uri=myaudi%3A%2F%2F%2F&response_type=code+id_token+token&scope=openid+profile+mbb&ui_locales=de-DE&nonce=aFxkhgTyEyuCrswklvWoIjrwowwKGdrbcGBrgUfCDnV&state=303b9690-2401-45bd-a026-c9416e094563": dial tcp: lookup identity.vwgroup.io: i/o timeout

Bestätigen von Terms&Conditions ist in der App nicht angeboten.

Steps to reproduce

  1. Audi inkl. credentials anlegen
  2. Applikation starten
  3. Logs prüfen

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

interval: 30s # control cycle interval. Interval <30s can lead to unexpected behavior, see https://docs.evcc.io/docs/reference/configuration/interval

# database configuration for persisting charge sessions and settings
# database:
#   type: sqlite
#   dsn: <path-to-db-file>

sponsortoken: ***

# telemetry enables aggregated statistics

plant: ***

#
# 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 # use `deny` to raise modbus errors

# 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: shelly
    type: template
    template: shelly-3em
    usage: pv
    host: 192.168.188.37
#  - name: pv
#    type: ...
#  - name: battery
#    type: ...
#  - name: charge
#    type: ...
#  - name: aux
#    type: ...

# 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: Go-e
    type: template
    template: go-e-v3
    host: ***
#    status: A # optional
#    power: 0 # optional
#    enabled: true # 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: audi
    type: template
    template: audi
    title: Audi Q4 e-tron
    capacity: 77 # kWh
    user: *** # user
    password: *** # password
    vin: ***
#    onIdentify: # set defaults when vehicle is identified
#      mode: pv # enable PV-charging when vehicle is identified

# site describes the EVU connection, PV and home battery
site:
  title: Home # display name for UI
  meters:
#   grid: shelly # grid meter
   pv: shelly     
#    battery:
#      - battery # list of battery meters
#    aux:
#      - aux # list of auxiliary meters for adjusting grid operating point
  residualPower: # additional household usage margin
  maxGridSupplyWhileBatteryCharging: 0 # ignore battery charging if AC consumption is above this value

# loadpoint describes the charger, charge meter and connected vehicle
loadpoints:
  - title: Garage # display name for UI
    charger: Go-e # charger
#    meter: charge # external charge meter (if charger has no meter included). NOT grid or pv meter.
#    mode: "off" # default charge mode to apply when vehicle is disconnected; use "off" to disable by default if charger is publicly available

    # 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: 3m # threshold must be exceeded for this long
      threshold: 0 # maximum import power (W)

# 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.2863 # EUR/kWh
#    zones:
#      - days: Mon-Fri
#        hours: 2-5
#        price: 0.2 # EUR/kWh
#      - days: Sat,Sun
#        price: 0.15 # EUR/kWh

    # or variable tariffs
    # type: tibber
    # token: "476c477d8a039529478ebd690d35ddd80e3308ffc49b59c65b142321aee963a4" # access token
    # homeid: "cc83e83e-8cbf-4595-9bf7-c3cf192f7d9c" # 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: octopusenergy
    # tariff: AGILE-FLEX-22-11-25 # Tariff code
    # region: A # optional

    # type: elering # Nordpool
    # region: ee # or lt, lv, fi
    # charges: # optional, additional charges per kWh
    # tax: # optional, additional tax (0.1 for 10%)

    # type: energinet # Energinet using the price in DKK
    # region: dk1 # or dk2
    # charges: # optional, additional charges per kWh
    # tax: # optional, additional tax (0.1 for 10%)

    # type: entsoe # Entso-E european market data
    # domain: BZN|DE-LU # https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html#_areas
    # securitytoken: # api token
    # charges: # optional, additional charges per kWh
    # tax: # optional, additional tax (0.1 for 10%)

    # type: pun # PUN - Prezzo unico nazionale - Hourly Italian wholesale prices
    # charges: 0 # optional, additional charges per kWh
    # tax: 0 # optional, additional tax (0.1 for 10%)

    # type: amber
    # token: # api token from https://app.amber.com.au/developers/
    # siteid: # site ID returned by the API
    # channel: general

    # type: custom # price from a plugin source; see https://docs.evcc.io/docs/reference/plugins
    # price:
    #   source: http
    #   uri: https://example.org/price.json
    #   jq: .price.current

  feedin:
    # rate for feeding excess (pv) energy to the grid
    type: fixed
    price: 0.1231 # EUR/kWh

    # type: octopusenergy
    # tariff: AGILE-FLEX-22-11-25 # Tariff code
    # region: A # optional

    # type: amber
    # token: # api token from https://app.amber.com.au/developers/
    # siteid: # site ID returned by the API
    # channel: feedIn
  co2:
    # co2 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> # needs to be a token with forecast (not in the free tier)
    # zone: DE

    # type: ngeso # National Grid Electricity System Operator data (Great Britain only) https://carbonintensity.org.uk/
    # provides national data if both region and postcode are omitted - Choose ONE only!
    # region: 1 # optional, coarser than using a postcode - The region details are at https://carbon-intensity.github.io/api-definitions/#region-list
    # postcode: SW1 # optional - Outward postcode i.e. RG41 or SW1 or TF8. Do not include full postcode, outward postcode only

# 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

[main ] INFO 2024/11/14 20:21:59 evcc 0.131.5 (6836749c)
[main ] INFO 2024/11/14 20:21:59 using config file: /etc/evcc.yaml
[db ] INFO 2024/11/14 20:21:59 using sqlite database: /root/.evcc/evcc.db
[main ] INFO 2024/11/14 20:22:06 listening at :7070
[main ] ERROR 2024/11/14 20:22:11 creating vehicle audi failed: cannot create vehicle type 'template': cannot create vehicle type 'etron': Get "https://identity.vwgroup.io/oidc/v1/authorize?client_id=f4d0934f-32bf-4ce4-b3c4-699a7049ad26%40apps_vw-dilab_com&code_challenge=JWjPg1lbSLahj9lzvf3UmKePROEvrLHBHaH3ZQJemNw&code_challenge_method=S256&prompt=login&redirect_uri=myaudi%3A%2F%2F%2F&response_type=code+id_token+token&scope=openid+profile+mbb&ui_locales=de-DE&nonce=aFxkhgTyEyuCrswklvWoIjrwowwKGdrbcGBrgUfCDnV&state=303b9690-2401-45bd-a026-c9416e094563": dial tcp: lookup identity.vwgroup.io: i/o timeout
[lp-1 ] DEBUG 2024/11/14 20:22:18 charge total import: 324.056kWh
[site ] INFO 2024/11/14 20:22:18 site config:
[site ] INFO 2024/11/14 20:22:18 meters: grid ✗ pv ✓ battery ✗
[site ] INFO 2024/11/14 20:22:18 pv 1: power ✓ energy ✓ currents ✓
[site ] INFO 2024/11/14 20:22:18 vehicles:
[site ] INFO 2024/11/14 20:22:18 vehicle 1: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[lp-1 ] INFO 2024/11/14 20:22:18 loadpoint 1:
[lp-1 ] INFO 2024/11/14 20:22:18 mode: off
[lp-1 ] INFO 2024/11/14 20:22:18 charger: power ✓ energy ✓ currents ✓ phases ✓ wakeup ✗
[lp-1 ] INFO 2024/11/14 20:22:18 meters: charge ✓
[lp-1 ] INFO 2024/11/14 20:22:18 charge: power ✓ energy ✓ currents ✓
[lp-1 ] DEBUG 2024/11/14 20:22:18 phase timer inactive
[lp-1 ] DEBUG 2024/11/14 20:22:18 pv timer inactive
[site ] DEBUG 2024/11/14 20:22:18 ----
[lp-1 ] DEBUG 2024/11/14 20:22:18 charge power: 0W
[lp-1 ] DEBUG 2024/11/14 20:22:18 charge currents: [0 0 0]A
[site ] DEBUG 2024/11/14 20:22:18 pv power: 0W
[site ] DEBUG 2024/11/14 20:22:18 site power: 0W
[lp-1 ] DEBUG 2024/11/14 20:22:18 charge total import: 324.056kWh
[lp-1 ] DEBUG 2024/11/14 20:22:18 charger status: B
[lp-1 ] DEBUG 2024/11/14 20:22:18 charge start energy: 324.056kWh
[lp-1 ] INFO 2024/11/14 20:22:18 car connected
[lp-1 ] DEBUG 2024/11/14 20:22:18 vehicle api refresh
[lp-1 ] DEBUG 2024/11/14 20:22:18 pv timer elapse
[lp-1 ] DEBUG 2024/11/14 20:22:18 pv timer inactive
[lp-1 ] DEBUG 2024/11/14 20:22:18 charge total import: 324.056kWh
[lp-1 ] DEBUG 2024/11/14 20:22:18 !! pvScalePhases DOWN activePhases: 3, available power: 0W, scalable: true
[lp-1 ] DEBUG 2024/11/14 20:22:18 available power 0W < 4140W min 3p threshold
[lp-1 ] DEBUG 2024/11/14 20:22:18 phase scale1p in 0s
[lp-1 ] DEBUG 2024/11/14 20:22:18 switched phases: 1p
[lp-1 ] DEBUG 2024/11/14 20:22:18 phase timer inactive
[lp-1 ] DEBUG 2024/11/14 20:22:18 pv charge current: 0A = 0A + -0A (0W @ 1p)
[lp-1 ] DEBUG 2024/11/14 20:22:18 pv enable timer reset
[lp-1 ] DEBUG 2024/11/14 20:22:18 pv timer inactive
[lp-1 ] INFO 2024/11/14 20:22:40 vehicle updated: unknown -> Audi Q4 e-tron
[site ] DEBUG 2024/11/14 20:22:48 ----
[lp-1 ] DEBUG 2024/11/14 20:22:48 charge power: 0W
[lp-1 ] DEBUG 2024/11/14 20:22:48 charge currents: [0 0 0]A
[site ] DEBUG 2024/11/14 20:22:48 pv power: 0W
[site ] DEBUG 2024/11/14 20:22:48 site power: 0W
[lp-1 ] DEBUG 2024/11/14 20:22:48 charge total import: 324.056kWh
[lp-1 ] DEBUG 2024/11/14 20:22:48 charger status: B
[lp-1 ] DEBUG 2024/11/14 20:22:48 switched phases: 3p
[lp-1 ] DEBUG 2024/11/14 20:22:48 max charge current: 16A
[lp-1 ] DEBUG 2024/11/14 20:22:48 charger enable
[lp-1 ] DEBUG 2024/11/14 20:22:48 wake-up timer: start
[lp-1 ] DEBUG 2024/11/14 20:22:48 pv timer elapse
[lp-1 ] DEBUG 2024/11/14 20:22:48 pv timer inactive
[site ] DEBUG 2024/11/14 20:23:18 ----
[lp-1 ] DEBUG 2024/11/14 20:23:18 charge power: 3211W
[lp-1 ] DEBUG 2024/11/14 20:23:18 charge currents: [4.94 5.02 5.02]A
[site ] DEBUG 2024/11/14 20:23:18 pv power: 0W
[site ] DEBUG 2024/11/14 20:23:18 site power: 3211W
[lp-1 ] DEBUG 2024/11/14 20:23:18 charge total import: 324.070kWh
[lp-1 ] DEBUG 2024/11/14 20:23:18 charger status: C
[lp-1 ] DEBUG 2024/11/14 20:23:18 charge start energy: 324.070kWh
[lp-1 ] INFO 2024/11/14 20:23:18 start charging ->
[lp-1 ] DEBUG 2024/11/14 20:23:18 wake-up timer: stop
[site ] ERROR 2024/11/14 20:23:24 telemetry: upload failed: Post "https://api.evcc.io/v1/charge": context deadline exceeded

What type of operating system are you running?

Docker container

Nightly build

  • I have verified that the issue is reproducible with the latest nightly build

Version

evcc version 0.131.5 (6836749)

@Shianouk
Copy link
Author

Hat sich nach langem probieren und nach dem erstellen des Bugs von selbst gelöst :-O

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant