Skip to content

Commit 5ffd915

Browse files
authored
Update addon_communication.markdown
1 parent e7ad856 commit 5ffd915

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/developers/hassio/addon_communication.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ Use `hassio` to speak with the internal API.
2020

2121
## {% linkable_title Home Assistant %}
2222

23-
An add-on can speak to the [Home Assistant API][hass-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`.
23+
An add-on can speak to the [Home Assistant API][hass-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` and read the environment variable `API_TOKEN` and use this as Home-Assistant password.
2424

2525
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.
2626

27-
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`.
27+
We have severals services for Hass.io inside Home Assistant to execute tasks. To send data over STDIN to an add-on use the simply `hassio.addon_stdin` service.
2828

2929
## {% linkable_title Hass.io API %}
3030

31-
To enables calls to the [Hass.io API][hassio-api], add `hassio_api: true` to `config.json`. Now you can use the API over the URL: `http://hassio/`.
31+
To enables calls to the [Hass.io API][hassio-api], add `hassio_api: true` to `config.json` and read the environment variable `API_TOKEN`. Now you can use the API over the URL: `http://hassio/`. Use the `ÀPI_TOKEN` with header `X-HASSIO-KEY`.
3232

3333
[hass-api]: https://home-assistant.io/developers/rest_api/
3434
[hassio-api]: https://github.com/home-assistant/hassio/blob/master/API.md

0 commit comments

Comments
 (0)