Site updated at 2017-04-24 07:38:00 UTC

This commit is contained in:
Travis CI 2017-04-24 07:38:00 +00:00
parent 4fce8893fb
commit e5000d9263
35 changed files with 79 additions and 80 deletions

View file

@ -66,12 +66,11 @@
</h1>
</header>
<hr class="divider">
<p>The <code class="highlighter-rouge">modem_callerid</code> sensor platform uses an available modem for collecting caller ID information. It requires a Hayes AT compatible modem that supports caller ID detection (via AT+VCID=1).</p>
<p>The <code class="highlighter-rouge">modem_callerid</code> sensor platform uses an available modem for collecting caller ID information. It requires a Hayes AT compatible modem that supports caller ID detection (via AT+VCID=1).</p>
<p>To enable the sensor, add the following lines to your <code class="highlighter-rouge">configuration.yaml</code>:</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">modem_callerid</span>
</code></pre>
</div>
<p>Configuration variables:</p>
@ -81,7 +80,7 @@
</ul>
<p>To find the path of your USB modem, run:</p>
<p><code class="highlighter-rouge">$ ls /dev/ttyACM*</code></p>
<p>If <code class="highlighter-rouge">hass</code> runs with another user (e.g. <em>homeassistant</em> on Hassbian) give access to the stick with:</p>
<p>If Home Assistant (<code class="highlighter-rouge">hass</code>) runs with another user (e.g. <code class="highlighter-rouge">homeassistant</code> on Hassbian) give access to the stick with:</p>
<p><code class="highlighter-rouge">$ sudo usermod -a -G dialout homeassistant</code></p>
<p>Depending on whats plugged into your USB ports, the name found above may change. You can lock in a name, such as <code class="highlighter-rouge">/dev/modem</code>, by following <a href="http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/">these instructions</a>.</p>
<p>When the sensor detects a new call, its state changes to ring for each ring and callerid when caller id information is received. It returns to idle once ringing stops. The state event includes an attribute payload that includes the time of the call, name and number.</p>
@ -91,7 +90,7 @@
<span class="s">trigger</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">state</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">sensor.modem_callerid</span>
<span class="s">state</span><span class="pi">:</span> <span class="s2">"</span><span class="s">callerid"</span>
<span class="s">state</span><span class="pi">:</span> <span class="s2">"</span><span class="s">callerid"</span>
<span class="s">action</span><span class="pi">:</span>
<span class="s">service</span><span class="pi">:</span> <span class="s">notify.notify</span>
<span class="s">data</span><span class="pi">:</span>