Site updated at 2017-10-15 14:00:10 UTC
This commit is contained in:
parent
7b9e372fd7
commit
03f3847048
28 changed files with 77 additions and 68 deletions
|
@ -76,7 +76,7 @@
|
|||
<hr class="divider">
|
||||
<p>It exists diferent ways to communication between add-ons or home-assistant inside Home-Assistant.</p>
|
||||
<h2><a class="title-link" name="network" href="#network"></a> Network</h2>
|
||||
<p>We use a internal network. That allow to speak with every add-on or from Home-Assistant to add-on by name or alias. Only the a add-on they run on Host network are a bit limited. They can speak with all internal add-ons over there name but all other add-on can’t speak with the add-on name to this add-on, but alias work wheel. So use the name/alias to communicate inside Hass.io</p>
|
||||
<p>We use a internal network. That allow to speak with every add-on or from Home-Assistant to add-on by name or alias. Only the a add-on they run on Host network are a bit limited. They can speak with all internal add-ons over there name but all other add-on can’t speak with the add-on name to this add-on, but alias work wheel. So use the name/alias to communicate inside Hass.io. The name have format <code class="highlighter-rouge"><span class="p">{</span><span class="err">REPO</span><span class="p">}</span><span class="err">-</span><span class="p">{</span><span class="err">SLUG</span><span class="p">}</span></code> i.e. <code class="highlighter-rouge">local-xy</code> or <code class="highlighter-rouge">3283fh-myaddon</code>.</p>
|
||||
<p>i.e. use <code class="highlighter-rouge">hassio</code> to speak with internal API.</p>
|
||||
<h2><a class="title-link" name="home-assistant" href="#home-assistant"></a> Home-Assistant</h2>
|
||||
<p>A Add-on can speak to <a href="https://home-assistant.io/developers/rest_api/">Home-Assistant API</a> with our internal proxy. That make it very easy to speak to this API without you need know the password, port or any other information for the Home-Assistant instance. Use this url: <code class="highlighter-rouge">http://hassio/homeassistant/api</code> and they will internal redirected to the right place. As next add <code class="highlighter-rouge">homeassistant_api: true</code> to <code class="highlighter-rouge">config.json</code>.</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue