Site updated at 2015-03-24 04:56:14 UTC

This commit is contained in:
Paulus Schoutsen 2015-03-23 21:56:14 -07:00
parent d130c801b2
commit e38d28fad9
82 changed files with 4425 additions and 164 deletions

View file

@ -50,7 +50,15 @@
<input type="checkbox" id="toggle">
<label for="toggle" class="toggle" data-open="Main Menu" data-close="Close Menu"></label>
<ul class="menu pull-right">
<li><a href="/getting-started/">Getting started</a></li>
<li>
<a href="/getting-started/">Getting started</a>
<ul>
<li><a href='/getting-started/'>Installing Home Assistant</a></li>
<li><a href='/getting-started/configuration.html'>Initial configuration</a></li>
<li><a href='/components/'>Component overview</a></li>
<li><a href='/getting-started/android.html'>Setting up Android</a></li>
</ul>
</li>
<li>
<a href="/developers/">Developers</a>
<ul>
@ -95,7 +103,9 @@
<hr class="divider">
<p>Home Assistant can get information from your wireless router to track which devices are connected. There are three different types of supported wireless routers: tomato, netgear and luci (OpenWRT). To get started add the following lines to your <code>configuration.yaml</code> (example for Netgear):</p>
<p>Home Assistant can get information from your wireless router to track which devices are connected. There are three different types of supported wireless routers: <a href="/components/device_tracker.tomato.html">tomato</a>, <a href="/components/device_tracker.netgear.html">netgear</a> and <a href="/components/device_tracker.luci.html">luci (OpenWRT)</a>. You can also decide to directly scan the network for devices by using the <a href="/components/device_tracker.nmap_scanner.html">nmap scanner</a>.</p>
<p>To get started add the following lines to your <code>configuration.yaml</code> (example for Netgear):</p>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
@ -109,32 +119,8 @@
</span><span class='line'> password: MY_PASSWORD</span></code></pre></td></tr></table></div></figure>
<p class='note' data-title='on Tomato'>
Tomato requires an extra config variable called `http_id`. The value can be obtained by logging in to the Tomato admin interface and search for `http_id` in the page source code.
</p>
<p class='note' data-title='on Luci'>
Before the Luci scanner can be used you have to install the luci RPC package on OpenWRT: <code>opkg install luci-mod-rpc</code>.
</p>
<p>Once tracking, the <code>device_tracker</code> component will maintain a file in your config dir called <code>known_devices.csv</code>. Edit this file to adjust which devices have to be tracked. Here you can also setup a url for each device to be used as the entity picture.</p>
<p>As an alternative to the router-based device tracking, it is possible to directly scan the network for devices by using nmap. The IP addresses to scan can be specified in any format that nmap understands, including the network-prefix notation (<code>192.168.1.1/24</code>) and the range notation (<code>192.168.1.1-255</code>).</p>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>device_tracker:
</span><span class='line'> platform: nmap_tracker
</span><span class='line'> hosts: 192.168.1.1/24</span></code></pre></td></tr></table></div></figure>
</article>