Public Transport Departures Integration

Hi everyone! :wave:

I’d like to share a new custom integration and matching Lovelace card I’ve created for Home Assistant:

:point_right: ha-departures (custom integration)
:point_right: ha-departures-card (custom Lovelace card)

:wrench: What does it do?
ha-departures lets you display upcoming departures from public transport stations directly in Home Assistant. Perfect for dashboards, automations, or just a quick glance before leaving home!

The Lovelace card enhances the experience by providing a clean and easy-to-read visual layout of the departures.

:bus: Features:

  • Fetches departures from a specified stop/station
  • Filter by line and direction
  • Shows upcoming connections with countdown
  • Great for entrance displays or time-based automations
  • Fully configurable

:earth_africa: Supported services:

  • Powered by the EFA (Elektronische Fahrplanauskunft) API, so it works with many public transport networks across Germany.

:package: Installation:

  1. Add ha-departures via HACS as a custom repository
  2. Configure it via GUI configuration (Settings → Devices & Services → Public Transport Departures)
  3. Use the generated sensors in your dashboard

:hammer_and_wrench: Example configuration:

for more details about configuration of integration and Lovelace card, s. documentation in GitHub repositories

:camera: Sample Dashboard:


:speech_balloon: I’d love to hear your feedback, ideas for new features, or bug reports!
Feel free to reach out here or open an issue on GitHub.

Best regards,
Alex

8 Likes

Hi

Thanks for the great share and just curious but is it using GTFS source of data ? as I’d like to use it here in Switzerland and we have an API based on GTFS.

Thanks

Vincèn

Thank you, Vincèn.

The integration currently supports only EFA API, but nevertheless I will take a look in GTFS API description and think about implementation for that:

Regards
Alex

1 Like

Thanks @alex-jung :+1:

1 Like

It would be nice to have VRS included?
VRS open-data-service

2 Likes

Hallo Fugazzy,

I will contact VRS and ask whether is possible to provide an api for that.

1 Like

@alex-jung great Integration, but when i try to remove a connection i get this error.

Hi @stephanschleichstr13, thank you, I will fix it next week as soon I‘m back to germany.

1 Like

Issue is fixed in Release 2.2.0

1 Like

My Town switched to MVV, is it planed to support that?

Hi Stephan,

Can you please give me an example which bus stop and which line direction doesn’t work with ha-departures?

You have a pm

Edit: Problem was me, wrong source, was City switched.

:rocket: New Release: ha-departures – Now International! :earth_africa:

Hi everyone!

I’m excited to announce a major update for ha-departures! This release brings huge improvements and expands the integration beyond Germany.

:globe_with_meridians: International Support

Thanks to the switch to the Transitous API, ha-departures now supports public transport departures in many countries worldwide. Check out the full list in the README!

3 Likes