BavarianData

Manual / Automate & connect

Export (CSV / HTML report)

The Charging and Trips card views each carry CSV and Report buttons that download the current month straight from the browser. Both are backed by the bavariandata.export_history service, so automations can use them too. Nothing is written to disk — the file contents come back as service response data — and it spends no API quota.

CSV

One row per session or trip:

  • Both the battery-side and measured grid energy in separate columns.
  • The cost and where it came from, and any time or parking fees you entered within it, in the last column (cost_fees).
  • For trips, the endpoints as place names, and, with route weather on, the outside temperature with its lowest and highest value and where it was looked up (outside_temp_c, outside_temp_min_c, outside_temp_max_c, weather_source).
  • For trips, the odometer when the car set off and when it stopped (odometer_start_km, odometer_end_km). Empty on trips recorded before 0.9.34 and on a car that sent no odometer for that drive.

Headers are always machine-readable English. Opens cleanly in Excel and Numbers.

HTML report

A self-contained HTML page: month totals (business, commute and private each with its share of the month’s distance), the charging table and the trip journal. The trip journal shows the odometer at both ends of each drive (in the account’s unit) once a trip of that month has it. Print it (Ctrl/⌘+P → Save as PDF) for a tidy A4 document. The report language follows Home Assistant’s own language, or set it explicitly.

The report is a trip journal and expense helper, not a tax-office-compliant logbook, and says so on the page.

Calling it directly

service: bavariandata.export_history
data:
  month: "2026-07"     # defaults to the current month
  type: both           # charging · trips · both
  format: csv          # csv · html
  language: de          # en · de · fr · it · es · nl · pl · pt · cs · sv (HTML report only; defaults to HA's language)

See the Services reference for the full field list.

Updated Edit this page on GitHub