What does an IT guy do on a Saturday morning over his second cup of coffee? He thinks about an API – and how to get at his car’s data.
In the My BMW app I can see everything: kilometres driven, every charging session, the charge level, where the car is parked. For the analyses here on Stromroute, such as the charging map and the costs per country, I'd like to have this data as a table. The catch: there is no export button in the app.
So far I've collected my charging sessions by hand – from 171 emails, invoices from charging providers and the odd CSV export. It works, but it's tedious. Since today, a small computer at home records everything from the BMW iX automatically.
BMW CarData: the official way to the BMW iX data
BMW offers an official interface for your own vehicle data: BMW CarData. It's free and provides two things. A live data stream, through which the car sends its charge level, location, doors and hundreds of other values. And requests, for example to fetch the charging history – but no more than 50 times a day.
You don't set this up in the app but in the MyBMW web portal on a computer: choose the vehicle, open the "BMW CarData" tile, create a so-called CarData client and switch on both kinds of access. Good to know: CarData is read-only. You can't lock the car or start the climate control with it – that's still what the app is for.
Home Assistant on the Raspberry Pi
The data ends up in Home Assistant, free software for the smart home. It runs on a Raspberry Pi 5 that we already use as our own cloud with Nextcloud. Home Assistant simply runs alongside it, as a container.
The connection to BMW is handled by an extension called BavarianData. It comes from the community, not from BMW. It keeps a trip log, records every charging session and, at the start of each month, exports everything as a CSV table and a printable report. 224 data fields are now enabled for my iX. Right after I locked the car for the first time, the first values arrived: 92 percent charge, 559 kilometres of range, tyre pressures, doors, alarm system.

Where it got stuck
It wasn't entirely without hiccups:
Safari: A bookmark that enables the data fields in the BMW portal simply did nothing in Safari. It works in Chrome.
The BMW sign-in has to be opened in a new tab. If it replaces the Home Assistant page, the setup gets stuck.
Only 30 days back: Via CarData, BMW only hands out the charging history for roughly the last 30 days. My charging sessions since buying the car at the end of April can't be recovered this way. From now on, though, Home Assistant records every session itself.
What the data already shows
October alone is revealing: 12 charging sessions with a total of around 433 kWh. For each one there's the location, duration, charge level before and after, the energy and the peak charging power.
Interesting in connection with my post about the fault memory: on 4 October the iX charged at up to 191 kW in Vilters-Wangs. So it does reach full charging power. From now on I'll see in black and white, for every session, whether it stays that way.

My conclusion
The setup took me a Saturday morning. You do need a bit of IT knowledge: Docker, a command line, a few configuration files. If you only want to glance at your charging sessions now and then, the app is fine. But if you want to do your own analyses, BMW CarData finally gives you the raw data – and it stays at home, with a nightly encrypted backup.
What's next
The first real test comes on 20 November: our road trip to Greece. It's the first long journey on which every charging session and every kilometre is recorded automatically. The analysis with charging power, costs and route will follow here.
