Site updated at 2016-08-22 08:21:42 UTC
This commit is contained in:
parent
f9d65cbe57
commit
4acb07bf8e
559 changed files with 18878 additions and 21688 deletions
|
@ -89,36 +89,34 @@
|
|||
<hr class="divider">
|
||||
|
||||
|
||||
<p>The <code>asuswrt</code> platform offers presence detection by looking at connected devices to a <a href="http://event.asus.com/2013/nw/ASUSWRT/">ASUSWRT</a> based router.</p>
|
||||
<p>The <code class="highlighter-rouge">asuswrt</code> platform offers presence detection by looking at connected devices to a <a href="http://event.asus.com/2013/nw/ASUSWRT/">ASUSWRT</a> based router.</p>
|
||||
|
||||
<p>To use an ASUSWRT router in your installation, add the following to your <code>configuration.yaml</code> file:</p>
|
||||
<p>To use an ASUSWRT router in your installation, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
<span class="key">device_tracker</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">asuswrt</span></span>
|
||||
<span class="key">host</span>: <span class="string"><span class="content">YOUR_ROUTER_IP</span></span>
|
||||
<span class="key">protocol</span>: <span class="string"><span class="content">telnet</span></span>
|
||||
<span class="key">mode</span>: <span class="string"><span class="content">router</span></span>
|
||||
<span class="key">username</span>: <span class="string"><span class="content">YOUR_ADMIN_USERNAME</span></span>
|
||||
<span class="key">password</span>: <span class="string"><span class="content">YOUR_ADMIN_PASSWORD</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||||
<span class="s">device_tracker</span><span class="pi">:</span>
|
||||
<span class="s">platform</span><span class="pi">:</span> <span class="s">asuswrt</span>
|
||||
<span class="s">host</span><span class="pi">:</span> <span class="s">YOUR_ROUTER_IP</span>
|
||||
<span class="s">protocol</span><span class="pi">:</span> <span class="s">telnet</span>
|
||||
<span class="s">mode</span><span class="pi">:</span> <span class="s">router</span>
|
||||
<span class="s">username</span><span class="pi">:</span> <span class="s">YOUR_ADMIN_USERNAME</span>
|
||||
<span class="s">password</span><span class="pi">:</span> <span class="s">YOUR_ADMIN_PASSWORD</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>Configuration variables:</p>
|
||||
|
||||
<ul>
|
||||
<li><strong>host</strong> (<em>Required</em>): The IP address of your router, eg. 192.168.1.1.</li>
|
||||
<li><strong>protocol</strong> (<em>Optional</em>): The protocol (<code>ssh</code> or <code>telnet</code>) to use. Defaults to <code>ssh</code>.</li>
|
||||
<li><strong>mode</strong> (<em>Optional</em>): The operating mode of the router (<code>router</code> or <code>ap</code>). Defaults to <code>router</code>.</li>
|
||||
<li><strong>protocol</strong> (<em>Optional</em>): The protocol (<code class="highlighter-rouge">ssh</code> or <code class="highlighter-rouge">telnet</code>) to use. Defaults to <code class="highlighter-rouge">ssh</code>.</li>
|
||||
<li><strong>mode</strong> (<em>Optional</em>): The operating mode of the router (<code class="highlighter-rouge">router</code> or <code class="highlighter-rouge">ap</code>). Defaults to <code class="highlighter-rouge">router</code>.</li>
|
||||
<li><strong>username</strong> (<em>Required</em>: The username of an user with administrative privileges, usually <em>admin</em>.</li>
|
||||
<li><strong>password</strong> (<em>Optional</em>): The password for your given admin account (use this if no SSH key is given).</li>
|
||||
<li><strong>ssh_key</strong> (<em>Optional</em>): The path to your SSH private key file associated with your given admin account (instead of password).</li>
|
||||
</ul>
|
||||
|
||||
<p class="note warning">
|
||||
You need to enable telnet on your router if you choose to use <code>protocol: telnet</code>.
|
||||
You need to enable telnet on your router if you choose to use <code class="highlighter-rouge">protocol: telnet</code>.
|
||||
</p>
|
||||
|
||||
<p>See the <a href="/components/device_tracker/">device tracker component page</a> for instructions how to configure the people to be tracked.</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue