Skip to content

Swiss public transport stationboard for Home Assistant dashboard

License

Notifications You must be signed in to change notification settings

neuhausf/lovelace-swiss-stationboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hacs_badge

swiss-stationboard

Custom lovelace card for Home Assistant Lovelace UI. Swiss public transport stationboard. Shows connections from one or multiple stations.

Stationboard "Schüpfen"

Information

Warning: Requires https://github.com/neuhausf/swiss-public-transport-mod to be installed first. Note that the current implementation is based on https://pypi.org/project/python-opendata-transport/ which currently doesn't return delays (property is there, but the underlying API-call to transport.opendata.ch doesn't return anything).

Configuration

Add a new custom card to your Dashboard:

type: custom:swiss-stationboard
name: Abfahrt
hide_title: true
category: B|^ICE$|S
platform_name: Gl.
entity:
  - sensor.schupfen

Card settings

  • departure_offset: an optional number of X minutes (defaults to 0). If greater than zero minutes, it hides all next departures within those minutes. Note that the filtering is on the frontend only - so this could lead to an empty stationboard if the sensor doesn't provide enough journeys (limit setting of the stationboard-sensor)
  • departure_countdown: an optional number of minutes (defaults to 15). All departures within this time window will have a countdown displayed onscreen.
  • show_seconds: if true, will show seconds in addition to minutes within the countdown.
  • entity: which entity (from swiss-public-transport-mod) to use as the data source.
  • hide_title: hides the title if true.
  • category: regular expression to filter by categories (S-train, Bus, ICE, ...). i.e. to include multiple categories use the OR operator: category: B|^ICE$|S
  • show_last_changed: if true, shows the last time that the underlying data changed.
  • minutes_label: the string denoting minutes in the ETA field. Defaults to min or mins depending on how many minutes are left. Note the whitespace before the word — if your chosen string does not have whitespace, the string will be stuck to the number.
  • seconds_label: the string denoting seconds in the ETA field. Defaults to . Note the whitespace before the word — if your chosen string does not have whitespace, the string will be stuck to the number.

Privacy

This integration uses:

About

Swiss public transport stationboard for Home Assistant dashboard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •