VIN is added? This is a exclusion list… Please remove the VIN
I’m stupid or at least need better glases ![]()
I removed VIN and it works like a charm.
Thanks for your help Rene!
Hello,
I have installed the version v0.23.0 using HACS and when activating the integration, I can enter the email address of my dedicated MB account but I never receive any PIN. I have validated the email address of my MB account.
I have tried using the email address or the phone number and checked my spam folder. I have updated my email address to try an other one but without success. I use the EU region but have tried with other regions. I tried with the next Beta and with the version 0.21, 0.22 but without success.
Any idea?
Logs
2025-02-02 10:55:16.769 INFO (MainThread) [custom_components.mbapi2020.oauth] Start request PIN <MyEmailAddress>
2025-02-02 10:55:16.905 INFO (MainThread) [custom_components.mbapi2020.oauth] PIN request
2025-02-02 10:55:20.696 ERROR (MainThread) [custom_components.mbapi2020.oauth] Error requesting: https://id.mercedes-benz.com/as/token.oauth2 - 0 - {"error_description":"{errorCode:1000,reason:Invalid credentials.}","error":"invalid_grant"}
2025-02-02 10:55:20.697 ERROR (MainThread) [aiohttp.server] Error handling request
Hi @Salim7,
Please install v0.23.0. Use the client tools to generate the access and refresh token and add the result to the config dialog.
Hello @ReneNulschDE ,
Many thanks for your appreciated assistance.
It seems to work well (I just removed a section of the token in the capture)
Is it not possible to integrate this on the Integration’s config flow itself somehow?
I used the token generator and the tokens lasted 1.5 days.
It is possible but would only work until MB switches the google recaptcha check on. If someone would like to do it, feel free to provide a pull request to the repo. I have no plans to do it, currently. (iobroker has done it…)
could you explain your second sentence? The token set should work, I have my tokens running for weeks without any problems…
Why is this constantly require new authorization? This way is not very reliable…
This should not be the case… Could you please enable the debug log and share some details about your environment here
I am having a similar issue. Everything seems fine, all data is there but Start Engine is not working. Works through the Iphone App.
Havtn checked logs or enabled debiug mode yet
Disregard. Fixed it by re-entering the pin.
New version of card released ![]()
What’s Changed
This release introduces support for the MapTiler API key, providing a new popup map design and improved mapping functionality. Additionally, Simplified and Traditional Chinese translations have been added.
If you find this card helpful, please consider giving the repository a
!
New Features 
- New Popup Map Design: Added MapTiler API key support to enhance the mapping functionality. #106
Fixes 
- Corrected the spelling of “Acceleration” in ecoScore localization files. #109
Translations 
Sunday evening post: This is the first week since 6 years that the usage numbers go down (without the dark months without api access).
Let me know what you are struggling with…
Maybe more people are selling Mercedes than buying?
From Germany:
Im Januar 2025 fielen die Pkw-Neuzulassungen in Deutschland im Vergleich zum Vormonat weiter. Mit insgesamt rund 207.600 Fahrzeugen wurden rund 7,6 Prozent weniger Autos neu zugelassen als noch im Dezember 2024. (…)
And Mercedes seems to be in the same trend (again, Germany):
Im Januar 2025 wurden in Deutschland rund 19.700 Personenkraftwagen der Marke Mercedes neu zugelassen. Das entsprach einer Abnahme von etwa 7,5 Prozent im Vergleich zum Vorjahresmonat.
The throttling of the API by Mercedes.
But that is outside of your (and our) influence.
What you can do (and are doing) is excellent.
I am trying to setup an automation that opens the garage door when the car enters the geofence. Everything works except there seems to be too high of a lag time between actually entering and HA seeing it. My assumption is the polling interval is too high for this. Is there a place to update that?
Hi, there is no polling for the location data. The MB server are sending the location data to the component and any received update is processed near real time. → nothing that we can change, normally the location update is send every 1-3 min…
Some people solved this with putting a BLE token in the car and monitoring the advertisements at home and react whenever the BLE token is in zone. Other used the mobile app location data together with car data.
@all: How do you solved this? (I still have a button in my car…)
BTW: it’s vacation time for the next four weeks. The pro‘s are knowing what that means: slower answering rate from my side (and we will face a breaking change from MB as always when I am on vacation…. )
To all the Germans: geht wählen und wählt demokratische Parteien. Wenn Ihr am rechten Rand wählen wollt, trinkt am Samstag soviel, dass ihr bis Sonntag 18:00 im Bett liegt… Danke
@jgootzdiaz I solved this by creating a larger home zone and keeping the garage door open for a longer time. Sometimes the door opens at the start of the zone, and sometimes it opens when I’m in front of it.
Official Mercedes app updated today. Getting no polling data from integration although integration thinks its working in Home assistant. Anyone else seeing this issue?
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 637, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/config/custom_components/mbapi2020/init.py”, line 214, in async_setup_entry
if retry_counter == 60 and not coordinator.client.account_blocked:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘Client’ object has no attribute ‘account_blocked’


