Skip to content

Releases

Swiss Transport 1.17.1

Choose a tag to compare

@prusuino prusuino released this 23 Nov 20:42
  • Fixed: a delay or disruption that was there after an outage was not reported. While the timetable cannot be read a board is unavailable, and Home Assistant ignores every change out of "unavailable". When the board came back with a delayed next departure or with a disruption message, Departure delayed and Disruption reported stayed silent. Both triggers now compare with the board before the outage: a delay or disruption that is new fires, one that was already there does not fire a second time.

Swiss Transport 1.17.0

Choose a tag to compare

@prusuino prusuino released this 23 Nov 09:04
  • Night and rush-hour lines in the choice of lines and directions. The Configure dialog listed only what leaves from the stop in the next 60 departures, so a night line or a rush-hour line could be ticked only while it ran, and was missing from a filtered board the rest of the time. The dialog now also looks ahead: at the next working-day morning and evening peak and at the next night to Saturday. That is three more requests each time the dialog is opened, none in normal operation.
  • The board remembers what it has seen. Each station board keeps every line and direction the real-time source has named at its stop, and the dialog offers those as well, which catches what the look ahead misses (a line that runs only on Sundays, a diversion). The list is kept across restarts and deleted with the station.

Both reported and suggested by @benchjito (#7).

Swiss Transport 1.16.2

Choose a tag to compare

@prusuino prusuino released this 22 Nov 22:58
  • The last row of a board gets its real-time data too. The real-time source sometimes lists a journey the timetable board does not, so the same number of results ended a row earlier than the board, and the last departure had no second-accurate delay and no direction. Five more results are now asked for. The number of requests is unchanged.

Swiss Transport 1.16.1

Choose a tag to compare

@prusuino prusuino released this 22 Nov 22:44
  • Real-time data now reaches every tram and bus departure. The real-time source gives the scheduled time of many tram and bus journeys to the second (07:42:24), the timetable board to the minute. The two were matched on the exact time, so such a departure found no match and got no second-accurate delay, no cancellation or platform change from the real-time source, and no direction; at one Zürich stop this was 28 of 60 departures. They are now matched on the minute. The delay is measured against the real-time source's own scheduled time, so a tram due at :54 and on time does not read as a minute late.
  • The direction filter of 1.16.0 places more departures for the same reason: fewer rows of a ticked line stay on the board with an unknown direction.

Swiss Transport 1.16.0

Choose a tag to compare

@prusuino prusuino released this 22 Nov 22:32
  • A board for one direction only. At a tram or bus stop the two directions leave from the two sides of the street; a station board can now be limited to the lines and directions you take. With a real-time token the Configure dialog of a station lists what leaves from the stop (6 → Bahnhofplatz/HB, 6 → Zoo), you tick yours, and the board, the sensor and the cards show only those. The direction comes from the real-time source for every journey, so a tram that turns short at another destination stays on the board. At large stops the entry also names the Haltekante the direction leaves from. Needs a token; without one the board shows the whole stop as before. Suggested by @benchjito (#7).
  • New attributes. With a token, each departure carries direction (H outward, R return) and direction_id (6|H); the board sensor has direction_filter, the list the board is limited to (empty for the whole stop).

Swiss Transport 1.15.1

Choose a tag to compare

@prusuino prusuino released this 22 Nov 11:33
  • The lists are no longer written to the database. The attributes departures, alerts and connections change with nearly every refresh, and the recorder stored a full copy each time — for a busy station that is a few megabytes a day that nobody reads. They are now left out of the recorder. Nothing changes for cards, templates, triggers, conditions and actions: they read the live state, which still carries the lists. The state itself (time of the next departure) and the small attributes are recorded as before. Reported by @izacus (#6).

Swiss Transport 1.15.0

Choose a tag to compare

@prusuino prusuino released this 22 Nov 09:04

transport.opendata.ch was rebuilt in October 2026: it no longer passes requests on to search.ch but answers from its own copy of the national timetable and real-time feed of opentransportdata.swiss. The integration works with it unchanged; this version uses what the new service adds and drops what only the old one needed.

  • Cancelled journeys without a token. A journey that does not run, or passes the stop without calling, stays on the departure board, struck through and marked, also when you browse the timetable for another time. Until now it silently disappeared from the board unless the optional real-time token was set. Every row of departures now carries cancelled (true or false).
  • Occupancy without a token. Trains carry the expected occupancy (occupancy, 1 low to 3 high, the fuller of the two classes), and the cards show the occupancy column for them.
  • Occupancy from the real-time token is read. OJP 2.0 writes the occupancy as SIRI elements, which the integration did not find; boards with a token showed no occupancy.
  • The second request for a board that seemed to start an hour late is gone. It worked around a fault of the old service on the day of the clock change (version 1.4.1). With the new service it only cost a second request whenever the next departure was more than 45 minutes away.
  • Attribution names the source as it is now: Data: transport.opendata.ch (opentransportdata.swiss); the device manufacturer reads transport.opendata.ch.
  • Texts no longer speak of a daily quota. The service has no fixed limit per client any more and throttles one that asks too often; the pause of 30 minutes after an HTTP 429 stays.
  • A platform change, disruption messages and delays to the second still need the optional real-time token.

Swiss Transport 1.14.0

Choose a tag to compare

@prusuino prusuino released this 20 Nov 21:56
  • Entity names follow the Home Assistant convention (has_entity_name): an entity carries its own short name and Home Assistant puts the device name in front. Current Home Assistant versions already showed the names that way, so nothing changes there; the entity ids stay as they are. On an older Home Assistant the device name now appears in front of the entity name, and a name you gave an entity yourself is kept.
  • Tests. The tests now cover more than 95 % of the code, and the test workflow fails below that. Nothing changes in how the integration works.
  • Quality scale: Silver. With the two points above the integration meets the Silver rules.

Swiss Transport 1.13.0

Choose a tag to compare

@prusuino prusuino released this 19 Nov 22:11
  • A rejected real-time token asks for a new one. When opentransportdata.swiss no longer accepts the token (HTTP 401/403), Home Assistant shows a reauthentication for the integration. Enter the new token once and every station board uses it; an empty field removes the token. The boards keep running without real-time data in the meantime, as before. Until now the rejection was only visible in the log and in the Configure dialog.
  • PARALLEL_UPDATES declared on the sensor, select and datetime platforms. No change in behaviour.
  • The Home Assistant Marketplace lists the integration under Vehicles & transport → Public transport. The repository is marked as made for Switzerland.

Swiss Transport 1.12.0

Choose a tag to compare

@prusuino prusuino released this 12 Nov 17:33
  • A compact board from the connection card, Bern S-Bahn colours and a choice of line names, contributed by @sbaerlocher (#5) — the five entries that follow.
  • Option line_label names train lines S (category only, the default and the label so far), S9 (category and number) or 9. It applies to the sensors and to the connection legs, so cards and templates agree; bus and tram keep showing the number. Set it under Configure.
  • Line colours for RBS and BLS trains. The Bern S-Bahn lines (RBS S7 to S9, BLS S1 to S6 and variants) get their line colour from line-colors.json (Traewelling/line-colors, scripts/generate_line_colors.py keeps those two train networks). The cards look trains up as category plus number ("S9"), buses and trams by number as before, and white text on a light colour turns black.
  • Connection card options for a compact board. from keeps connections that board at a stop whose name starts with the value (the planner also offers a walk to a neighbouring stop and a ride from there), hide_departed drops connections that already left, group_by_mode adds a heading per transport mode, show_arrival: false hides arrival and duration, and stale_threshold (seconds) shows a badge when the sensor's first connection left that long ago. All are off by default and available in the visual editor; rows now applies after from and hide_departed. node tests/frontend/connection-card.test.mjs covers them.
  • Connections carry departure_prognosis, the forecast departure time (null when the source has none), next to delay.
  • Fetch timeout 45 s instead of 30 s: /connections answered in up to 36.5 s in measurements and was cut off.
  • Bus and tram legs of a connection carry the line number. legs[].line held the category (B, T) and now holds the number (34), as the departure board always did. A template that reads the line of a leg sees the new value.
  • Timetable browsing names the lines the same way. The cards read the timetable for another time themselves; they now follow the option line_label there as well. Both sensors carry the new attribute line_label for that.