Swiss Public Transport

The swiss_public_transport sensor will give you the next three departure times from a given location to another one in Switzerland.

The Swiss public transport API only allows 1000 requests per 24 hours.

The Stationboard website can help to determine the exact name of the start and the end station.

Then add the data to your configuration.yaml file as shown in the example:

# Example configuration.yaml entry
  - platform: swiss_public_transport
    from: STATION_ID
    to: STATION_ID

Configuration Variables



The ID of the station of the start station.



The ID of the station of the end station.



The name of the sensor.

Default value:

Next Departure

The public timetables are coming from Swiss public transport.