Describe the bug
Environment
evcc version: 0.312.1
Installation: Home Assistant Add-on
Home Assistant Core: 2026.7.3
Home Assistant OS: 18.1
Supervisor: 2026.07.3
Problem
Adding a Mercedes vehicle fails during vehicle creation.
OAuth authentication succeeds and the access/refresh tokens are stored successfully. The failure occurs when evcc tries to retrieve the vehicle list from the Mercedes API.
The following error is logged:
cannot create vehicle type 'mercedes':
cannot get vehicles:
Get "https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles":
tls: failed to verify certificate:
x509: certificate signed by unknown authority
What I tested
Home Assistant Terminal
curl fails with a certificate validation error:
curl -Iv https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles
Result:
SSL certificate verify result:
unable to get local issuer certificate (20)
wget also fails:
wget -S https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles
Result:
ssl_client: SSL_connect
certificate verify failed
DNS / Connectivity
DNS resolution works correctly:
bff.emea-prod.mobilesdk.mercedes-benz.com
108.142.113.26
Network connectivity is working and the server is reachable.
Windows comparison
Running the same curl command from a Windows PC on the same network works without any TLS/certificate errors:
curl -Iv https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles
Result:
HTTP/1.1 405 Method Not Allowed
This is expected because curl sends a HEAD request. The important part is that Windows establishes the TLS connection successfully.
Additional information
Home Assistant OS is fully up to date.
evcc is running the latest stable version (0.312.1).
The CA bundle exists:
/etc/ssl/certs/ca-certificates.crt
System date and time are correct.
The problem is reproducible after restarting Home Assistant.
Expected behavior
The Mercedes vehicle should be detected and added successfully.
Actual behavior
TLS verification fails before evcc can retrieve the vehicle list from the Mercedes API.
Steps to reproduce
- Install the latest stable evcc Home Assistant add-on (v0.312.1).
- Open the evcc UI.
- Add a new vehicle.
- Select "Mercedes".
- Enter the Mercedes account credentials / OAuth tokens.
- Save the vehicle configuration.
- evcc tries to retrieve the vehicle list from https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles.
- Vehicle creation fails with:
tls: failed to verify certificate:
x509: certificate signed by unknown authority
Configuration details
Installation:
- Home Assistant OS
- evcc Home Assistant Add-on v0.312.1
Home Assistant:
- Core 2026.7.3
- Supervisor 2026.07.3
- Home Assistant OS 18.1
Vehicle:
- Mercedes EQV 300
Other configured devices:
- Fronius GEN24 inverter
- Fronius Smart Meter
- 2x Fronius Wattpilot (OCPP)
Network:
- Internet connectivity working
- DNS resolution working
- No proxy configured
Additional observations:
- Volvo Connected API works without issues.
- Only the Mercedes integration fails.
- curl and wget executed inside the Home Assistant terminal both fail with certificate verification errors.
- The same curl request from a Windows PC on the same network succeeds without TLS errors.
Log details
[mercedes] DEBUG identity.NewIdentity - database token found
[main] ERROR creating vehicle db:10 failed:
cannot create vehicle type 'template':
cannot create vehicle type 'mercedes':
cannot get vehicles:
Get "https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles":
tls: failed to verify certificate:
x509: certificate signed by unknown authority
Additional verification:
Home Assistant Terminal:
curl -Iv https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles
Result:
SSL certificate verify result:
unable to get local issuer certificate (20)
wget -S https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles
Result:
ssl_client: SSL_connect
certificate verify failed
Windows (same network):
curl -Iv https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles
Result:
HTTP/1.1 405 Method Not Allowed
(no TLS/certificate errors)
What type of operating system or environment does evcc run on?
HomeAssistant Add-on
External automation
Nightly build
Version
evcc v0.312.1 (stable)
Describe the bug
Environment
evcc version: 0.312.1
Installation: Home Assistant Add-on
Home Assistant Core: 2026.7.3
Home Assistant OS: 18.1
Supervisor: 2026.07.3
Problem
Adding a Mercedes vehicle fails during vehicle creation.
OAuth authentication succeeds and the access/refresh tokens are stored successfully. The failure occurs when evcc tries to retrieve the vehicle list from the Mercedes API.
The following error is logged:
cannot create vehicle type 'mercedes':
cannot get vehicles:
Get "https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles":
tls: failed to verify certificate:
x509: certificate signed by unknown authority
What I tested
Home Assistant Terminal
curl fails with a certificate validation error:
curl -Iv https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles
Result:
SSL certificate verify result:
unable to get local issuer certificate (20)
wget also fails:
wget -S https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles
Result:
ssl_client: SSL_connect
certificate verify failed
DNS / Connectivity
DNS resolution works correctly:
bff.emea-prod.mobilesdk.mercedes-benz.com
108.142.113.26
Network connectivity is working and the server is reachable.
Windows comparison
Running the same curl command from a Windows PC on the same network works without any TLS/certificate errors:
curl -Iv https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles
Result:
HTTP/1.1 405 Method Not Allowed
This is expected because curl sends a HEAD request. The important part is that Windows establishes the TLS connection successfully.
Additional information
Home Assistant OS is fully up to date.
evcc is running the latest stable version (0.312.1).
The CA bundle exists:
/etc/ssl/certs/ca-certificates.crt
System date and time are correct.
The problem is reproducible after restarting Home Assistant.
Expected behavior
The Mercedes vehicle should be detected and added successfully.
Actual behavior
TLS verification fails before evcc can retrieve the vehicle list from the Mercedes API.
Steps to reproduce
tls: failed to verify certificate:
x509: certificate signed by unknown authority
Configuration details
Log details
What type of operating system or environment does evcc run on?
HomeAssistant Add-on
External automation
Nightly build
Version
evcc v0.312.1 (stable)