Site updated at 2017-07-16 05:06:47 UTC

This commit is contained in:
Travis CI 2017-07-16 05:06:47 +00:00
parent 477f499ed2
commit 3738c7d54a
524 changed files with 8458 additions and 2098 deletions

View file

@ -74,22 +74,20 @@
</h1>
</header>
<hr class="divider">
<p>The <code class="highlighter-rouge">uber</code> sensor will give you time and price estimates for all available <a href="https://uber.com">Uber</a> products at the given <code class="highlighter-rouge">start_latitude</code> and <code class="highlighter-rouge">start_longitude</code>.The <code class="highlighter-rouge">ATTRIBUTES</code> 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 <code class="highlighter-rouge">start</code> location, one for pickup time and one for current price. The sensor is powered by the official Uber <a href="https://developer.uber.com/">API</a>.</p>
<p>The <code class="highlighter-rouge">uber</code> sensor will give you time and price estimates for all available <a href="https://uber.com">Uber</a> products at the given location. The <code class="highlighter-rouge">ATTRIBUTES</code> 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 <code class="highlighter-rouge">start</code> location, one for pickup time and one for current price. The sensor is powered by the official Uber <a href="https://developer.uber.com/">API</a>.</p>
<p>You must create an application <a href="https://developer.uber.com/dashboard/create">here</a> to obtain a <code class="highlighter-rouge">server_token</code>.</p>
<p>To enable this sensor, add the following lines to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
<span class="s">sensor</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">uber</span>
<span class="s">server_token</span><span class="pi">:</span> <span class="s1">'</span><span class="s">BeAPPTDsWZSHLf7fd9OWjZkIezweRw18Q8NltY27'</span>
<span class="s">start_latitude</span><span class="pi">:</span> <span class="s">37.8116380</span>
<span class="s">start_longitude</span><span class="pi">:</span> <span class="s">-122.2648050</span>
</code></pre>
</div>
<p>Configuration variables:</p>
<ul>
<li><strong>server_token</strong> (<em>Required</em>): A server token obtained from <a href="https://developer.uber.com">developer.uber.com</a> after <a href="https://developer.uber.com/dashboard/create">creating an app</a>.</li>
<li><strong>start_latitude</strong> (<em>Required</em>): The starting latitude for a trip.</li>
<li><strong>start_longitude</strong> (<em>Required</em>): The starting longitude for a trip.</li>
<li><strong>start_latitude</strong> (<em>Optional</em>): The starting latitude for a trip. Defaults to the latitude in your your <code class="highlighter-rouge">configuration.yaml</code> file.</li>
<li><strong>start_longitude</strong> (<em>Optional</em>): The starting longitude for a trip. Defaults to the longitude in your <code class="highlighter-rouge">configuration.yaml</code> file.</li>
<li><strong>end_latitude</strong> (<em>Optional</em>): The ending latitude for a trip. While <code class="highlighter-rouge">end_latitude</code> is optional, it is strongly recommended to provide an <code class="highlighter-rouge">end_latitude</code>/<code class="highlighter-rouge">end_longitude</code> when possible as you will get more accurate price and time estimates.</li>
<li><strong>end_longitude</strong> (<em>Optional</em>): The ending longitude for a trip. While <code class="highlighter-rouge">end_longitude</code> is optional, it is strongly recommended to provide an <code class="highlighter-rouge">end_latitude</code>/<code class="highlighter-rouge">end_longitude</code> when possible as you will get more accurate price and time estimates.</li>
<li><strong>product_ids</strong> (<em>Options</em>): 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.</li>