Trafikverket Train
Retrieve train departure information from Trafikverket.
Use cases
- Retrieve the next departure between two stations.
- Retrieve information for specific departure time between two stations.
- Set up an alert or perform actions if your train is delayed or canceled.
Retrieved data
- Next departure for the specific train line.
- Canceled status.
- Delayed time.
- Planned time if no delays occur.
- Estimated time of arrival if delays occur.
- Actual time - when it did arrive.
- Other information / additional texts.
- Deviations.
The next departure is calculated from actual, estimated, and planned to provide the most accurate information about departure.
Prerequisites
Please click here and register to obtain the API key.
Configuration
To add the Trafikverket Train integration to your Home Assistant instance, use this My button:
If the above My button doesn’t work, you can also perform the following steps manually:
-
Browse to your Home Assistant instance.
-
In the bottom right corner, select the Add Integration button.
-
From the list, select Trafikverket Train.
-
Follow the instructions on screen to complete the setup.
Train station names
Click here to see examples of train station names.