BavarianData

Manual / Reference

Settings reference

All settings live under the integration’s Configure menu: Settings → Devices & Services → BavarianData → Configure. Every action step and every option is listed here.

The menu has three kinds of entry: stream setup, settings screens, and one-shot fetch actions (which spend API quota). Changes to settings screens apply immediately — the integration doesn’t reload the entry, because BMW allows only one concurrent stream per account and a reload risks racing the reconnect.

The Configure menu

BavarianData options menu (the main menu since v0.9.20)

The menu labels below are exactly as they appear in the UI.

Menu entryKindWhat it does
Choose streamed datasetupRe-open the cluster picker, then activate the fields with the one-click Activate BMW data bookmarklet (same activator as guided setup). Additive — it adds the chosen clusters to the live stream but never removes fields you already stream.
Your carsettings ⚡Where the car’s picture comes from (BMW CarData, or BMW’s online configurator), and what BMW doesn’t send about the car: its battery size when new and its tank size — below.
Charging costs & historysettingsPrice source, retention, statistics — below.
Solar & energy sourcessettingsWhere each charge’s energy came from: PV, house battery, grid — below.
Share live datamenuSend the car’s live state elsewhere: MQTT bridge (evcc & more) for a charge controller or other apps, ABRP (A Better Routeplanner) for route planning — both below.
TripssettingsHome zone, work zone, default type, commute stop tolerance, address resolution and route recording — below.
Mileage allowancesettingsA lease or a yearly mileage limit for each car — below.
UnitssettingsKilometers or miles, fuel, temperature and tire pressure units, for the card, the screens and the sensors — below.
Automatic data refreshsettings ⚡Catch up with BMW after Home Assistant starts — below.
Fetch from BMW nowmenu ⚡Ask BMW for data now instead of waiting for the daily refresh — the next table.
ConnectionmenuKeep the link to BMW working, and debug logging — the table after it.
The Share live data submenu: MQTT bridge (evcc & more) and ABRP (A Better Routeplanner)

Configure → Fetch from BMW now

Menu entryKindWhat it does
Discover vehiclesaction ⚡Fetch vehicle mappings and add any car not yet known as a device. See Services.
Fetch telematics dataaction ⚡See Services.
Fetch basic vehicle infoaction ⚡”
Fetch charging historyaction ⚡”
Fetch tire diagnosisaction ⚡”
Fetch charging settingsaction ⚡Location-based charging settings. ”

Configure → Connection

Menu entryKindWhat it does
Re-authorize with BMWactionSign in to BMW again with the same Client ID (after BMW invalidates the token).
Refresh tokens nowactionForce an OAuth token refresh.
Reset telemetry containeraction ⚡Replace the integration’s REST container with a fresh one (about three requests). Use if telematics fetches start failing with CU-105 or CU-121.
Debug loggingsettingsVerbose logging toggle — below.

⚡ = spends one (or more) of your 50 requests a day.

Change the Client ID: not under Configure but Reconfigure on the integration (Settings → Devices & services → BavarianData → ⋮). Enter the new Client ID, then sign in to BMW as at setup. The entry stays the same, with its cars, their history and every setting; a Client ID of another BMW account is refused and nothing changes.

Your car

Screen: Configure → Your car. It opens a menu: Picture source, Car details (below), and Upholstery once the configurator is the picture source:

The Your car menu: Picture source, Car details and Upholstery
Picture source: one dropdown, set to BMW configurator (360°, unofficial), and a Submit button
OptionValuesMeaning
Picture sourceBMW CarData (official) · BMW configurator (360°, unofficial)Default BMW CarData: BMW’s one side view of the car, one of your 50 requests a day per car. BMW configurator draws your exact car the way BMW’s online configurator does, from the model, paint and factory options in its basic vehicle info: a 360° turntable in the card you can drag to turn, and the real paint on the card’s top-down car. It spends no requests, but it is not part of CarData: it is the service behind BMW’s configurator web page, which BMW can change or block at any time.
UpholsteryBMW’s default · your model’s upholstery, under BMW’s namesWith the configurator as the picture source, the Your car menu also offers Upholstery, because BMW’s vehicle data doesn’t say what the seats are covered in. With several cars, pick the car first; Submit redraws that car only. The list is your model’s own, as BMW’s configurator offers it, named in the language of the market that sold the car (German for a car sold in Germany or Austria). Left at BMW’s default, the interior panorama shows BMW’s standard upholstery. Each car keeps its own choice, even on an account with one car, so a car added later starts from BMW’s default. If BMW’s configurator lists no upholstery for a car’s model, or doesn’t answer, the screen says so.
Upholstery screen for the i5 eDrive40: one dropdown, Upholstery, set to BMW's default, and a Submit button

Submit fetches the picture straight away and keeps it across restarts. With the configurator it waits only for the 360° view (a few seconds per car); the rest follows in the background within about a minute: the same view with the lights on and at night, the interior panorama, the photo from above (MINIs only) and the names and pictures of the car’s factory options for the card’s equipment view. With several cars, the setting is saved as long as at least one can be drawn: a car the configurator can’t draw keeps its official picture, and a closing message names it. If that car has no official picture yet, one is fetched (one request). Home Assistant’s log says why the car couldn’t be drawn. If no car can be drawn, nothing is saved and the screen names the car and why (not a BMW or MINI car, its basic vehicle info isn’t in yet, the configurator didn’t answer, or it has no picture of that model). A car added later is drawn when it first appears, or gets its official picture if it can’t be.

These pictures are fetched only then: when you press Submit here, and once for a car when it is first added. Nothing refreshes them on a schedule or after a restart or update, so press Submit again to fetch them anew (for example after updating BavarianData, to get pictures a newer version adds).

The configurator draws BMW and MINI cars, including models no longer sold. It has no overhead view of BMW models, and its interior shows the upholstery you picked, or BMW’s default: BMW’s vehicle data doesn’t say which one a car has. Whenever there is no configurator picture for a car, the card falls back to the official one.

Car details

Screen: Configure → Your car → Car details. What BMW doesn’t send about a car, for you to fill in. It shows only what applies to the car (with several cars, pick the car first); a car that sends everything gets a note instead. Each car keeps its own details, even on an account with one car, so a car added later starts empty. Leave a field empty if you don’t know the figure.

Car details for a 530e: Battery size when new in kWh and Tank size in liters, both empty, and a Submit button
OptionValuesMeaning
Battery size when newkWhOnly for a car with a battery that sends 0 or nothing as its size when new (BMW’s batterySizeMax). Battery health compares the capacity it learns with this size. Once the car sends its own size, that one is used and the field is gone.
Tank sizelitersFor a car with an engine. BMW sends the liters in the tank on some cars only now and then (a 530e only with its Teleservice call), while the fuel level in % comes with every drive. While BMW’s liters are out of date, the fill level times this size stands in for them, so the Fuel view still finds refuels in liters and shows the consumption between them.

Automatic data refresh

Screen: Configure → Automatic data refresh.

Automatic data refresh settings: one toggle, Catch up after a restart or an outage, switched on

The live stream only carries what changes while Home Assistant is listening. Whatever a car reported while Home Assistant was down, or while a network outage cut the connection to BMW — a charge that ended, the doors being locked, a drive — is not replayed on reconnect, and a car charging at steady power can stay silent for hours afterwards. So the integration asks BMW once per car for its current state: two minutes after a start, and when the connection comes back after an outage of five minutes or more. BMW returns the last value each car sent, so this catches up without waking the car; it cannot produce a newer reading than the car last sent.

OptionValuesMeaning
Catch up after a restart or an outageon/offDefault on. One request per car of your 50 a day. Skipped when BMW was asked within the last hour (the daily refresh or a manual fetch count too), so restarting repeatedly, or a connection that keeps dropping, costs nothing more; a charge that was running at a restart is still checked if the last request is over half an hour old. Always leaves 10 requests for your own service calls. Takes effect immediately.

A charge running at the restart is settled by this answer: still charging and it carries on as the same session, stopped and it is recorded as ended — see Restarting while the car is charging.

Charging costs & history

Screen: Configure → Charging costs & history. See Charging history & cost for the concepts.

Charging costs & history settings: price source, fixed price, price entity, currency, wallbox energy sensor, charging losses and retention

Several cars on the account? The screen first asks which vehicle. Each car keeps its own Wallbox energy sensor and Charging losses: two cars can charge at two wallboxes, through two different chargers. The price, currency, history and statistics settings apply to every car; they sit in the All vehicles section below the car’s own. With one car there is no vehicle question.

Charging costs for a second car: its own wallbox sensor and charging losses on top, the shared price settings in the All vehicles section below
OptionValuesMeaning
Price sourcenone · fixed · entityHow energy becomes money. none creates no cost entities at all.
Fixed price per kWhnumberPrice per kWh, when mode is fixed. Required in that mode.
Price entitysensor / input_numberLive price source (Tibber/Nordpool/aWATTar), when mode is entity. Sampled while charging. Required in that mode.
CurrencytextCurrency code for the cost entities.
Wallbox energy sensorsensorOptional. The wallbox’s cumulative energy total (total_increasing, not a per-session counter). Its measured grid figure replaces the battery-side estimate in the session record, the monthly totals and the cost. After three home charges it also drives the state-of-charge estimate while the car charges at home. Only read for charges in your Home zone, and refused when it can’t be right — see the bridge page.
Charging losses (%)0–30Grosses the battery figure up by your losses. Default 0 (no invented correction).
Keep history for (months)0–120How long to keep recorded sessions/trips. 0 = keep everything.
Publish to long-term statisticson/offMirror history into the Energy dashboard. Turning it off deletes the published series. See Energy & statistics.
Remember charging locationson/offDefault off. Keeps each charge’s coordinates so the card’s Places tab can show a map. Writes coordinates to disk; turning it off deletes them. Applies to every car of the account. See Charging places.

Solar & energy sources

Screen: Configure → Solar & energy sources. See Charging history & cost → Where the energy came from for what it does with these.

Solar and energy sources: PV, grid and house battery power, the battery sign switch, and Value of own solar set to Price entity with the fixed value and the feed-in price entity below
OptionValuesMeaning
PV powersensor (power)Total generation from your inverter(s). Required for any attribution. If it reads unknown after dark (many inverters go offline at night), it counts as 0 W while the sun is down.
Grid power (+ import / − export)sensor (power)Signed power at the meter: positive while importing. Required.
House battery powersensor (power)Optional. Without it you get a two-way PV/grid split. Expected positive while discharging.
My battery sensor is positive when chargingon/offFlips the sign convention. There is no way to tell from the value itself, so this has to be stated.
Value of own solarImport price · Fixed value · Price entityWhat a kWh off your own roof is worth — usually your feed-in tariff. Default Import price: solar is costed like grid energy, and only the mix is new. Fixed value uses the number below; Price entity follows a dynamic feed-in price, read while the car charges, like the import price entity. If that entity can’t be read, the solar part is left unpriced and the cost is marked partial. A value filled in under a source that doesn’t use it is refused.
Fixed value per kWhnumberOnly used with Fixed value.
Feed-in price entitysensorOnly used with Price entity. Its state must be a price per kWh.

Both power sensors are needed: with only one, the split would have to assume the other. Sensors reporting kW are converted automatically; one with no unit at all is read as watts.

The pickers list sensors whose device class is power. If your own template sensor isn’t offered, give it device_class: power (and a unit_of_measurement of W or kW) and it will appear.

MQTT bridge (evcc & more)

Screen: Configure → Share live data → MQTT bridge (evcc & more). See MQTT bridge (evcc & more) for the concepts, the topic table and the troubleshooting.

MQTT bridge (evcc & more) with one car: publish this car for evcc, share its whole stream, leave out the position, topic prefix and publish retained

Several cars on the account? The screen first asks which vehicle, and Publish this car for evcc and Share this car’s whole stream are per car, so a car charged elsewhere can stay off the broker, VIN included. Switching one car off removes that car’s topics. Leave out the position, Topic prefix and Publish retained apply to every car, in the collapsed All vehicles section.

MQTT bridge for a second car: its own evcc and stream switches on top, leave out the position, topic prefix and retained shared in the opened All vehicles section

Publishes the car’s live state onto your MQTT broker so evcc, openWB or a Node-RED flow can read a state of charge that costs no API quota. Requires the MQTT integration to be set up in Home Assistant — the bridge publishes through it, so there is no broker host or password to enter here. Switching evcc on shows a second screen with the ready-to-paste evcc configuration; sharing only the stream saves straight away.

It is also the answer when another app wants the car’s data: BMW allows one stream per account, so evcc’s own BMW vehicle, a MagicMirror or a script should read it from here rather than connect to BMW and take the stream away from Home Assistant.

OptionValuesMeaning
Publish this car for evccon/offDefault off. It puts the VIN and the car’s state on a broker other things can read. Switching it back off removes the published topics.
Share this car’s whole streamon/offDefault off. Every value BMW streams for the car, on <prefix>/<VIN>/stream, for apps that would otherwise need a stream of their own. See Sharing the whole stream. Switching it off removes what it published.
Leave out the positionon/offDefault on. Keeps the car’s location and navigation destination out of the shared stream. Turning it back on removes the position topics.
Topic prefixtextTopic root; everything lands under <prefix>/<VIN>/. Default bavariandata. Slashes are trimmed and an MQTT wildcard falls back to the default.
Publish retainedon/offDefault on, and best left on: it is what lets evcc (and a dashboard reading the shared stream) find the latest value the moment it starts rather than waiting for the car to speak again. Turn off only for a broker that refuses retained messages.

ABRP (A Better Routeplanner)

Screen: Configure → Share live data → ABRP (A Better Routeplanner). What ABRP shows and the questions people ask are on ABRP live data.

ABRP settings: Send to ABRP, Car token, Include the position and Own API key (optional), both switches off and both fields empty

Sends the car’s live state to ABRP, so a route plan starts from the real battery instead of a guess. It goes straight off BMW’s stream, so it costs no API quota, and ABRP’s live data works with a free ABRP account.

Before you start: save the car in the ABRP app, then open the car’s Live data, pick Custom connection and tap Copy token under Generic token. (A car that already has a connection shows its live data instead: tap Edit there first.) A free ABRP account holds one car: with a second one saved, the app asks for Premium before it gives out a token.

OptionValuesMeaning
Send to ABRPon/offDefault off. Switching on checks the token with ABRP straight away (a message that carries only the time); a token ABRP refuses is said on the screen. Switching off simply stops sending.
Car tokentextThe token from the ABRP app (the car’s live data, Custom connection). Belongs to this car only: a car added later doesn’t inherit it.
Include the positionon/offDefault off. Adds the car’s location and altitude. Without it, ABRP knows the battery but not where the car is.
Own API key (optional)textLeave empty. Every release carries BavarianData’s own ABRP key; enter yours (ABRP account → telemetry API keys) only if that one stops working. With several cars it sits in the collapsed All vehicles section and applies to every car.

What is sent: the charge level, whether the car is charging (and from a DC charger), the charging power, whether it is parked, the odometer and BMW’s range, plus the position if you switched it on. As on the MQTT bridge, a value the car hasn’t reported is left out, never sent as zero, and nothing is sent until the car has reported a charge level. Points go out when something changes and are repeated every 30 seconds with the last known values, because ABRP treats a car that falls silent as gone. BMW’s stream carries no speed or outside temperature, so ABRP doesn’t get those.

Several cars on the account? The screen first asks which vehicle; each car has its own switch and token.

Trips

Screen: Configure → Trips. See Trips for the concepts.

Configure, Trips with one car: home zone, work zone, default type, commute stop tolerance, trip detection, record route, resolve addresses, weather along the route and trip-capture diagnostics

Home zone is your home for every car on the account: commutes, the car’s location in Home Assistant, and charging at home (the wallbox meter, the home tariff and the energy mix). It is Home Assistant’s own Home unless you pick another zone — for a Home Assistant that runs somewhere else. Inside the chosen zone the car’s location reads Home; where Home Assistant runs is then just a place by its name. It applies from the next trip, charge and position on; stored trips and charges keep the place they were filed under.

Several cars on the account? Trips first asks which vehicle, and each car keeps its own Work zone, Default type, Commute stop tolerance, Trip detection and Record route: a company car and a private one, or an older car next to one that streams while driving. Home zone, Resolve addresses, Weather along the route and Trip-capture diagnostics apply to every car; they sit in the collapsed All vehicles section at the bottom of each car’s form. A car added later starts with the settings that were in use before it arrived. With one car there is no vehicle question.

The vehicle question with two cars: a Vehicle dropdown and a Next button
Trips settings for a second car on End-of-trip reports, with the shared All vehicles section opened below
OptionValuesMeaning
Home zonezone entityDefault Home Assistant’s Home. Your home, for every car: commutes, the car’s location and charging at home (above).
Work zonezone entityDrives commute classification (home↔work).
Default typePrivate / Business / Leave unclassifiedDefault Private. What every trip that isn’t a recognized home↔work commute is filed as. Always just a starting point: a correction on the card is never overwritten. Pick Leave unclassified to triage each trip by hand.
Commute stop tolerance0–180 minDefault 30. How long the car may stand between two drives for both to still count as one commute — the supermarket on the way to work. 0 switches chaining off. Stops under ~5 min never split a drive at all.
Resolve addresseson/offOff by default. When on, trip endpoints outside any zone are reverse-geocoded via OpenStreetMap; the address string is stored, never the coordinates.
Weather along the routeon/offOff by default. When on, after each trip its route (to about 1 km) goes to Open-Meteo once, and the trip stores the temperature, rain and wind along it, never the coordinates. Stored trips are filled in too. Once a day it also asks for the temperature where each car is parked, for the efficiency card. See Trips.
Trip detectionLive / End-of-trip reportsDefault Live: trips follow the car’s position while it drives. End-of-trip reports is for cars that send nothing while driving (iDrive 6 and older): one trip per vehicle report, from where the car stood at the previous one, with the live detection off. Start times come from bavariandata.mark_trip_start. See Trips.
Record routeon/offOff by default. When on, each new trip stores its GPS track — coordinates along the drive, each stamped with its time ([lat, lon, t], t = seconds since start) — so a map can draw and replay the route. It persists raw coordinates, your exact start/end included, as does Remember charging locations for charges. Served via get_trips; never in the export.
Phone / Phone is in the cardevice_tracker / binary sensorOnly on the follow-up screen Route from a phone, shown for a car on End-of-trip reports with Record route on. The phone’s positions draw the trip’s route; distance and times stay the car’s. The in-car sensor turning on marks the trip’s start. See Trips.
Second phone / Second phone is in the cardevice_tracker / binary sensorThe same pair for a second driver, on the same screen. If both phones rode along the first one draws the route; the second one’s is used when the first was not in the car. Empty changes nothing. See Trips.
Trip-capture diagnosticson/offOff by default. A troubleshooting aid for improving trip detection: logs the raw substrate (every GPS fix with cadence/latency, the close-timer lifecycle, full segment batches, a per-message descriptor firehose and a per-trip post-mortem) under [trip.*] tags, and writes bavariandata_trip_capture.ndjson to your config folder. Independent of Debug logging. Verbose and contains GPS/VIN — turn it on for a test drive and back off. See Troubleshooting.

Mileage allowance

Screen: Configure → Mileage allowance. See Mileage & allowance for what the figures mean.

Mileage allowance: None, Lease or financing, or Yearly limit (e.g. insurance), with a Next button

The first screen asks which kind of limit the car has: None, Lease or financing or Yearly limit (e.g. insurance). Next opens that kind’s form; None removes the car’s allowance. The allowance is always the car’s own: with several cars the vehicle question comes first, and a car added later starts without one. It applies at once, to the card and the sensor.

OptionValuesMeaning
Lease or financing: start date, end date, allowance per year and odometer at the start, filled in for a three-year lease at 15,000 km a year, and the open section Extra and unused distance with 20.06 ct/km over, 13.38 ct/km back and a 2,500 km tolerance
Yearly limit: the day the year starts, the allowance per year and the odometer that day

| Start date / Year starts on | date | The day the lease began, or the first day of your insurance year (a yearly limit renews on it every year). | | End date | date | Lease only: the day you hand the car back. Must be after the start. | | Allowance per year | km or mi (see below) | From the contract or policy. A lease’s total is this times its length. | | Odometer at the start / Odometer that day | km or mi | The reading on the start date, from the handover papers. Filled in with today’s reading while none is saved; for a yearly limit, the reading at the most recent start of the year. | | Price for extra distance | cents per km or mi (ct/km for EUR), optional | Lease only, under Extra and unused distance (collapsed until set): what the contract charges for each km or mile over the allowance, as the contract prints it (20.06 for 20.06 ct/km). If it lists several parts, such as mileage and maintenance, enter their sum. | | Refund for unused distance | cents per km or mi, optional | Lease only: what you get back for each km or mile under the allowance, in cents; several parts are entered as their sum. | | Tolerance | km or mi, optional | Lease only: how far over or under costs nothing. The card shows the cost at the return from these three. |

The boxes say which unit they take: the distance unit under Units, whose Automatic choice is the car’s own (the unit its odometer sensor is shown in, so a UK install, metric with the odometer switched to miles, types miles; else the car’s display setting when BMW streams it; else Home Assistant’s unit system). The card and the service calendar use the same rule. Earlier versions followed the unit system alone, so on a metric install an allowance typed in miles was saved as km: if yours looks too small, enter it once more.

Units

Screen: Configure → Units. How values are shown, for the whole account.

The Units screen: what the car is shown in now, then Distance, Temperature and Tire pressure, each on Automatic
OptionValuesMeaning
DistanceAutomatic / Kilometers / MilesDistances everywhere, and what follows them: consumption (kWh/100 km or kWh/100 mi), cost per 100 km or mi, speed (km/h or mph). Automatic is the rule from before: the unit your odometer sensor is shown in, else the car’s own display setting when BMW streams it, else Home Assistant’s unit system.
FuelAutomatic / Liters, l/100 km / Liters, mpg (UK) / US gallons, mpg (US)Only on an account with a petrol, diesel or plug-in hybrid car. The tank, refuels and fuel consumption. Automatic follows the distance: US gallons on US customary, liters with imperial mpg for a car in miles (the UK), liters and l/100 km otherwise.
TemperatureAutomatic / °C / °FAutomatic leaves it to Home Assistant.
Tire pressureAutomatic / bar / kPa / psiAutomatic leaves it to Home Assistant.

The screen lists what each car is shown in now. A choice applies at once to the dashboard card (every view), the settings screens, the service calendar, the month report and Assist, and also to the display unit of the car’s sensors in Home Assistant (odometer, ranges, speed, temperatures, tire pressures, tank), so Home Assistant’s own pages and graphs agree with the card. Automatic takes back a unit this screen set, but never one you picked on an entity yourself.

Your history is safe either way. Everything recorded stays in km, liters, °C and bar: trips, charging sessions, the odometer log and each sensor’s native unit. Only what is shown is converted, so you can switch back and forth. Data meant for other tools does not convert either: the CSV export, service responses, events and attributes keep metric values, and their names say the unit (distance_km, kwh_per_100km).

Why the unit system comes last under Automatic: Home Assistant knows only Metric and US customary, and a UK install is Metric (°C, liters) with a car that counts in miles. Put first, the unit system would always say km there.

Debug logging

Screen: Configure → Connection → Debug logging.

OptionValuesMeaning
Enable debug loggingon/offOff by default. Gates the integration’s verbose logging (separate from HA’s per-integration log level). Verbose and can include VIN/GPS — leave off unless chasing a problem. Applies immediately. With more than one BMW account set up, the log level is shared: logging stays verbose while any entry has this on, and covers every account (Multiple cars & accounts).

Hidden overrides

A few advanced options aren’t in the menu and are only set via the hidden overrides mechanism / imported options. Most users never touch them.

Option keyMeaning
mqtt_keepaliveMQTT keepalive interval for the stream client.
diagnostic_log_intervalHow often the diagnostic heartbeat is logged.

Updated Edit this page on GitHub