Mercedes Me Component

I just got a new EQB and had to rewire my various automations from the old license plate based sensors to the new ones. Side note: It would be really nice to have a setting to not include the license plate in the sensor names, if I only ever have one Mercedes at the same time :slight_smile:

Actual issue I found now: When I use the precondition switch (switch.licenseplate_vorklimatisierung), the car doesn’t actually start heating up. It only does, when I press the corresbonding button (button.licenseplate_preclimate_start), which also switches the precondition switch to on. Is this a bug? Can I provide any logs to help?

This is probably not an issue, but I have a question.

I use EVCC and this integration inside HA.
Bot require the access and refresh token for MercedesMe, but I can only use one of the application. The other always say “token expired”.

Is there a way to use both applications same time?

Hi, you have to make sure that you never use the same tokens. Create one set for HA and one for evcc. I have 4 test environments with HA, 3 test environments with evcc and one production HA running. In case you are using different tokens, describe you environments in more detail. Best would be to open an issue in the mbapi2020 repo.

Hi,

LicensePlate: You could change the lic-plate in the MB-Website to a common name.

Switch: Could you enable the debug log and execute the switch. Would be nice to get some details. (Best would be to open a issue in the mbapi2020 GitHub issue tracker)

The link

doesn’t work, get an net::ERR_CERT_COMMON_NAME_INVALID error.

Please give some more infos. What does not work?

  1. The GitHub page How-to: create the access token?
  2. The download of the binaries?
  3. The execution of the tools? Which one?

ERR_CERT_COMMON_NAME_INVALID means that a website that you are trying to open has an invalid ssl-certificate.

On my side, GitHub and id.mercedes-benz.com are working. Do you use a proxy?

This works, thanks!

does the integration still download your car’s image as a image entity? whats the best way to get the same images from the app?

Hi, the component never created an image entity. You can use the service/action “MercedesME 2020: Download images” to download the app images to the resource folder. See here: Mercedes Me Component - #1883 by ReneNulschDE

I saw you asked in another thread too. If you mean images of your car, you can also try with this script.

1 Like

Issue opened: Preconditioning not starting when using the switch · Issue #324 · ReneNulschDE/mbapi2020 · GitHub

Main difference I see: the non-working one seems to use preheat_start_immediate, while the working one seems to use preheat_start.

This seems very interesting.
How exactlly can you activate/deactivate the charging break via HA?

action: mbapi2020.charging_break_clocktimer_configure
data:
  status_timer_1: active
  starttime_timer_1: 'hh:mm:ss'
  stoptime_timer_1: 'hh:mm:ss'
  vin: YOURVIN

If you set the status to inactive, the break is no longer active and charging will start (if the car is otherwise ready to charge).

2 Likes

Toggle “Lock” and toggle “Parking Heater” are offered even though there is no subscription

MercedesME 2020
MB API reachable: ok
MB WS state: connected
Connected cars: 1
Version: v0.23.2

Is that intended?

thanks, works - I was a bit of a rookie first but it makes completely sense to me now.

Also picture from @ReneNulschDE makes fully sense now :slight_smile:

I am using this to stop the vehicle from draining the house’s PV-battery too low. I have a very simple wallbox that I can’t control via HA.
However, getting the SOC from my house’s PV-battery I can stop charging the vehicle by activating a charging break.

2 Likes

Hi @ajd_ht ,

could you sent a diagnostic report to [email protected]? (replace Mqtt in the documentation with mbapi2020)

Then I can check your car capabilities.

Update:

  • Lock - This is a bug. Capability check will be part of the next release. The lock will not be created when the capability DOORS_LOCK=False
  • Pre_climate: Looks like the capability is true without an active subscription. Nothing that I can change. You could disable or toggle the visibility of these entities

Hello,
Thx for your Work I have a question where can I run the python script?
Thx

I’ve tried to search, in case it was covered, but I’d love to know what the “Car” sensor is returning in the Diagnostic sensors section.

I have a 2020 GLE, and have started seeing some output, coinciding with issues on the DPF.

Any idea how to convert those numeric values into something meaningful?

appreciate your help! as the Merc dealer is about to give me back my car, and it’s still showing Car Sensor: 7.

Apprecaite it, and wow, what an epic component! fair play to you.

ah, disregard, I found your previous reply about this just now

1 Like

Hi, download the script on your PC, add parameters to the file, such as VIN car, folder where to save and parameters for the images you need.
then run the command via the terminal.

for example in mac os

python3 <path>/get-vehicle-images.py

If you need help, send me the api key and VIN of your car in the message… I will then send you the link to download