Great work, any progress on the US side?
1. Get your car
To use most endpoints of the Connected Vehicle Experimental API, you need the vehicle id (car id). Basically there are two different ways to get it:
from the virtual car simulator
using the /vehicles endpoint of the Connected Vehicle API
using the /vehicles endpoint of the Connected Vehicle API I guess this is for existing cars and not simulator
When I read here:
What do you think?
Hi,
tested this: It works only with the simulator cars. Iāve send the MB dev team an email with bugs, suggestions and asked for a timeline.
If you would like test with a simulator car, please check https://github.com/ReneNulschDE/HA_CC_MercedesME_Beta
Iāve Integrated the new API
- Doors
- Locks (status only)
- Location
You have to register an App in the MB Dev Portal and then follow the setup in the HASS Frontend.
I donāt see any options in the new api to start the heater. Iāve asked the MB dev team about there plans.
Iāve no info if the new API will support US cars. Currently the values are all in āKilometerā and not āMilesā.
Itās been awhile and Iāve got my new Mercedes. And I wounder if there are any news about the API?
Regards Peter
No news currently, the last statement from the MB-Devs was that they have internal discussions with the legal and product teams.
Just got my new Mercedes. Any progress with the API and HA?
No news. The MB API is still not available.
There is a Web version of the app:
https://app.secure.mercedes-benz.com/app/#/home
Wouldnāt it be possible to use that and make some hack to make it work in Home Assistant?
Iāve invested some hours/days in the last hack and after 2 months this was a waste of time because MB changed/secured the API. Iām in contact with the MB-Dev teams and it look like that we make some progress.
Great to hear!
I saw that Mercedes Me can be controlled through Google Assistant, but it only works in the UK for some reason and they have no plans to expand it other than to Germany.
So I am really hoping you get it to work with Home Assistant, that would be really awesome!
Is it somehow possible to integrate this Web Version App as an iFrame in Home Assistant?
the web app is not available anymore.
Let the next āCat & Mouseā-Game start. If you would like to test this custom component:
Hi,
So this is first time I use a custom component. I have copied the files to custom_component folder, mbwebbeta.py in the root of folder and device_tracker and sensor as folders. I have verified that they have homeassistant rights (I run virtualenv on ubuntu with version 0.83.0)
I have added to configuration.yaml
mbwebbeta:
username: !myuser_mb
password: !mypass_mb
scan_interval: 30
When I restart HASS I get following:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.homeassistant/custom_components/mbwebbeta.py", line 142, in setup
mercedesme_api = Controller(username, password, scan_interval)
File "/srv/homeassistant/lib/python3.6/site-packages/mbwebapppy/controller.py", line 164, in __init__
self.session_cookies = self._get_session_cookies(username, password)
File "/srv/homeassistant/lib/python3.6/site-packages/mbwebapppy/controller.py", line 336, in _get_session_cookies
form = {x.attrib['name']: x.attrib['value'] for x in hidden_elements}
File "/srv/homeassistant/lib/python3.6/site-packages/mbwebapppy/controller.py", line 336, in <dictcomp>
form = {x.attrib['name']: x.attrib['value'] for x in hidden_elements}
File "src/lxml/etree.pyx", line 2457, in lxml.etree._Attrib.__getitem__
KeyError: 'value'
Where should I start looking ?
Thanks for your efforts!
Hi Jef,
Did you used the WebApp in the last days and accepted the new EULA? If not, I assume that this prevents to correct login.
please open this link, login and accept the EULA. At the end you should see 404 error message because the webapp was removed. The APIs are available currently. You can check this after the login with this URL. You should see some personal infos in the response.
After that restart your HA-System and the component should show some results for your car.
Update:
New Sensor:
tanklevelpercent
New Binary Sensors:
warningwashwater
warningenginelight
warningbrakefluid
parkbrakestatus
decklidstatus
Fixes:
- Better Session Handling
- Location update on initial load
- Less API Calls
Thanks for your information, if I try to follow link to login (https://login.secure.mercedes-benz.com/session/login?app-id=VHPMBCON.PRODEC) I get a Not Found 404. and if I try your second link it gives me
On link https://app.secure.mercedes-benz.com/backend/users/identity
Iām able to login and see all my details on https://me.secure.mercedes-benz.com
So can this be region related? Iām located in sweden.
Hi,
sorry my mistake: Please try the following URL to login:
https://app.secure.mercedes-benz.com/session/login?app-id=VHPMBCON.PRODEC
and after the login use this link to check if we find some cars in your account:
https://app.secure.mercedes-benz.com/backend/users/identity
Should work with a Swedish account.
BR
Rene