Bereistellung der Geolocation des Autos im Rest API
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
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
I am using Skoda Enyaq and home assistant. The benefits
- less traffic for the car Api because presently I have home assistant and evcc using the VW/Skoda API simultaneously.
- I would need one integration less in home assistant, becasue I would use the Rest API to access the location.
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
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?
Euer Rest API. Was versteht du da nicht, echte Frage. Longitude und Latitude des Autos, das versteht man normalerweise unter Geolocation
Du redest von /api/state? Oder wovon?
https://docs.evcc.io/de/smarthome/home-assistant/#rest-api
@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.
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
Das meinte ich ja gar nicht. Nicht weg von evcc. Rein das Fahrzeug in evcc mit Home Assistant Sensoren "füttern".