XPENG and encode - show position on a map !?

Hi

We got an new ev (XPENG g6) and I managed to get some sensor values from the car into ha . I can see some sensors for longitude and latitude but hi can I track the car on a map in ha with these values ?

Hi, how did you manage it to connect your XPING into HA ?

+1
I would be interested in how you did this as well.

Here :slight_smile:

Hi, I wonder if you had to reach out to sales to get access to enode production .
I am trying to connect as well , I can create the client-id and access token and request Linkurl: but when I try to copy linkurl to to safari and connect, I get an error 400 , with below debug output.

curl https://enode-api.production.enode.io/users/xxx/link \
-X POST \
-H "Authorization: Bearer {My_temp_Token}" \
-H "Content-Type: application/json" \
-d '{
  "vendorType": "vehicle",
  "scopes": [
    "vehicle:read:data",
    "vehicle:read:location",
    "vehicle:control:charging"
  ],
  "language": "en-US",
  "redirectUri": "https://localhost:3000"
}'
Debug context
{
  "status": 400,
  "statusText": "Bad Request",
  "internal": false,
  "data": {
    "message": "Required parameter link_state is invalid",
    "type": "INVALID_CONFIGURATION"
  }
}

ps. I am trying with production env.