The nextbus sensor will give you the next departure time and associated data from your public transit station/stop. The data comes from NextBus, which provides real time transit data for a number of transit authorities.

It is possible to get the tag information from the NextBus website.

  1. Visit
  2. Use the drop downs to select the transit system, route, direction, and stop
  3. Extract the tags from the URL. It is constructed with the following pattern:!/<agency>/<route>/<direction>/<stop>

If tags are incorrect, valid ones will be displayed in the logs as a convenience. Note that the <direction> tag is not used in this integration.

# Example configuration.yaml entry
  - platform: nextbus
    agency: AGENCY_TAG
    route: ROUTE_TAG
    stop: STOP_TAG

Configuration Variables

agency string Required

The agency tag from NextBus.

route string Required

The route tag from NextBus.

stop string Required

The stop tag from NextBus.

name string (Optional, default: - )

Name to use in the frontend.