Mercedes Me Component

It was easy for me :slight_smile:
Works like a charm!

I first tried to only set

time_selection: 1
time_1: 420

in the Data field. That did not work, but when I did put all timers in there like

time_selection: 1
time_1: 495
time_2: 480
time_3: 480

It worked perfectly. I can read the value for all timers in auxheater_status, and only change the timer I would like to set. And calculate the values for the unchanged timers and enter in an automation.

I havnā€™t started the Auxheater, but I see the changes in the app. And itā€™s to cold to go out now to see if the changes are displayed, in the car menu as well. But Iā€™m sure it does.

Iā€™m so greatfull, THANK YOU VERY MUCH!

///Peter!

Hello, great that the component is back!
The quite interesting sensor ecoElectricBatteryTemperature is not working for me, do anyone else have it working? It worked a couple of days, but now I donā€™t get any data and donā€™t see it in the list of attributes under sensor..RangeElectric

Hi, my cars have not reported the ecoElectricBatteryTemperature in the last days. Could be that this is a MB-internal data-flow problem or MB has disabled this in the dataflow to the MB-app.

@all: any other feedback?

Thanks for this great integration. I set it up recently for my 2021 GLE and it works like a charm. Really impressed with all the available info!

One question though, regarding locationā€¦ I have the service activated, but I do not see a device tracker for it in HASS. Is there anything special I need to do here? I have been reading the thread (at least a couple 100 posts) but did not find anything pointing me in the right direction

EDIT: I had to deactivate and reactivate the location service in the car. And then it appearedā€¦

1 Like

Have anyone any lock with the sensor fuelLidClosed? It doesnā€™t show any infor for me on my C 300 DE.
I would like to create statistics to my google sheet with refuels, and thought that the above sensor would be a good trigger for this events.
regards Tobias

Anyone have any experience on how to reset the internet connection within the car? I checked the settings and all a sudden it says SIM 3G OFFLINE. Been like this for about 15 or so days. Trying to avoid the dealership

Thank you; i will have a look at that and see if there is anything i can reset its a GLC300

The dealership replaced the Hermes module and said that the logs showed alot of traffic and was asking if i knew anything about that. I did not mention anything about this HA moduleā€¦ Oddā€¦ could it be this that caused it to fail?

Hi, Iā€™m not sure and Iā€™m not expecting this. The component reacts like the android app is open all the time. Did you had enabled the WLAN? Or was there not an Over the air update :zipper_mouth_face: ā€¦ but to be open I do not know. (I have multiple HA instances running with my cars (GLC300 2020, GLA 2019, EQC400 2020) included and have not these problems)

Hi, MB has changed the login procedures and added an additional level of security. The good thing is that One-Time-Token is not transfered in plain-text anymore. So you are more secure. The bad thing is that my login routine does not work anymore (until the weekend).

So please do not delete the component because you canā€™t login againā€¦

EDIT: I have published a Pre-Release v.0.5.1b. This should support the new authentication model in Europe. Use this version only if you create a new setup. Otherwise you have to delete the existing integration and add it again.

1 Like

Yea very odd. The dealer had the car for 2 days and said they had to send logs to Germany. I asked what was found and they said tons of activities more than normal. And today they replaced the module. I had 3G before and now it says 4g LTE. I guess I got bit of an upgrade.

Hi Rene. Do you have any cool uses of your component you can share for EQC 400? Your component is excellent - I can pull all of the entities and their attributes, but if you have some control elements in lovelace or node red that you can share it would be much appreciated.

Thanks again for a great custom component.

Sorry to disappoint you, but I donā€™t have any cool visualization or integrations. If I were to post screenshots of my environment, some here in the thread would need to see an eye doctor. If youā€™re interested in ideas, check out the thread and the questions, answers, ideas in detail. Many users have built stuff where I can only take my hat off.

The whole project started in 2018 when I was interested in website security and found the MB site ā€œweirdā€ at the time. Over time, the component has been my way of always learning new things. In 2019, MB has invested a lot in the security of their solution and for me it resulted in learning how to make Android apps talk (see Frida, Fiddler, Burp). And along the way I was able to expand my understanding to large open source projects and this helps me in my daily job to set new accents in a larger company.

In reality, I was only ever interested in the location data of my car (the German tax system is crazy). The values were and are not available in the public APIs (at least as far as I know). And this helped me to learn time-series-databases and the ecosystem around. All the other information/functions came over timeā€¦

And I understand home assistant a little better, have learned asyc-python code (even if not fully understood) and yes, in the end I find it cool that my ā€œrudimentaryā€ code works and is recognized by others.

Long text, short message: For me, itā€™s really a project to keep learning.

3 Likes

All clear :slight_smile: Thanks for sharing and spending your time to create this for us to enjoy and get value.

Now, I just need someone smarter than me to develop an ABB Terra wall box component!

Two questions for the topic followers. 1) Iā€™m a noob - how to action Services, like pre-heat? Have tried to find some examples but nearly everyone is using the component to display statuses. 2) Can anyone recommend freeware graphics manipulation for @Mobiledudeā€™s excellent picture elements card which Iā€™m in the process of modifying for EQC 400
image

Hi,

You can interact with services in different ways.

  1. Use the button card

  2. Use the service in an automation

If you are running on windows, you could try paint.net.

1 Like

The Integration currently not works for me.
I get the " Set up the Mercedes ME 2020 connection" dialog.
I enter my email and region, but the dialog appear just again.

Itā€™s a C300 2018 in DE, ios app works fine.
What Iā€™m doing wrong?

Hi, please try to install the Prerelease version. MB has changed the login procedure. This should work in Europe.

2 Likes

Well my work computer wonā€™t let me install better graphics software so I used ms paint and powerpoint to edit @Mobiledudeā€™s excellent graphic. Apologies for spoiling it a little.

I have battery SOC and range in the top left and have no sunroof so swapped that for charging status (Yes or No). The other changed icon is activation of climate control, but as there is no entity/attribute for I will have to find another solution. Because of this, I added an entity card for last_message_received at the top so I can see whether it received the instruction to activate/deactivate. Finally, I put button on the roof to lock or unlock the car.
UPDATE: Looking a little cooler now

2 Likes

Sadly unable to install this awesome looking integration.
hacs installation went fine, but when i try to install the Mercedes ME 2020 integration under configuration this happens:

I enter my mercedes me login and chose Europe in region, when I press SUBMIT, the form blinks and fields are blank again.ā€™

The following 2 lines are in my ha log:

2021-03-11 20:01:56 ERROR (MainThread) [custom_components.mbapi2020.oauth] Error requesting data from https://bff-prod.risingstars.daimler.com/v1/login: 400, message='Bad Request', url=URL('https://bff-prod.risingstars.daimler.com/v1/login')
2021-03-11 20:01:56 ERROR (MainThread) [custom_components.mbapi2020.config_flow] Request Pin Error: Error requesting data from https://bff-prod.risingstars.daimler.com/v1/login: 400, message='Bad Request', url=URL('https://bff-prod.risingstars.daimler.com/v1/login')

Not sure what happens, other then auth is failing. Im danish, so use this mercedes portal: https://www.mercedes-benz.dk/passengercars/being-an-owner/mercedes-me-connect.html

Login on portal and app works fine. What i find a bit strange, is that iā€™m not asked for password or pin, the form it only asking for e-mail and region, but not sure if this is normal.

Help would be greatly appreciated :wink: