openhab-docs/_addons_bindings/publictransportswitzerland
openHAB Build Server a7045e868b Updated external content (Jenkins build 2765) 2025-08-18 19:21:10 +00:00
..
doc Updated external content (Jenkins build 701) 2021-12-28 05:01:57 +00:00
readme.md Updated external content (Jenkins build 2765) 2025-08-18 19:21:10 +00:00

readme.md

id label title type description logo install
publictransportswitzerland Public Transport Switzerland Public Transport Switzerland - Bindings binding Connects to the 'Swiss public transport API' to provide real-time public transport information. See the [Swiss Public Transport API Documentation website](https://transport.opendata.ch/). images/addons/publictransportswitzerland.svg auto

{% include base.html %}

Public Transport Switzerland Binding

Connects to the "Swiss public transport API" to provide real-time public transport information. See the Swiss Public Transport API Documentation website.

For example, here is a station board in HABPanel. (Download the HABPanel Departure Board Example from GitHub)

Departure board in HABPanel

Supported Things

Stationboard

Upcoming departures for a single station. This is what you would usually see displayed at the train station.

Channels

channel type description
departures#n String A dynamic channel for each upcoming departure
tsv (advanced) String A tsv which contains the fields:
identifier, departureTime, destination, track, delay

UI based Configuration

station is the station name for which to display departures. The name has to be one that is used by the Swiss Federal Railways. Please consult the SBB official website.

Textual configuration

Thing
Thing publictransportswitzerland:stationboard:zurich [ station="Zürich HB" ]
Items
String Next_Departure             "Next Departure"             { channel="publictransportswitzerland:stationboard:zurich:departures#1" }
String Upcoming_Departures_TSV    "Upcoming_Departures_TSV"    { channel="publictransportswitzerland:stationboard:zurich:tsv" }

Discovery

This binding does not support auto-discovery.