Skip to content

Manual setup

Mihail Morosan edited this page Jan 3, 2023 · 1 revision

Alternatively, you can set it up manually in your configuration.yaml, though this is no longer recommended, as getting a station's Naptan ID is not trivial.

Demo configuration:

sensor:
  - platform: london_tfl
    name: London TfL
    stops:
      - line: dlr  # Required
        station: 940GZZDLRVC  # Required
      - line: dlr
        station: 940GZZDLCGT
        platform: Platform 4  # Optional. All platforms by default
        max: 3  # Optional. 3 items by default
        shortenStationNames: True # Optional. Some stations have "Underground Station" appended to it and you can remove it if you set this to true.
Clone this wiki locally