Site updated at 2017-07-27 18:30:49 UTC
This commit is contained in:
parent
c304b1f39b
commit
f885bc11ce
26 changed files with 41 additions and 41 deletions
|
@ -87,13 +87,13 @@
|
|||
<li><strong>host</strong> (<em>Optional</em>): The IP or hostname of the flic service server. Defaults to <code class="highlighter-rouge">localhost</code>.</li>
|
||||
<li><strong>port</strong> (<em>Optional</em>): The port of the flic service. Defaults to <code class="highlighter-rouge">5551</code>.</li>
|
||||
<li><strong>discovery</strong> (<em>Optional</em>): If <code class="highlighter-rouge">true</code> then the component is configured to constantly scan for new buttons. Defaults to <code class="highlighter-rouge">true</code>.</li>
|
||||
<li><strong>ignored_click_types</strong>: List of click types whose occurrence should not trigger and <code class="highlighter-rouge">flic_click</code> event.</li>
|
||||
<li><strong>ignored_click_types</strong>: List of click types whose occurrence should not trigger a <code class="highlighter-rouge">flic_click</code> event. For example <code class="highlighter-rouge">single</code>, <code class="highlighter-rouge">double</code>.</li>
|
||||
<li><strong>timeout</strong> (<em>Optional</em>): Maximum time in seconds an event can be queued locally on a button before discarding the event. Defaults to 3.</li>
|
||||
</ul>
|
||||
<h4><a class="title-link" name="discovery" href="#discovery"></a> Discovery</h4>
|
||||
<p>If discovery is enabled, you can add a new button by pressing it for at least 7 seconds. The button will be paired with the flic service and added to Home Assistant. Otherwise, you have to manually pair it with the flic service. The Home Assistant platform will not scan for new buttons and will only connect to buttons already paired.</p>
|
||||
<h4><a class="title-link" name="timeout" href="#timeout"></a> Timeout</h4>
|
||||
<p>+When the flic button is triggered while disconnected from flic service, it will queue all events and try to connect and transmit them as soon as possible. The timeout variable can be used to stop events from triggering if too much time passed between the action and the notification in Home Assistant.</p>
|
||||
<p>When the flic button is triggered while disconnected from flic service, it will queue all events and try to connect and transmit them as soon as possible. The timeout variable can be used to stop events from triggering if too much time passed between the action and the notification in Home Assistant.</p>
|
||||
<h4><a class="title-link" name="events" href="#events"></a> Events</h4>
|
||||
<p>The flic component fires <code class="highlighter-rouge">flic_click</code> events on the bus. You can capture the events and respond to them in automation scripts like this:</p>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml automation entry</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue