From 21d0332d9d29ae00eb2019c4ac48e7c35f30b054 Mon Sep 17 00:00:00 2001 From: Robbie Trencheny Date: Thu, 24 Mar 2016 23:34:25 -0700 Subject: [PATCH] Add Uber component documentation --- source/_components/sensor.uber.markdown | 43 ++++++++++++++++++++++++ source/images/supported_brands/uber.png | Bin 0 -> 5778 bytes 2 files changed, 43 insertions(+) create mode 100644 source/_components/sensor.uber.markdown create mode 100755 source/images/supported_brands/uber.png diff --git a/source/_components/sensor.uber.markdown b/source/_components/sensor.uber.markdown new file mode 100644 index 00000000000..62e735c80b8 --- /dev/null +++ b/source/_components/sensor.uber.markdown @@ -0,0 +1,43 @@ +--- +layout: page +title: "Uber" +description: "How to integrate Uber in Home Assistant" +date: 2016-03-24 23:04 +sidebar: true +comments: false +sharing: true +footer: true +logo: uber.png +ha_category: Sensor +ha_iot_class: "Local Polling" +--- + + +The `uber` sensor will give you time and price estimates for all available [Uber](https://uber.com) products at the given `start_latitude` and `start_longitude`.The `ATTRIBUTES` are used to provide extra information about products, such as estimated trip duration, distance and vehicle capacity. By default, 2 sensors will be created for each product at the given `start` location, one for pickup time and one for current price. The sensor is powered by the official Uber [API](https://developer.uber.com/). + + +You must create an application [here](https://developer.uber.com/dashboard/create) to obtain a `server_token`. + +To enable this sensor, add the following lines to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +sensor: + platform: uber + start_latitude: 37.8116380 + start_longitude: -122.2648050 + end_latitude: 37.7768520 + end_longitude: -122.4155500 + server_token: 'BeAPPTDsWZSHLf7fd9OWjZkIezweRw18Q8NltY27' + product_ids: + - '04a497f5-380d-47f2-bf1b-ad4cfdcb51f2' +``` + +Configuration variables: + +- **start_latitude** (*Required*): The starting latitude for a trip. +- **start_longitude** (*Required*): The starting longitude for a trip. +- **end_latitude** (*Optional*): The ending latitude for a trip. While `end_latitude` is optional, it is strongly recommended to provide an `end_latitude`/`end_longitude` when possible as you will get more accurate price and time estimates. +- **end_longitude** (*Optional*): The ending longitude for a trip. While `end_longitude` is optional, it is strongly recommended to provide an `end_latitude`/`end_longitude` when possible as you will get more accurate price and time estimates. +- **server_token** (*Required*): A server token obtained from [developer.uber.com](https://developer.uber.com) after [creating an app](https://developer.uber.com/dashboard/create). +- **product_ids** (*Options*): A list of Uber product UUIDs. If provided, sensors will only be created for the given product IDs. Please note that product IDs are region and some times even more specific geographies based. The easiest way to find a UUID is to click on a sensor in the Home Assistant frontend and look for "Product ID" in the attributes. diff --git a/source/images/supported_brands/uber.png b/source/images/supported_brands/uber.png new file mode 100755 index 0000000000000000000000000000000000000000..7a201cd47d5a6f5c17e12a2bffa61b182ad95eef GIT binary patch literal 5778 zcmeHLXH-*Ln?4Y#ROt$#h@b)iks=)e2m&I#1&|Jrjx;HOfGB!tDjfuZNHg>f0s)oY zf(k^6;fnMoU8&!}nOXO{_s4v5*P1oopZRh2S?k^VecpPWz0ZE4e_NC8%=t3_0MKdO zR5t_w2m$~|0;woKNi&0-4fvw=zG>kL0PIYs4~a|82XGZ|&hLh~pOKfdU!dJRCjjo~ zW$(nR@)g8Xk)Zhgcf-> zYnribBWdE93qtq3$y0#a~ZSK#${9SW@ar771 zpAmmK^hW@Hp8P*H_ZMIOWitN~-5*i>y9$fp7E7{C)5sgv3U0jBwV189<5`OsFg~=| z$tg%J>Kg_H*G9sJXQV?@;_oYp;8P}61fhGJC%6Gk^YG)oPi$+bgWYk#E>4eoFKif$ z3w(GCCzO}94l=$uyhzB42rJ0R)0_Bla@2V;c0@$&Po`!lN3!W&K3nx8Oy!4>KtLJM z!V{L)?|ZJfaq)6BpI zlrA=!M#otrFfb|MV_Z|%V7pr`Q4Jp%CTkp-MOmXd8urfY(@)XpvOdWl4JH{pbv-nE z*d3+$-N}w!r=54l>fWg2gn=+GQ9pxAnRb9Rhj%O;GDfzy_E>%d^(@tOb6xrz`z>do z;ovc7>-CKfU1rV117TFX*USa&f+vqmohNKYg5@ zgeT@MqvT!^GpVhp5Gq97B+N!cSNIm~n7M3CPkh7T_iI;Iu|Yn3v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