diff --git a/source/_components/oasa_telematics.markdown b/source/_components/oasa_telematics.markdown new file mode 100644 index 00000000000..a00c9d38bd8 --- /dev/null +++ b/source/_components/oasa_telematics.markdown @@ -0,0 +1,72 @@ +--- +layout: page +title: "OASA Telematics" +description: "Instructions on how to integrate bus and trolley arrival data for Greek OASA Telematics within Home Assistant." +date: 2019-03-05 21:52 +sidebar: true +comments: false +sharing: true +footer: true +logo: oasa.png +ha_category: + - Transport + - Sensor +ha_iot_class: Cloud Polling +ha_release: 0.92 +--- + +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](http://telematics.oasa.gr/en/). + +## {% linkable_title Configuration %} + +Add a sensor to your `configuration.yaml` file as shown in the example: + +```yaml +# 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: + + + +Then getting the "RouteCode" from this link: + + +(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: + + +(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 %} +route_id: + description: The id of the public transport route. + required: true + type: int +stop_id: + description: The id of the public transport stop. + required: true + type: string +name: + description: A friendly name for this sensor. + required: false + default: OASA Telematics + type: string +{% endconfiguration %} + +## {% linkable_title Examples %} + +A more extensive example on how to use this sensor: + +```yaml +# Example configuration.yaml entry +sensor: + - platform: oasa_telematics + route_id: 1965 + stop_id: '090006' +``` diff --git a/source/images/supported_brands/oasa.png b/source/images/supported_brands/oasa.png new file mode 100644 index 00000000000..8780f104c76 Binary files /dev/null and b/source/images/supported_brands/oasa.png differ