It exists diferent ways to communication between add-ons or home-assistant inside Home-Assistant.
+
There are different ways to communication between add-ons inside Home Assistant.
Network
-
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 {REPO}-{SLUG} i.e. local-xy or 3283fh-myaddon.
-
i.e. use hassio to speak with internal API.
-
Home-Assistant
-
A Add-on can speak to Home-Assistant API 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: http://hassio/homeassistant/api and they will internal redirected to the right place. As next add homeassistant_api: true to config.json.
-
It is also possible to speak direct to Home-Assistant instance with name homeassistant over our internal Network. But you need know the running config.
-
We have severals services for Hass.io inside Home-Assistant to execute some task. So you can also use hassio.addon_stdin to send data over STDIN to a add-on.
+
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 add-ons which runs on the host network are a bit limited. They can speak with all internal add-ons over their name but all other add-on can’t address the add-on in question with its name. But using an alias work well. Thus the name/alias is used to communicate inside Hass.io. The name have the following format {REPO}-{SLUG}, e.g. local-xy or 3283fh-myaddon.
+
Use hassio to speak with the internal API.
+
Home Assistant
+
An add-on can speak to the Home Assistant API with our internal proxy. That makes it very easy to communicate with the API without knowing the password, port or any other information of the Home Assistant instance. Use this URL: http://hassio/homeassistant/api and internal communication is redirected to the right place. The next stept is to add homeassistant_api: true to config.json.
+
It is also possible to speak direct to the Home Assistant instance which is named homeassistant over our internal network. But you need to know the configuration that is used by the running instance.
+
We have severals services for Hass.io inside Home Assistant to execute tasks. To send data over STDIN to an add-on.l simply use hassio.addon_stdin.
Hass.io API
-
To call to our Hass.io API add hassio_api: true to config.json. Now you can use the API over this url: http://hassio/.
+
To enables calls to the Hass.io API, add hassio_api: true to config.json. Now you can use the API over the URL: http://hassio/.