Transport NSW

The transport_nsw sensor will give you the time until the next departure from a Transport NSW stop (bus, train or ferry).

Get your free API key from Transport NSW.

In order to find the stop id, just go to Google maps and click on the bus/train/ferry stop. It will give you there the stop ID.

You can define a bus line, but if you don’t do it, the sensor will pick up the next stop event from any line servicing this stop.

Then add the data to your configuration.yaml file as shown in the example:

# Example configuration.yaml entry
  - platform: transport_nsw
    stop_id: '200024'
    api_key: 'YOUR API KEY'

Configuration Variables


(string)(Required)Your API key for Open Data Transport NSW


(string)(Required)The ID of the stop to get the information for


(string)(Optional)Only show a single bus route at the stop. This is the same as the bus number, e.g., 83


(string)(Optional)A friendly name for this sensor.

The public information is coming from Transport NSW.