evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Bereistellung der Geolocation des Autos im Rest API

Open Marty56 opened this issue 1 month ago • 10 comments

Hallo,

Es wäre schön, wenn ihr die Geolocation des Autos, falls die über das Auto API verfügbar ist, auch als Teil der Eurer Rest Schnittstelle bereitstellen würde. Für die "Granny" Wallbox implementierung wird die Information benötigt, somit habt ihr sie verfügbar.

Grüße Martin

Marty56 avatar Oct 16 '26 13:10 Marty56

Feature request: expose the vehicle's geolocation in the REST API/state.

Some vehicle integrations already implement the optional api.VehiclePosition interface (Position() (lat, lon, error), api/api.go), e.g. Tesla, BMW, Porsche, Fiat, Pleos, Bluelink. But nothing in core/ or server/ currently reads it, so the position is not published to the API/state. Exposing it would mean polling it in the vehicle status update and adding it to the published vehicle state (and server/openapi.yaml). It is only available for vehicles whose integration supports it.

Open points for a maintainer decision: which vehicles should be polled (position queries can cost API quota or wake the vehicle), and whether it should be opt-in.

@Marty56 could you tell us which vehicle/brand you use and how the "Granny" wallbox would consume the data (polling /api/state or something else)?

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 16 '26 13:10 github-actions[bot]

I am using Skoda Enyaq and home assistant. The benefits

  1. less traffic for the car Api because presently I have home assistant and evcc using the VW/Skoda API simultaneously.
  2. I would need one integration less in home assistant, becasue I would use the Rest API to access the location.

Marty56 avatar Oct 16 '26 13:10 Marty56

Thanks for the details. Note for scope: the Skoda integration (vehicle/skoda/) does not implement api.VehiclePosition today, so even with REST API exposure it would yield no location for an Enyaq until Skoda position support is added separately (if the Skoda API offers a position endpoint, which is unverified).

Related: #34870 (Tesla geofence uses the vehicle position, different purpose).

This stays a feature request needing a maintainer decision on polling and opt-in behavior.

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 16 '26 13:10 github-actions[bot]

Es wäre schön, wenn ihr die Geolocation des Autos, falls die über das Auto API verfügbar ist, auch als Teil der Eurer Rest Schnittstelle bereitstellen würde.

Was für eine Rest SSt.? Wo soll da konkret etwas bereitgestellt werden?

andig avatar Oct 16 '26 15:10 andig

Euer Rest API. Was versteht du da nicht, echte Frage. Longitude und Latitude des Autos, das versteht man normalerweise unter Geolocation

Marty56 avatar Oct 16 '26 15:10 Marty56

Du redest von /api/state? Oder wovon?

andig avatar Oct 16 '26 15:10 andig

https://docs.evcc.io/de/smarthome/home-assistant/#rest-api

Marty56 avatar Oct 16 '26 17:10 Marty56

@Marty56 warum willst du denn den weg evcc - > home assistant gehen, gibt es da einen speziellen Grund?

Es gibt in Home Assistant ja sehr viele Sensoren (die du evtl nicht zwingend brauchst, aber irgendwann der nächste etwas zusätzlich haben möchte).. Sinnvoll und einfacher wäre es daher wenn das Auto in Home Assistant integriert wird, da alle Sensoren lädt und dann in evcc einfach ein Home Assistant Fahrzeug anlegst.

SolarPower2024 avatar Oct 16 '26 20:10 SolarPower2024

Ich will nicht weg von Evcc. Das kann ich auch gar nicht, weil meine Wallbox durch Home assistant gar nicht unterstützt wird.

Die Gründe für den Feature Request habe ich oben schon beschrieben

Marty56 avatar Oct 17 '26 01:10 Marty56

Das meinte ich ja gar nicht. Nicht weg von evcc. Rein das Fahrzeug in evcc mit Home Assistant Sensoren "füttern".

SolarPower2024 avatar Oct 17 '26 05:10 SolarPower2024