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 ?
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:
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.
FYI: I received a message from PON saying that the Mijn Volkswagen app will be unusable starting December 19th.
I’m pretty sure this will render the Mind integration useless somewhere around that date.
This might be helpful for others as an alternative for the ‘mind’ integration unfortunately only for the location of the car.
Use this blueprint from this post to save the location to a custom device tracker when you lose BT connection with your car. This utilizes the HA companion app on your phone.
And I would suggest to use the code in this post to restore the custom device tracker’s location whenever you restart HA. (otherwise you lose the car location whenever you restart HA)