home-assistant.io/source/_components/sensor.swiss_public_transport.markdown
Alok Saboo 1aca7b08cf Misc fixes: e.g. -> e.g., and proper case for Home Assistant (#4942)
* e.g. to e.g., and proper case for Home Assistant

* Instructions how to -> Instructions on how to
2018-03-17 20:20:37 +01:00

1.3 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_iot_class, ha_release
layout title description date sidebar comments sharing footer logo ha_category ha_iot_class ha_release
page Swiss Public Transport Instructions on how to integrate timetable data for traveling in Switzerland within Home Assistant. 2015-06-02 21:45 true false true true train.png Transport Cloud Polling pre 0.7

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
sensor:
  - platform: swiss_public_transport
    from: STATION_ID
    to: STATION_ID

Configuration variables:

  • from (Required): The ID of the station of the start station.
  • to (Required): The ID of the station of the end station.
  • name (Optional): The name of the sensor. Defaults to 'Next Departure'.

The public timetables are coming from Swiss public transport.