OASA Telematics


The oasa_telematics integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] will provide you with bus and trolley arrival times for Greek public transport for Athens, using real-time data from OASA Telematics.

Configuration

Add the integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] to your configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI.[Learn more] file. After changing the configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI.[Learn more] file, restart Home Assistant to apply the changes. To view the changes, go to Settings > Devices & services > Entities.

# Example configuration.yaml entry
sensor:
  - platform: oasa_telematics
    route_id: YOUR_ROUTE_ID
    stop_id: "YOUR_STOP_ID"

The route_id can be obtained by looking up the “LineCode” of the route you want at this link:

http://telematics.oasa.gr/api/?act=webGetLines

Then getting the “RouteCode” from this link:

http://telematics.oasa.gr/api/?act=webGetRoutes&p1=LINE_CODE (Replace “LINE_CODE” with the “LineCode” you copied from the first link) find the route you need and copy the RouteCode field.

Next, get the stop_id from this link:

http://telematics.oasa.gr/api/?act=webGetStops&p1=ROUTE_CODE (Replace “ROUTE_CODE” with the “RouteCode” you got from the previous link) find the stop you need and copy the StopID field. The route must pass from this stop in order for the sensor to work.

Configuration Variables

route_id integer Required

The id of the public transport route.

stop_id string Required

The id of the public transport stop.

name string (Optional, default: OASA Telematics)

A friendly name for this sensor.

Examples

A more extensive example on how to use this sensor:

# Example configuration.yaml entry
sensor:
  - platform: oasa_telematics
    route_id: 1965
    stop_id: "090006"