BavarianData

Manual / Your account

Multiple cars & accounts

BavarianData was built around one car in one BMW account, and everything since has been about making the other shapes work just as well. This page is the whole picture: what one config entry covers, what changes when a second car or a second account appears, and the few places you still have to say which car you mean.

One entry per account, not per car

A config entry is one BMW account: one Client ID, one OAuth login, one MQTT stream, one 50-request daily quota — and every car on that account. Each VIN becomes its own device with its own entities, history, charging ledger and tire record.

So:

  • Two cars on one account → add the integration once. Both cars appear.
  • Two accounts (yours and a partner’s, or a BMW and a MINI account) → add the integration twice, once per Client ID.
  • One account, added twice is refused. Setup stops with “This BMW account is already set up” if another entry already has the same account, even when you generated a second Client ID for it in the portal. It is not a limitation we invented: BMW allows one stream connection per account, so two entries would lock each other out in turns, and the 50-request quota is counted per account, not per Client ID.

A car can only be in one account, so no VIN is ever served by two entries.

Adding a car later

Buy a second BMW, or enrol an existing one in CarData after setup, and it simply turns up: it rides the same stream, so its entities appear on their own within minutes of the car sending anything.

Two things happen for it on their own:

  • Its name and model. Everything that turns a VIN into “i5 eDrive40” comes from a one-off REST call, fetched the first time the car is seen on the stream (one request against that day’s quota, once).
  • Its coverage grace period. The stream self-test gives a fresh car a week before reporting a cluster as silent. That clock is per car, so a car added two years in is not declared incomplete on day one.

You still have to tick the new car’s fields in BMW’s portal: Data Selection is per vehicle and has no API. Run Configure → Choose streamed data again and select the new car on the portal page the activator opens (step 4). When that finishes, the integration looks for the car itself and adds it with its entities — you do not have to wait for it to drive, or press Configure → Fetch from BMW now → Discover vehicles. (Re-authorizing the account does the same.)

Corner cases

  • A parked car can stay invisible for days. BMW’s stream carries only what the car sends now and keeps nothing for later, so a car that is asleep says nothing until something wakes it — a door, charging, a drive. That is why the integration asks BMW for the account’s car list instead of waiting: it does so when you finish Choose streamed data or re-authorize, and on demand with Discover vehicles.
  • A found car starts with REST values, not live ones. Discovery adds the car as a device and fills its entities from one telematics fetch (its name and model from a second request). Live values — position, doors, charging power — arrive only once the car streams, and only if its fields are ticked in the portal.
  • Only primary cars are added. A car BMW lists for the account with the status SECONDARY is not adopted.
  • It costs quota, once per car. Two requests against the account’s 50 a day, only when a new car is found; nothing is spent when there is none. If the quota is used up, the car is skipped, and Discover vehicles tries again later.
  • A failed attempt is not repeated by itself. If BMW has no data for a car yet, the integration does not retry on its own until the next Home Assistant restart, so a car BMW cannot answer for cannot drain the quota. Press Discover vehicles to retry it.
  • A car that is already streaming is not fetched again. If it spoke first, it is added by that message and the extra fetch is skipped.
  • Adding the same account again keeps everything. Running Add device with a Client ID that is already set up re-authorizes the existing entry in place, history included.

Quota with several cars

The 50 requests a day belong to the account, and the daily refresh costs 2 requests per car (the telematics container, plus the tire diagnosis). Three cars on one account is 6 of 50 a day — comfortable. Two separate accounts get 50 each, because BMW counts per account. See API quota.

Telling the cars apart

WhereWhat to do
The cardOne card per car: set device: (the picker offers each car by name) or vin:. With nothing set it picks the first car it finds.
ServicesPick the car under Vehicle (device_id:), or pass vin:; either also identifies the account. A service that acts on one car refuses a call that names none and lists the cars; fetch_telematic_data, get_charging_sessions, get_trips, get_coverage_report and import_statistics read every car when none is named. See Services.
AutomationsDevice triggers belong to one car: pick the car, and only its events fire the automation. The bavariandata_* events carry vin, entry_id and vehicle (the car’s name); filter on trigger.event.data.vin. The charging-complete blueprint has a Cars filter and names the car; the others take one car’s entities, so give each car its own automation.
The MQTT bridgeTopics are per VIN (<prefix>/<vin>/soc, <prefix>/<vin>/stream), so several cars share one prefix without colliding. Whether a car is published for evcc, and whether it shares its whole stream, is set per car; generate each car’s evcc block with bavariandata.get_evcc_config and its vin.
ABRPPer car: each car is sent with its own token from the ABRP app, and the position switch is per car too. Your own API key, if you need one, is shared. See Settings.
Wallbox meter & charging lossesPer car: Configure → Charging costs & history asks which vehicle first. Give each car its own meter if each has its own wallbox; then both can charge at once and each estimate follows its own meter. One wallbox for both cars is fine: a second car starts with the first car’s meter, and the meter counts for whichever car is charging at home. Only while both charge at home on it (cars of another account included) does neither claim it: each session is then billed from its own battery-side figure and neither estimate follows the meter. The price applies to every car.
Trip settingsPer car: Configure → Trips asks which vehicle first, and each car keeps its own work zone, default type, commute stop tolerance, trip detection and route recording. Only Resolve addresses, Weather along the route and Trip-capture diagnostics are shared. See Settings.
Debug loggingThe log level is one switch for the whole integration — it cannot be per account. Verbose logging stays on while any entry has it enabled, and logs every account’s data while it is on.
Repairs & notificationsCoverage repairs name the car; the quota and stream repairs name the account by its title, which is its cars’ names (an entry you renamed keeps your name). Each account’s diagnostics device is named after it too.

Settings per car. Trips, Charging costs, the MQTT bridge and ABRP ask which vehicle first; the next screen starts with that car’s own settings, and the ones every car shares follow under All vehicles. See Settings.

The vehicle question with two cars: a Vehicle dropdown and a Next button

Removing an entry

Removing one entry leaves the other running: its stream, services and card are untouched. The entry being removed takes its own stored history, coverage record and tire data with it, and clears any retained evcc topics for every car it ever had — including one that only ever streamed and never answered a basic-data request. Its cars’ pictures go too.

Removing a car

A car you sold, or that is now on someone else’s BMW account, can be deleted on its own: Settings → Devices & services → Devices, open the car, and choose Delete from the ⋮ menu. That removes its entities and everything BavarianData kept for it: charging and trip history, the odometer log, the tire diagnosis, its long-term statistics, its pictures, its own settings (trips, wallbox meter, mileage allowance) and any retained evcc topics. The other cars on the account are untouched; the account reloads once while this happens. The account’s diagnostics device can’t be deleted this way, since it belongs to the account.

When Discover vehicles (or fetch_vehicle_mappings) finds that BMW no longer lists a car for the account, a repair says so and points here. A car that is still on the account comes back with its next stream message, starting with an empty history.

Updated Edit this page on GitHub