evcc
evcc copied to clipboard
Mercedes-Benz vehicle integration does not work anymore
Describe the bug
The Mercedes-Benz vehicle integration has authentication problems and does not provide vehicle data anymore (since July, 10th, 2025)
From mbapi2020 HomeAssistant integration (https://github.com/ReneNulschDE/mbapi2020/releases/tag/v0.27.0), facing the same issue:
- Mercedes-Benz recently introduced changes to the backend API, resulting in rate limits for certain resources (e.g., real-time updates). This required new token generation on a daily basis.
- To address this, a new login flow using your Mercedes-Benz username and password was implemented. These credentials are now used to recover automatically from such issues.
- The token creation tool is no longer needed.
Steps to reproduce
...
Configuration details
- name: Fahrzeug1
type: template
template: mercedes
title: EQA
capacity: 67
user: ...
region: EMEA
accessToken: ...
refreshToken: ...
icon: car
phases: 3
minCurrent: 6
maxCurrent: 20
cache: 1m
Log details
[main ] INFO 2025/07/11 09:25:40 using config file: /etc/evcc.yaml
[main ] ERROR 2025/07/11 09:25:41 creating vehicle Fahrzeug1 failed: cannot create vehicle type 'template': cannot create vehicle type 'mercedes': cannot get vehicles: unexpected status: 418 (I'm a teapot)
.Soc: vehicle not available: cannot create vehicle type 'template': cannot create vehicle type 'mercedes': cannot get vehicles: unexpected status: 418 (I'm a teapot)
Capacity: 67.0kWh
Features: [Offline Retryable]
What type of operating system or environment does evcc run on?
Linux
External automation
- [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.
Nightly build
- [x] I have verified that the issue is reproducible with the latest nightly build
Version
0.204.5
We have the same problem
Did you really check nightly? Should be fixed in there. See https://github.com/evcc-io/evcc/issues/22286
Just installed the nightly build and it works again!