From 81f72fc898502da9a1d1c53c072eb684b24d9736 Mon Sep 17 00:00:00 2001
From: panosmz
Date: Sat, 6 Apr 2019 22:21:57 +0300
Subject: [PATCH] Add documentation for OASA Telematics greek public transport
sensor c (#8978)
* add telematics sensor documentation
* Update source/_components/sensor.oasa_telematics.markdown
Co-Authored-By: panosmz
* Update source/_components/sensor.oasa_telematics.markdown
Co-Authored-By: panosmz
* fix route_id type
* rename file & update release no
---
source/_components/oasa_telematics.markdown | 72 ++++++++++++++++++++
source/images/supported_brands/oasa.png | Bin 0 -> 4854 bytes
2 files changed, 72 insertions(+)
create mode 100644 source/_components/oasa_telematics.markdown
create mode 100644 source/images/supported_brands/oasa.png
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 0000000000000000000000000000000000000000..8780f104c76726d4e5d75f3156d29d5b4b7cfa31
GIT binary patch
literal 4854
zcmeHLi8mBp-yd5uwlPHZj4@J*nX#0akYTcAgzU>O7?~y`j3rBD-wIi>=SOxSvP)|0
zOOh>nwvxSM3-RiCpYyzb#QWTHx9|6U&*yW#pL5SW_ufbYeJxHlAvOR2z^S8+GddYN
z|27cQNuL%*cnJV7+#nm9)6DUD7zbAuS)!w>JxSKb<=)9U0HA!$=N{34LZU(KNw>*V
z71%~&GYm?0RDqc(;*t1!8YE}3wy!(smao3CgD=Ga?FhT3%BJjtIRS7X(TGqVm%CIC
zjE@TJU$~f)`Cm5z2K`qEjiLg>{w0K(;|-u1uI?nLqU>cE2b8=L^a@%QrHEFNQ@8|`
zL!vGtkZ1%-K?aG!Aki2k3i|H?Q)PoHyE{5zjBuL&COffIV9qq!Jq!Zj?d>h=Eidcp
zej9;8qtOVY970Y`<|IPK<35!}^pT-@Nc@HPUkn_{!@-?=k4AQ-LjPhC?Oi=-Dli!0
zFA3t`EGOw9{*&K{@gIdq)Dv0UPx6QAlwnS^W4?{WV*!AQSoT9A%Zbh4VWg!FDC-kh
z0st7-4fKq!|5aG=pa0hXD)9e7fnCGVn3E0vn`Wec3$V+?d&mf4IQkQLz{UKF=O@dl
z@_iuN9>;GmJL~Eh=+|WVHSVbOh2`z$#{y!4jgvxMTirXH8`FAxx#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