Connected VAG/PON cars

Awesome, thanks. I’m on vacation and I forgot to check if the code was updated.
Has anything else changed in the component? :slight_smile:

Nope, no changes apart from updating for 0.94

I get this error:

2019-06-08 11:22:41 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.mijnpon. Make sure all dependencies are installed
Traceback (most recent call last):
File “/usr/src/app/homeassistant/loader.py”, line 263, in _load_file
module = importlib.import_module(path)
File “/usr/local/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 728, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/config/custom_components/mijnpon.py”, line 15, in
from homeassistant.loader import get_component
ImportError: cannot import name ‘get_component’ from ‘homeassistant.loader’ (/usr/src/app/homeassistant/loader.py)

Mijnpon is the old module. You need the link of the Mind module from 1 of @Bram_Kragten’s last posts.

Thanks @FireFly,

I hit the “oauthlib.oauth2.rfc6749.errors.AccessDeniedError: (access_denied)”

Problably because the client_id and secret_id is not correct for Audi…

Yeah :frowning:
I believe I decompiled the Android app to get it for Skoda, but maybe you can also get it by connecting your device to a proxy.

Hello,

First of all great work @Bram_Kragten !! I’m realy loving this.
Everything works great except I cannot get the device_tracking to work.

In the notifications it says Invalid config. mind.device_tracker
If I turn on debug logging i do not get much more info:

2019-06-15 15:42:59 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform mind: Platform not found.
2019-06-15 15:42:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:

  • mind.device_tracker

Please check your config., notification_id=invalid_config>

Any ideas?

Greetings,
Jos

Fixt it! I was being a dummy… I had not updated my HA to version 94.x
Did the update and now it’s working.:slight_smile:

Updated with the latest changes, uncomment the configuration.
But keep getting failed to find component Mind.

mind:
  username: !secret mind_username
  password: !secret mind_password
  client_id: !secret mind_client_id
  client_secret: !secret mind_client_secret

/usr/share/hassio/homeassistant/custom_components/mind# ll
total 28
drwxr-xr-x 3 root root 4096 Jun 16 17:16 ./
drwxr-xr-x 7 root root 4096 Jun 16 17:15 ../
-rw-r--r-- 1 root root 2478 Jun 16 16:56 __init__.py
drwxr-xr-x 2 root root 4096 Jun 16 17:16 __pycache__/
-rw-r--r-- 1 root root 2894 Jun 16 16:50 binary_sensor.py
-rw-r--r-- 1 root root 2251 Jun 16 16:51 device_tracker.py
-rw-r--r-- 1 root root 2576 Jun 16 16:51 sensor.py

My other custom components are working just fine… :frowning:

fixed by adding the manifest file, where is that for?

Anyone with Audi that has got this working?

I need the

client_id: !secret mind_client_id
client_secret: !secret mind_client_secret

I’m trying to use this component, but I get
ValueError: invalid literal for int() with base 10: ‘–’
I also have I question: I’m wondering does this give me the same info as my ‘mijn volkswagen’ app ?
And another question: I don’t know what ‘MIND’ is, and I tried logging in at an earlier mentioned mind website but this doesn’t seem to work.
Thanks in advance for help and some guidance :slight_smile:

Yes, it shows the data off the Mijn Volkswagen app. With a VW you only need to enter the username and password (the same that you use for the app).
MIND is the company who makes the module that’s in your car and the app.

I’m sorry but i always thought ‘Mijn Volkswagen’ and ‘We Connect / Car-Net’ were different services.
I have car-net credentials that work for https://www.portal.volkswagen-we.com/ and different credentials for the mijn volkswagen app on my phone. I just tried using my mijn volkswagen creds, but using that creds I get:

2019-09-22 14:01:24 WARNING (SyncWorker_2) [custom_components.volkswagencarnet] Could not login to volkswagen carnet, please check your credentials
2019-09-22 14:01:25 WARNING (SyncWorker_2) [custom_components.volkswagencarnet] Could not login to volkswagen carnet, please check your credentials
2019-09-22 14:01:27 ERROR (MainThread) [homeassistant.setup] Setup failed for volkswagencarnet: Integration failed to initialize.

Then when I configure my car-net creds back in I still get:

2019-09-22 14:13:50 ERROR (MainThread) [homeassistant.setup] Error during setup of component volkswagencarnet
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 172, in _async_setup_component
    component.setup, hass, processed_config  # type: ignore
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/volkswagencarnet/__init__.py", line 150, in setup
    return update(utcnow())
  File "/config/custom_components/volkswagencarnet/__init__.py", line 138, in update
    discover_vehicle(vehicle)
  File "/config/custom_components/volkswagencarnet/__init__.py", line 107, in discover_vehicle
    dashboard = vehicle.dashboard(mutable = config[DOMAIN][CONF_MUTABLE])
  File "/usr/local/lib/python3.7/site-packages/volkswagencarnet.py", line 401, in dashboard
    return Dashboard(self, **config)
  File "/usr/local/lib/python3.7/site-packages/dashboard.py", line 429, in __init__
    for instrument in create_instruments()
  File "/usr/local/lib/python3.7/site-packages/dashboard.py", line 430, in <listcomp>
    if instrument.setup(vehicle, **config)
  File "/usr/local/lib/python3.7/site-packages/dashboard.py", line 29, in setup
    if not self.is_supported:
  File "/usr/local/lib/python3.7/site-packages/dashboard.py", line 69, in is_supported
    if hasattr(self.vehicle, self.attr):
  File "/usr/local/lib/python3.7/site-packages/volkswagencarnet.py", line 521, in distance
    return int(value)
ValueError: invalid literal for int() with base 10: '--'

Is it normal that on https://www.portal.volkswagen-we.com/portal/delegate/dashboard/ I get the following info (which show the exact same double minus symbol like in the HA error) :

Golf cartype-motortype somecodes

Bijwerken: --, --
Golf ca

--

Kilometerstand

--

Volgende Inspectie

--

Volgende Olieservice

We Connect and Mijn Volkswagen are different indeed.

So am I using the wrong component? I am trying to use volkswagencarnet currently. Is there a Mijn Volkswagen integration for HA then?

This topic is about the Mijn Volkswagen component. Can be installed using HACS. Or check https://github.com/bramkragten/mind.

For carnet there also seems to be a custom component, https://github.com/robinostlund/homeassistant-volkswagencarnet.

My bad. I was trying to use the carnet component for Mijn Volkswagen. :upside_down_face:
When I finally started using the mind component it worked immediately. Thanks for the help.
Now I can finally monitor my accu voltage in HA, which is not being charged like the Mijn volkswagen app reports to me. I have allready raised a ticket for this at the dealer.

Hi there… I have found this for connected cars. Works for my Seat in Denmark.
However I don’t know how to make a component.

API here: GitHub - connectedcars/docs: Public documentation and sample code for integration with Connected Cars
Test site here: Connected Cars API Explorer

This query works fine for me:

query {vehicle(licensePlate:“PLATEHERE”) {
licensePlate
model
fuelLevel {liter}
fuelPercentage {percent}
ignition {on}
odometer {odometer}
position {speed latitude longitude}
latestBatteryVoltage {voltage}
health {ok}
fuelEconomy
updateTime
engineSize
}
}

1 Like

This looks like a great idea to add to HA.
But an question. I will be able next week to add the communication with the app because the have to built in de module in my car.
It’s a new Seat.

But I see that were talking about the mind mobility. Do I need an Mind account or can I also use my seat account?