Mercedes Eco Coach for Home Assistant
An unofficial, experimental custom integration for Home Assistant 2026.9 that brings Mercedes Eco Coach driving statistics, points and award history into Home Assistant. It is not affiliated with Mercedes-Benz.
Features
- Personal drive score, electric consumption, saved emissions and points; daily, weekly and monthly statistics where provided by Eco Coach.
- Account point balance, recent points by category and latest individual awards.
- Locally cached award history with a manual re-import button and paginated Home Assistant action. Historical awards are not replayed as new events.
- A bundled, theme-aware Eco Coach dashboard card with selectable statistics and browsable award history.
- Since version 0.8.0, expandable driving awards with whitelisted, location-free trip summaries.
- Since version 0.8.0, level points, current level, provider progress and challenge counts
from the existing 15-minute report poll, without extra requests. These are not
available in older releases. Progress is unitless: its scale is not
verified, so it is not converted to a percentage. Numeric level values and
the confirmed
PROcode (displayed as Eco Pro) are accepted; other unconfirmed string codes, missing values and malformed optional fields stay unknown. Challenge counts are the lengths of the supplied community/competitive lists (empty means zero; missing/invalid means unknown), not inferred completion totals. Challenge details, level descriptions and level lists are discarded and never become entity attributes or cached history.
Requirements
- Home Assistant 2026.9.0 or newer, HACS (recommended) or manual installation.
- A Mercedes account with Eco Coach access for your vehicle and its 17-character VIN.
Install via HACS
Until the HACS default-catalog submission
is accepted, add https://github.com/aavdberg/ha-mbecocoach to HACS →
Custom repositories as an Integration. Download Mercedes Eco Coach
and restart Home Assistant. Alternatively, copy
custom_components/mbecocoach from main into
/config/custom_components/ and restart.
Go to Settings → Devices & services → Add integration → Mercedes Eco Coach and enter the VIN. Choose browser-assisted login (default) or the experimental direct login; an existing access token can also be entered manually. The browser flow requires a desktop browser and a one-time callback copy. See the sign-in guide before starting. Never share your callback URL, password or tokens.
Dashboard and documentation
After setup, choose Edit dashboard → Add card → Eco Coach, then select your Total account points entity. The card is installed with the integration but is not automatically added to your dashboards. From version 0.8.0, expand a driving award to view its available summary. Routes, locations and coaching messages are discarded; see the Wiki for cached fields, history re-import and privacy details.
The Wiki covers: installation, sign-in, sensors and points, the dashboard card, troubleshooting and privacy and limitations.
This is an experimental integration: direct login does not support MFA or unexpected consent screens, and token renewal at a real expiry is not yet confirmed. For problems or feature requests, use GitHub Issues without including credentials, callback URLs, VINs, raw logs or private trip data.
Development
Development happens on dev; published releases come from main.
See CONTRIBUTING.md for the PR-to-dev strategy, Copilot
review gates, beta/stable release process and automation prerequisites.
Run python -m ruff check custom_components tests .github/scripts,
python -m ruff format --check custom_components tests .github/scripts,
python -m pytest -q and node --test tests/*.mjs.
Promote dev to main only when explicitly requested.