OASA Telematics


The oasa_telematics sensor will provide you with bus and trolley arrival times for Greek public transport for Athens, using real-time data from OASA Telematics.

Configuration

Add a sensor to your configuration.yaml file as shown in the example:

# 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

(int)(Required)The id of the public transport route.

stop_id

(string)(Required)The id of the public transport stop.

name

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

Default value: OASA Telematics

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'