-
Notifications
You must be signed in to change notification settings - Fork 0
Feature Energy and Statistics
The recorded history is published into Home Assistant's own long-term
statistics, under this integration's bavariandata: namespace: charging
energy (kWh), charging cost and driving distance — one series per vehicle.
They're written as external statistics, so they can cover hours no entity was alive for. That means charging from before you installed this, or from while Home Assistant was down, still lands on the Energy dashboard.
Settings → Dashboards → Energy → Individual devices, and add the series (or the Charged Energy (Total) entity).
The statistics mirror the store rather than being a separate archive: each rebuild regenerates the whole series from the records still held, so your retention setting genuinely governs everything kept.
It happens automatically as sessions and trips are recorded. To force a rebuild:
-
bavariandata.import_statistics— rebuilds from the store and reports the row counts. Useful after restoring a backup, or to verify the counts.
Toggle statistics_import off under Configure → Charging costs &
history. This also deletes the published series — no stale mirror is left
lingering on the Energy dashboard.
BavarianData is an independent, community-built integration and is not affiliated with, endorsed by, or sponsored by BMW Group. "BMW", "Mini", "Rolls-Royce" and "CarData" are trademarks of their respective owners. Screenshots and documentation images of the MyBMW / BMW CarData portal are © BMW AG, shown here solely to document how to set up the service; personal data has been redacted. Released under the MIT License. · Issues · Discussions
Getting started
The card
Features
- Entities & devices
- Charging history & cost
- Battery health
- Trips
- Energy & statistics
- Export
- Events & blueprints
- API quota
Reference