home-assistant.io/source/_components/sensor.transport_nsw.markdown
Dav0815 a3b1ccc8b4 Documentation for new Transport NSW sensor (#6529)
* Documentation for new Transport NSW sensor

* Update sensor.transport_nsw.markdown

* ✏️ Tweak

* 🔥 Removes duplicate header

* Fixes of variable names due to code change

* Logo update

* ⬆️ ha_release
2018-10-11 21:24:10 +02:00

1.6 KiB
Raw Blame History

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_iot_class, ha_release
layout title description date sidebar comments sharing footer logo ha_category ha_iot_class ha_release
page Transport NSW Instructions on how to integrate timetable data for Transport NSW (Australia) within Home Assistant. 2018-10-05 00:00 true false true true transport_nsw.png Transport Cloud Polling 0.81

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 dont 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
sensor:
  - platform: transport_nsw
    stop_id: '200024'
    api_key: 'YOUR API KEY'

{% configuration %} api_key: description: Your API key for Open Data Transport NSW required: true type: string stop_id: description: The ID of the stop to get the information for required: true type: string route: description: Only show a single bus route at the stop. This is the same as the bus number, e.g., 83 required: false type: string name: description: A friendly name for this sensor. required: false type: string {% endconfiguration %}

The public information is coming from Transport NSW.