Mercedes Me Component

I‘ll try to fix it.

the car is a “C 300 de 4MATIC T-Modell mit EQ Hybrid” latest firmware
Firmware: None - GEN20XI2
Hardware: STAR3 - RAMSES1_5

Log (haven’t found an option to attach a file …) - I just replaced the VIN by VINXXXX

2026-03-19 21:40:01.347 DEBUG (MainThread) [custom_components.mbapi2020.helper] Connection Watchdog expired – calling initiatiate_connection_disconnect_with_reconnect
2026-03-19 21:40:01.348 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] async_stop called (call #179, is_stopping_already: True)
2026-03-19 21:40:01.348 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Closing WebSocket connection...
2026-03-19 21:40:01.349 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] websocket connection is closing (256)
2026-03-19 21:40:01.366 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] ws.close awaited (handshake done)
2026-03-19 21:40:01.368 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Queue handler received shutdown signal
2026-03-19 21:40:01.369 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Queue handler stopped
2026-03-19 21:40:01.372 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] _async_connect_internal EXIT (remaining active: 0)
2026-03-19 21:40:09.979 INFO (MainThread) [homeassistant.components.automation.setze_vorklimatisierung_fur_6_30_uhr] Setze Vorklimatisierung für 6:30 Uhr: Running automation actions
2026-03-19 21:40:09.980 INFO (MainThread) [homeassistant.components.automation.setze_vorklimatisierung_fur_6_30_uhr] Setze Vorklimatisierung für 6:30 Uhr: Repeating sequence: Iteration 1
2026-03-19 21:40:09.981 INFO (MainThread) [homeassistant.components.automation.setze_vorklimatisierung_fur_6_30_uhr] Setze Vorklimatisierung für 6:30 Uhr: Repeat at step 1: Running automation actions
2026-03-19 21:40:09.981 INFO (MainThread) [homeassistant.components.automation.setze_vorklimatisierung_fur_6_30_uhr] Setze Vorklimatisierung für 6:30 Uhr: Repeat at step 1: Executing step call service
2026-03-19 21:40:09.985 INFO (MainThread) [custom_components.mbapi2020.client] Start preheat_start_departure_time for vin W1KAHXXXXXXXX5384
2026-03-19 21:40:09.986 DEBUG (MainThread) [custom_components.mbapi2020.client] execute_car_command - ws-connection: closed
2026-03-19 21:40:09.987 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] _async_connect_internal ENTER (active_count: 1, queue_task: None/done, ws_task: None/done)
2026-03-19 21:40:09.998 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] _start_websocket_handler (is_stopping: False, session.closed: False)
2026-03-19 21:40:09.999 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Connecting to wss://websocket.emea-prod.mobilesdk.mercedes-benz.com/v2/ws
2026-03-19 21:40:10.062 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Connected to mercedes websocket at wss://websocket.emea-prod.mobilesdk.mercedes-benz.com/v2/ws
2026-03-19 21:40:10.065 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Got notification: apptwin_pending_command_request
2026-03-19 21:40:10.087 INFO (MainThread) [custom_components.mbapi2020.client] End preheat_start_departure_time for vin W1KAHXXXXXXXX5384
2026-03-19 21:40:10.088 INFO (MainThread) [homeassistant.components.automation.setze_vorklimatisierung_fur_6_30_uhr] Setze Vorklimatisierung für 6:30 Uhr: Repeat at step 1: Executing step delay 0:01:00
2026-03-19 21:40:10.545 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Got notification: apptwin_command_status_updates_by_vin
2026-03-19 21:40:10.546 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin - Data: {
  "apptwin_command_status_updates_by_vin": {
    "sequence_number": 2124437601,
    "updates_by_vin": {
      "VINXXXXXXX": {
        "vin": "VINXXXXXXX",
        "updates_by_pid": {
          "8916067065940708642": {
            "process_id": "8916067065940708642",
            "request_id": "9120fe44-2adc-4928-9137-46a86f12e203",
            "timestamp_in_ms": "1773952810540",
            "type": "PRECONDSTART",
            "state": "ACKED_BY_APPTWIN"
          }
        }
      }
    }
  }
}
2026-03-19 21:40:10.546 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_assigned_vehicles
2026-03-19 21:40:10.567 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin: 2124437601
2026-03-19 21:40:10.702 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Got notification: apptwin_command_status_updates_by_vin
2026-03-19 21:40:10.703 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin - Data: {
  "apptwin_command_status_updates_by_vin": {
    "sequence_number": 1491658719,
    "updates_by_vin": {
      "VINXXXXXXX": {
        "vin": "VINXXXXXXX",
        "updates_by_pid": {
          "8916067065940708642": {
            "process_id": "8916067065940708642",
            "request_id": "9120fe44-2adc-4928-9137-46a86f12e203",
            "timestamp_in_ms": "1773952810697",
            "type": "PRECONDSTART",
            "state": "INITIATION"
          }
        }
      }
    }
  }
}
2026-03-19 21:40:10.703 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_assigned_vehicles
2026-03-19 21:40:10.724 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin: 1491658719
2026-03-19 21:40:11.028 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Got notification: apptwin_command_status_updates_by_vin
2026-03-19 21:40:11.029 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin - Data: {
  "apptwin_command_status_updates_by_vin": {
    "sequence_number": 1425402083,
    "updates_by_vin": {
      "VINXXXXXXX": {
        "vin": "VINXXXXXXX",
        "updates_by_pid": {
          "8916067065940708642": {
            "process_id": "8916067065940708642",
            "request_id": "9120fe44-2adc-4928-9137-46a86f12e203",
            "timestamp_in_ms": "1773952811023",
            "type": "PRECONDSTART",
            "state": "ENQUEUED"
          }
        }
      }
    }
  }
}
2026-03-19 21:40:11.029 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_assigned_vehicles
2026-03-19 21:40:11.057 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin: 1425402083
2026-03-19 21:40:11.319 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Got notification: apptwin_command_status_updates_by_vin
2026-03-19 21:40:11.320 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin - Data: {
  "apptwin_command_status_updates_by_vin": {
    "sequence_number": 1089420091,
    "updates_by_vin": {
      "VINXXXXXXX": {
        "vin": "VINXXXXXXX",
        "updates_by_pid": {
          "8916067065940708642": {
            "process_id": "8916067065940708642",
            "request_id": "9120fe44-2adc-4928-9137-46a86f12e203",
            "timestamp_in_ms": "1773952811314",
            "type": "PRECONDSTART",
            "state": "WAITING"
          }
        }
      }
    }
  }
}
2026-03-19 21:40:11.320 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_assigned_vehicles
2026-03-19 21:40:11.342 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin: 1089420091
2026-03-19 21:40:15.933 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Got notification: vepUpdates
2026-03-19 21:40:15.933 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_vep_updates
2026-03-19 21:40:15.934 DEBUG (MainThread) [custom_components.mbapi2020.client] Partial Update. W1KAHXXXXXXXX5384
2026-03-19 21:40:15.985 DEBUG (MainThread) [custom_components.mbapi2020.client] vepUpdates Sequence: 174
2026-03-19 21:40:16.534 WARNING (MainThread) [custom_components.marstek_local_api.api] Command ES.GetStatus timed out after 15s (attempt 3/3, host=192.168.84.21)
2026-03-19 21:40:16.535 ERROR (MainThread) [custom_components.marstek_local_api.api] Command ES.GetStatus failed after 3 attempt(s); returning no result
2026-03-19 21:40:17.934 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Got notification: vepUpdates
2026-03-19 21:40:17.935 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_vep_updates
2026-03-19 21:40:17.936 DEBUG (MainThread) [custom_components.mbapi2020.client] Partial Update. W1KAHXXXXXXXX5384
2026-03-19 21:40:17.990 DEBUG (MainThread) [custom_components.mbapi2020.client] vepUpdates Sequence: 175
2026-03-19 21:40:18.316 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Got notification: apptwin_command_status_updates_by_vin
2026-03-19 21:40:18.317 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin - Data: {
  "apptwin_command_status_updates_by_vin": {
    "sequence_number": 964390547,
    "updates_by_vin": {
      "VINXXXXXXX": {
        "vin": "VINXXXXXXX",
        "updates_by_pid": {
          "8916067065940708642": {
            "process_id": "8916067065940708642",
            "request_id": "9120fe44-2adc-4928-9137-46a86f12e203",
            "timestamp_in_ms": "1773952818310",
            "type": "PRECONDSTART",
            "state": "PROCESSING"
          }
        }
      }
    }
  }
}
2026-03-19 21:40:18.317 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_assigned_vehicles
2026-03-19 21:40:18.338 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin: 964390547
2026-03-19 21:40:18.345 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Got notification: apptwin_command_status_updates_by_vin
2026-03-19 21:40:18.346 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin - Data: {
  "apptwin_command_status_updates_by_vin": {
    "sequence_number": 475919678,
    "updates_by_vin": {
      "VINXXXXXXX": {
        "vin": "VINXXXXXXX",
        "updates_by_pid": {
          "8916067065940708642": {
            "process_id": "8916067065940708642",
            "request_id": "9120fe44-2adc-4928-9137-46a86f12e203",
            "timestamp_in_ms": "1773952818337",
            "type": "PRECONDSTART",
            "state": "FINISHED"
          }
        }
      }
    }
  }
}
2026-03-19 21:40:18.346 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_assigned_vehicles
2026-03-19 21:40:18.366 DEBUG (MainThread) [custom_components.mbapi2020.client] apptwin_command_status_updates_by_vin: 475919678
2026-03-19 21:40:24.503 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Got notification: vepUpdates
2026-03-19 21:40:24.503 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_vep_updates
2026-03-19 21:40:24.505 DEBUG (MainThread) [custom_components.mbapi2020.client] Partial Update. W1KAHXXXXXXXX5384
2026-03-19 21:40:24.563 DEBUG (MainThread) [custom_components.mbapi2020.client] vepUpdates Sequence: 176
2026-03-19 21:40:24.575 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Got notification: vepUpdates
2026-03-19 21:40:24.575 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_vep_updates
2026-03-19 21:40:24.577 DEBUG (MainThread) [custom_components.mbapi2020.client] Partial Update. W1KAHXXXXXXXX5384
2026-03-19 21:40:24.639 DEBUG (MainThread) [custom_components.mbapi2020.client] vepUpdates Sequence: 177
2026-03-19 21:40:24.652 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Got notification: vepUpdates
2026-03-19 21:40:24.653 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_vep_updates
2026-03-19 21:40:24.654 DEBUG (MainThread) [custom_components.mbapi2020.client] Partial Update. W1KAHXXXXXXXX5384
2026-03-19 21:40:24.701 DEBUG (MainThread) [custom_components.mbapi2020.client] vepUpdates Sequence: 177
2026-03-19 21:40:24.708 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Got notification: vepUpdates
2026-03-19 21:40:24.709 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_vep_updates
2026-03-19 21:40:24.710 DEBUG (MainThread) [custom_components.mbapi2020.client] Partial Update. W1KAHXXXXXXXX5384
2026-03-19 21:40:24.757 DEBUG (MainThread) [custom_components.mbapi2020.client] vepUpdates Sequence: 178
2026-03-19 21:40:24.762 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Got notification: vepUpdates
2026-03-19 21:40:24.762 DEBUG (MainThread) [custom_components.mbapi2020.client] Start _process_vep_updates
2026-03-19 21:40:24.764 DEBUG (MainThread) [custom_components.mbapi2020.client] Partial Update. W1KAHXXXXXXXX5384
2026-03-19 21:40:24.809 DEBUG (MainThread) [custom_components.mbapi2020.client] vepUpdates Sequence: 178
2026-03-19 21:40:54.761 DEBUG (MainThread) [custom_components.mbapi2020.helper] Connection Watchdog expired – calling initiatiate_connection_disconnect_with_reconnect
2026-03-19 21:40:54.762 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] async_stop called (call #180, is_stopping_already: True)
2026-03-19 21:40:54.762 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Closing WebSocket connection...
2026-03-19 21:40:54.762 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] websocket connection is closing (256)
2026-03-19 21:40:54.777 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] ws.close awaited (handshake done)
2026-03-19 21:40:54.778 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Queue handler received shutdown signal
2026-03-19 21:40:54.778 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] Queue handler stopped
2026-03-19 21:40:54.781 DEBUG (MainThread) [custom_components.mbapi2020.websocket] [01JR03R9E870XJWH8JCZHH7SEW][inst#2] _async_connect_internal EXIT (remaining active: 0)
2026-03-19 21:41:00.456 INFO (MainThread) [homeassistant.helpers.script.trigger_update_coordinator] Trigger Update Coordinator: Running template script
2026-03-19 21:41:00.457 INFO (MainThread) [homeassistant.helpers.script.trigger_update_coordinator] Trigger Update Coordinator: Executing step call service

This is interesting. The MB-Server reported that the action was executed without an error.

I don’t have access to a new CLA but asked a different user to test this with his car.

In my car, I can start the pre-conditioning, but I don’t get a reply back - neither from HA, nor from the MB App.

Yes, I have seen this as well and was surprised too. I checked it then in the Mercedes App multiple time, but it wasn’t working. Interestingly the direct start of pre-heating works well.
Note: even in the app I have often the issue the the first attempt of programming does not work, therefore I have made a repeat until … but even this doesn’t work (after 5 attempts)

P.S. Happy to test, if you tell me how

Hello, i installed the integration and it is working fine so far, but i do not get any location data. Car is MB CLA EQ, Firmware: None - GEN20XI3
Hardware: STAR3_5 - ARTEMIS

Can someone help to achive getting location data into HA ? Thanks

Hi @Bluestar_01,

Please make sure that all digital services are active. I heard multiple times in the last days, that after the latest MBUX update not all services are reactivated. Please check if the car location is visible in the official app.

You will find the location in HA via the device_tracker…

If this does not work, generate a diagnostic report and debug log, and send it to me ([email protected]

I have published a minor bugfix release v0.34.2:

:lady_beetle: Fixes

  • Fix charging break clocktimer failing for midnight (00:00) times (#395, Thanks @alexpalmer)
    Fixed a bug where setting a charging break timer start or stop time to 00:00 (midnight) would silently skip the timer entry.
1 Like

I have published a new release v0.35.0, it is mainly a bugfix release but has some new code to prepare for some expected future changes in the MB API.

:lady_beetle: Fixes

  • Chore: Update MB Server Request Headers (RIS-* versions) to prepare for next MB update
  • Chore: Add new MB message types
  • Fix: Prevent double token refresh
  • Fix: Raise protobuf lower bound
  • Fix: Mask PIN in options flow debug log output
  • Fix: Diagnostics redaction - add nonce, positionHeading
  • Translation: Update Tamil language definitions (Thanks @TamilNeram)

Full Changelog: v0.34.2...v0.35.0

Hello, I’m having a problem with the window display on my 2019 V-Class. When one window is open, the display shows “closed,” and when all windows are closed, it shows “open.” Is there any way to fix this? Thank you.

Hey @infotechhamm-cyber ,

may I ask you to open an issue on GitHub and please share all the requested details esp. the diagnostic report.

Did you changed the setting “show as” of the sensor (binary_sensor.xxx_windows_closed) to “window”? If yes, then this is the reason… Please share a screenshot to better understand the context.

Hi @all,

I’m looking for users of this component who are using an EQV, EQE and the new CLA 2025. In case you are interested to share your car data with me, please send me an email [email protected].

This will help me to test the component with real live data…

1 Like

Hi there, I’ve been using you (great btw) repo for 3 years now, but recently after last update I got an error “No masterdata found. Please check your account/credentials.” so I deleted all my integration, reinstalled it but yet it still occurs - pls help me - what do I do wrong? I have to add it one more time - everything worked fine until last update - yes I check my MB account it’s fine.

Hey @elp85,

“No masterdata found” means that the MB server did not delivered any relevant data.

I would propose that you open an issue in the GitHub repo. Add as much as possible information about your car, region, HA-debug-log, latest car updates.

We can discuss it there…

Hi all, I’m noticing an inconsistent success rate of actions triggered through the integration, reaching the car.

Over the last days, when an action is triggered from the integration (e.g. charging break configuration, preheating,…), most of the time it does NOT reach the car.
However, when triggering the action again (within seconds), it will reach the car most of the time.

I’m not sure whether this is related to the integration, as I don’t see any difference in the logs for the successful and unsuccessful calls.

On the other hand, doing the same action in the Mercedes app is successful at first try.

Is someone else noticing this behaviour? Any fix or workaround?

1 Like

Same problem here

1 Like

Please create GitHub issue with a debug log of multiple executions and share diagnostic output too.

I‘m travelling until end of may. Please expect slower answers.

@kapchin , @willembuys - thanks for creating the issue and providing the logs.

I have published a beta version v0.36.0-beta.2. This release contains a fix for this problem. May I ask you to install it and check.

Solution:
Fix: Allow car commands to bypass reconnect cooldown
Car commands sent during the 60s reconnect-watchdog window were silently
dropped by call() because is_stopping was still True. The cooldown is
intentional for background traffic (429 protection) but must not block
user-initiated commands.

Add _force_immediate_reconnect_for_command() helper that cancels the
pending watchdog and clears is_stopping. call() now uses _unloaded as
the real shutdown gate, drops only background traffic during cooldown,
and forces an immediate reconnect for car commands.

I have a GLA250e
Is there a way to detect if the car is home (in the garage) ?
Before I did this with the tracking feature, but recently I decided not to pay anymore for this extra feature (expensive !) ...
... using a Wifi connection maybe, if the car is home, it connects to the home Wifi, and by pinging this IP address detecting this ?
... or any other way ?