Hey everyone ![]()
I built a custom Home Assistant integration for SL real-time departures. No Trafiklab account, no API key β uses SLβs open API and just works.
It has three sensors per stop:
β’
Next Departure β real-time countdown (β3 minβ, βNuβ, β08:42β) with line, destination and delay as attributes
β’
Departures β list of upcoming trips, great for dashboard cards and TTS automations
β’
Status β normal / delayed / cancelled, with full history and per-departure issue details
Setup is a proper config flow:
Search for your stop by name, then pick the exact line + direction combinations you want to monitor (e.g. only Line 41 β MΓ€rsta, not everything at the stop). Configure how many departures to show and how far ahead to look.
Works for all SL transport modes β bus, metro/tunnelbana, pendeltΓ₯g, tram, and ferry.
Install via HACS (custom repository for now, submitting to the default catalog soon):
Or manual install: copy custom_components/sl/ to your HA config folder and restart.
Happy to hear feedback ![]()