Site updated at 2016-07-16 19:26:29 UTC

This commit is contained in:
Travis CI 2016-07-16 19:26:29 +00:00
parent 4d0733b026
commit 81e866bd66
281 changed files with 5053 additions and 1179 deletions

View file

@ -124,6 +124,41 @@
</li>
</ul>
<p>###Dynamic Configuration<br />
Tracking can be setup to track entities of type device_tracker, zone, and sensor. If an entity is placed in the origin or destination then every 5 minutes when the component updates it will use the latest location of that entity.</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="comment"># Example entry for configuration.yaml</span>
<span class="key">sensor</span>:
<span class="comment"># Tracking entity to entity</span>
- <span class="string"><span class="content">platform: google_travel_time</span></span>
<span class="key">name</span>: <span class="string"><span class="content">Phone To Home</span></span>
<span class="key">api_key</span>: <span class="string"><span class="content">XXXX_XXXXX_XXXXX</span></span>
<span class="key">origin</span>: <span class="string"><span class="content">device_tracker.mobile_phone</span></span>
<span class="key">destination</span>: <span class="string"><span class="content">zone.home</span></span>
<span class="comment"># Tracking entity to zone friendly name</span>
- <span class="string"><span class="content">platform: google_travel_time</span></span>
<span class="key">name</span>: <span class="string"><span class="content">Home To Eddie's House</span></span>
<span class="key">api_key</span>: <span class="string"><span class="content">XXXX_XXXXX_XXXXX</span></span>
<span class="key">origin</span>: <span class="string"><span class="content">zone.home</span></span>
<span class="key">destination</span>: <span class="string"><span class="content">Eddies House</span></span> <span class="comment"># Friendly name of a zone</span>
</pre></div>
</div>
</div>
<p>####Entity Tracking<br />
- <strong>device_tracker</strong><br />
- If state is a zone then the zone location will be used<br />
- If state is not a zone it will look for the longitude and latitude attributes<br />
- <strong>zone</strong><br />
- Uses the longitude and latitude attributes<br />
- Can also be referenced by just the zones friendly name found in the attributes.<br />
- <strong>sensor</strong><br />
- If state is a zone or zone friendly name then will use the zone location<br />
- All other states will be passed directly into the google API<br />
- This includes all valid locations listed in the <em>Configuration Variables</em></p>
</article>