This is an Home Assistant integration providing sensors for Stockholms Lokaltrafik (SL) primarily, though it does support Resrobot and journeys in the whole country. This integration provides intelligent sensors for departures, deviations, vehicle locations, traffic status and route monitoring using the SL official APIs and departures, arrivals and route monitoring using Resrobot. It also provides services for Location ID lookup and Trip Planing. You will still need to get your own API keys from SL / Trafiklab (see docs for HASL) for some of the API endpoints.
Full and detailed documentation is available.
- If you haven't already, you must have HACS installed.
- Go into HACS and search for HASL under the Integrations headline. You will need to restart Home Assistant to finish the process.
- Once that is done reload your GUI (caching issues preventing the integration to be shown).
- Go to Integrations and add HASL integrations.
- Get API keys at TrafikLab. Read details in documentation
- Location IDs can be found using services
- Perhaps add some GUI/Lovelace components as examples shows in the documentation
- Enjoy and buy me a coffee if you like my work
The sensors should be able to be used multiple cards in hasl-cards (departure-card, traffic-status-card) . There are several cards for different sensors and presentation options for each sensor type. More examples can be found in the documentation.