Files
openhab-addons/bundles/org.openhab.binding.publictransportswitzerland
Andrew Fiddian-GreenandGitHub a5a74fd085 [ci build] Apply spotless to fix poms (#21115)
* fix poms
* change version on itests

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2026-07-06 21:54:17 +02:00
..
2026-01-02 10:51:48 +01:00

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.

For example, here is a station board in HABPanel. Download the HABPanel Departure Board example.

Departure board in HABPanel

Supported Things

Stationboard

Upcoming departures for a single station (as displayed on a station departure board).

Channels

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

UI-based Configuration

station is the station name for which to display departures. The name must match the Swiss Federal Railways (SBB) naming. See 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.