Site updated at 2016-10-08 18:28:01 UTC
This commit is contained in:
parent
c33649c7ed
commit
85df6d11f5
522 changed files with 7493 additions and 3477 deletions
|
@ -90,10 +90,10 @@
|
|||
|
||||
|
||||
<p class="note warning">
|
||||
This option is only available to built-in components.
|
||||
This option is only available for built-in components.
|
||||
</p>
|
||||
|
||||
<p>Home Assistant has a discovery service running in the background to discover new devices. Whenever a new device is discovered, an <code class="highlighter-rouge">SERVICE_DISCOVERED</code> event will be fired with the found service and the information. The <code class="highlighter-rouge">discovery</code> component has some knowledge about which components handle which type of services and will ensure those are loaded and listening before firing the <code class="highlighter-rouge">SERVICE_DISCOVERED</code> event.</p>
|
||||
<p>Home Assistant has a discovery service running in the background to discover new devices. Whenever a new device is discovered, a <code class="highlighter-rouge">SERVICE_DISCOVERED</code> event will be fired with the found service and the information. The <code class="highlighter-rouge">discovery</code> component has some knowledge about which components handle which type of services and will ensure those are loaded and listening before firing the <code class="highlighter-rouge">SERVICE_DISCOVERED</code> event.</p>
|
||||
|
||||
<h3><a class="title-link" name="add-discovery-instructions" href="#add-discovery-instructions"></a> Add discovery instructions</h3>
|
||||
|
||||
|
@ -103,7 +103,7 @@ This option is only available to built-in components.
|
|||
|
||||
<h3><a class="title-link" name="listening-to-service_discovered-events" href="#listening-to-service_discovered-events"></a> Listening to <code class="highlighter-rouge">SERVICE_DISCOVERED</code> events</h3>
|
||||
|
||||
<p>From your component, you will have to set up the listening for specific services. Below an example how one would listen for discovered Chromecasts:</p>
|
||||
<p>From your component, you will have to set up the listening for specific services. Given below is an example how one would listen for discovered Chromecasts:</p>
|
||||
|
||||
<div class="language-python highlighter-rouge"><pre class="highlight"><code><span class="kn">from</span> <span class="nn">homeassistant.loader</span> <span class="kn">import</span> <span class="n">get_component</span>
|
||||
|
||||
|
|
|
@ -175,12 +175,14 @@
|
|||
<li><a href="https://github.com/gbarba">Guillem Barba</a></li>
|
||||
<li><a href="https://github.com/Gyran">Gustav Ahlberg</a></li>
|
||||
<li><a href="https://github.com/gwendalg">gwendalg</a></li>
|
||||
<li><a href="https://github.com/gwendalg">gwendalg</a></li>
|
||||
<li><a href="https://github.com/happyleavesaoc">happyleavesaoc</a></li>
|
||||
<li><a href="https://github.com/haraldnagel">Harald Nagel</a></li>
|
||||
<li><a href="https://github.com/HBDK">HBDK</a></li>
|
||||
<li><a href="https://github.com/heathbar">Heathbar</a></li>
|
||||
<li><a href="https://github.com/mKeRix">Heiko Rothe</a></li>
|
||||
<li><a href="https://github.com/hmronline">Hernán</a></li>
|
||||
<li><a href="https://github.com/mweinelt">hexa-</a></li>
|
||||
<li><a href="https://github.com/jabesq">Hugo Dupras</a></li>
|
||||
<li><a href="https://github.com/HydrelioxGitHub">Hydreliox</a></li>
|
||||
<li><a href="https://github.com/icopp">Ian Copp</a></li>
|
||||
|
@ -212,6 +214,7 @@
|
|||
<li><a href="https://github.com/Juggels">Juggels</a></li>
|
||||
<li><a href="https://github.com/jd">Julien Danjou</a></li>
|
||||
<li><a href="https://github.com/justincmoy">Justin Moy</a></li>
|
||||
<li><a href="https://github.com/justweb1">Justin Weberg</a></li>
|
||||
<li><a href="https://github.com/justyns/">Justyn Shull</a></li>
|
||||
<li><a href="https://github.com/kfgoode">Karen Goode</a></li>
|
||||
<li><a href="https://github.com/kaustubhphatak">kaustubhphatak</a></li>
|
||||
|
@ -220,6 +223,7 @@
|
|||
<li><a href="https://github.com/gottsman">Kevin Gottsman</a></li>
|
||||
<li><a href="https://github.com/kireyeu">kireyeu</a></li>
|
||||
<li><a href="https://github.com/kixam">kixam</a></li>
|
||||
<li><a href="https://github.com/KlaasH">Klaas Hoekema</a></li>
|
||||
<li><a href="https://github.com/kylehendricks">Kyle Hendricks</a></li>
|
||||
<li><a href="https://github.com/lwis/">Lewis Juggins</a></li>
|
||||
<li><a href="https://github.com/LucaSoldi">Luca Soldi</a></li>
|
||||
|
@ -253,6 +257,7 @@
|
|||
<li><a href="https://github.com/nunofgs">Nuno Sousa</a></li>
|
||||
<li><a href="https://github.com/mcdeck">Oliver van Porten</a></li>
|
||||
<li><a href="https://github.com/open-homeautomation">open-homeautomation</a></li>
|
||||
<li><a href="https://github.com/OttoWinter">Otto Winter</a></li>
|
||||
<li><a href="https://github.com/oeysteinhansen">Øystein Hansen</a></li>
|
||||
<li><a href="https://github.com/bachp">Pascal Bach</a></li>
|
||||
<li><a href="https://github.com/pvizeli">Pascal Vizeli</a></li>
|
||||
|
@ -265,6 +270,7 @@
|
|||
<li><a href="https://github.com/khabi">Richard Cox</a></li>
|
||||
<li><a href="https://github.com/rkabadi">rkabadi</a></li>
|
||||
<li><a href="https://github.com/robbiet480">Robbie Trencheny</a></li>
|
||||
<li><a href="https://github.com/capellini">Rob Capellini</a></li>
|
||||
<li><a href="https://github.com/robjohnson189">Rob Johnson</a></li>
|
||||
<li><a href="https://github.com/olimpiurob">Rob Olimpiu</a></li>
|
||||
<li><a href="https://github.com/roidayan">Roi Dayan</a></li>
|
||||
|
|
|
@ -174,6 +174,7 @@ You can append <code class="highlighter-rouge">?api_password=YOUR_PASSWORD</code
|
|||
</span><span class="nt">"longitude"</span><span class="p">:</span><span class="w"> </span><span class="mf">5.5678</span><span class="p">,</span><span class="w">
|
||||
</span><span class="nt">"unit_system"</span><span class="p">:</span><span class="w"> </span><span class="s2">"metric"</span><span class="p">,</span><span class="w">
|
||||
</span><span class="nt">"time_zone"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Europe/Zurich"</span><span class="p">,</span><span class="w">
|
||||
</span><span class="nt">"config_dir"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/home/hass/.homeassistant"</span><span class="p">,</span><span class="w">
|
||||
</span><span class="nt">"version"</span><span class="p">:</span><span class="w"> </span><span class="s2">"0.8.0.dev0"</span><span class="w">
|
||||
</span><span class="p">}</span><span class="w">
|
||||
</span></code></pre>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue