Irish Rail Transport
The irish_rail_transport
sensor will give you the time until the next two departures (within 90 minutes) from an Irish Rail station using the RTPI information.
A station name is the full station name as specified on the Irish Rail search site, for example, Tara Street
or Dublin Connolly
.
To activate the sensor add the data to your configuration.yaml
The configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file as shown in the example:
After changing the configuration.yaml
The configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file, restart Home Assistant to apply the changes. The integration is now shown on the integrations page under Settings > Devices & services. Its entities are listed on the integration card itself and on the Entities tab.
# Example configuration.yaml entry
sensor:
- platform: irish_rail_transport
station: "Tara Street"
name: "To Greystones"
Using the stops_at
option will cause an extra request per train found. Therefore, if you are looking at a busy station, it is recommended that you also use at least one other filter. For example:
# Example full configuration.yaml entry
sensor:
- platform: irish_rail_transport
station: "Tara Street"
direction: Southbound
destination: Greystones
stops_at: "Dun Laoghaire"
name: "To Greystones"
The above example will show the next 2 Southbound
trains that leave Tara Street
station, going to Greystones
via Dun Laoghaire
: