My volkswagen integration?

I just got my new Volkswagen golf and found out that there’s an app called my volkswagen that reports “under the hood” sensor status, current car status like locked/unlocked and the current location.
It would be really neat if this information could be integrated into home assistant.


Of course I searched the forum but only found something about carnet which is different.
Any ideas?

I had seen this one before and I thought it was not the same as the data my volkswagen app reports.
But it seems like it gives me all the stuff I was looking for. I’m gonna try this one soon. Thanks a lot, sir!

1 Like

In the end I started using the Mind integration, which makes use of the data that the My Volkswagen app also uses.

@pathia could you explain a little bit more in detail or share your config how you integrated this? I cannot find any “Mind” integration. Would be great! :slight_smile:

Sure. But I don’t think it belongs in this thread. I will send you a DM.

thanks @pathia but I am a German user so it doesn’t help. Sorry I missed that! Thank you anyway :wink:

Should’ve bought it in the Netherlands instead then :stuck_out_tongue_winking_eye:
Nevertheless you’re welcome, mate.

Hi Patrick, I’m also interested in what you mean with the ‘Mind integration’ (and living in The Netherlands). Could you enlighten me?

It is actually quite simple. Install HACS and within HACS install the Mind mobility integration.
Configuration within Home Assistant is even easier:

mind:
  username: !secret mijnvolkswagen_username
  password: !secret mijnvolkswagen_password

If you need further help, just drop me a PM.

1 Like

Ah, clear. Thanks Patrick.

  1. I didn’t know about HACS, now I do, thanks!
  2. I don’t think I have that Mind Mobility-device installed in my car (I would be surprised if I have), didn’t know it existed

Works great!

Hey

I have a Volkswagen Commercial vehicle with connect function, and use the “Mijn Volkswagen Bedrijfswagen” APP, I tried to set up MIND, but I get this error message …

Am i missing a setting or isn’t it working with a commercial car ?

mind:
    username: [email protected]
    password: password
2020-01-29 21:20:01 ERROR (MainThread) [homeassistant.setup] Error during setup of component mind
Traceback (most recent call last): 

 File "/config/custom_components/mind/__init__.py", line 41, in setup
    hass.data[DATA_MIND] = Mind(hass, conf)
  File "/config/custom_components/mind/__init__.py", line 64, in __init__
    password=conf.get(CONF_PASSWORD), cache_ttl=conf.get(CONF_SCAN_INTERVAL))
  File "/usr/local/lib/python3.7/site-packages/mind/__init__.py", line 250, in __init__
    self._auth()
  File "/usr/local/lib/python3.7/site-packages/mind/__init__.py", line 269, in _auth
    auth=HTTPBasicAuth(self._client_id, self._client_secret))

I’m note sure, but I think you have invalid yaml in your configuration… There should be only two spaces in front of both username and password. I think because of that the integration doesn’t receive your credentials.

This could be helpful for people using the mind integration. Lovelace cards. Just press the + icon and paste a block of code. Replace {LICENSEPLATE} with your lower case license plate without the minus.
I have also included a preview of the end result.
Lastly, as a reference I would like to link back to the thread of the author of the mind integration:

#photo with mileage
entity: sensor.{LICENSEPLATE}_mileage
image: /local/images/golf.jpg
name: Kilometerstand
type: picture-entity
aspect_ratio: 50%

#map showing the current location of your vehicle
aspect_ratio: 50%
default_zoom: 14
entities:
  - device_tracker.{LICENSEPLATE}
type: map

#fuel meter
entity: sensor.{LICENSEPLATE}_fuel_left
max: 50
min: 0
name: Brandstof
severity:
  green: 20
  red: 5
  yellow: 10
theme: default
type: gauge

#a few sensors
entities:
  - entity: sensor.{LICENSEPLATE}_mileage_left
    name: actieradius
  - entity: binary_sensor.{LICENSEPLATE}_ignition
    name: contact
  - entity: binary_sensor.{LICENSEPLATE}_parking_brake
    name: handrem
  - entity: sensor.{LICENSEPLATE}_battery
    name: accu
  - entity: binary_sensor.{LICENSEPLATE}_locked
    name: vergendeling
type: glance

yes, when I saw your message I immediately thought of it …

but removing the space did not help, it does not work unfortunately

I do not have any
client_id:
client_secret

be in the configuration.yaml …

I also have an error message now

Invalid config
The following integrations and platforms could not be set up:

mind
Please check your config.


I will look again tomorrow

Oh, now I see you have a commercial VW vehicle…
Mine is a consumer type Golf. I am not sure how to proceed. I see th Github repo mentions stuff about a client_id.

For the Mijn Volkswagen Bedrijfswagen I think the following should work:

  client_id: '4016d1e9c62141208dedfee2f95114d0',
  client_secret: 'C2f1FEffaB944cd8Aa34aEa3F4c7D98A'

Please let me know if this works so I could report these back to @Bram_Kragten

1 Like

And for Audi Car Assistant it should be this, @Bram_Kragten

  client_id: '7af00aec25e041a7a458f93803b96f67',
  client_secret: 'D837b68f8BA74373bCFE09e66207a82d'

Added those to the readme of the repo. Thanks.