Update hassio_addon_communication.md

This commit is contained in:
Pascal Vizeli 2018-09-08 01:14:11 +02:00 committed by GitHub
parent e49724f281
commit 3e7a245417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,12 @@ We have severals services for Hass.io inside Home Assistant to run tasks. To sen
To enables calls to the [Hass.io API][hassio-api], add `hassio_api: true` to `config.json` and read the environment variable `HASSIO_TOKEN`. Now you can use the API over the URL: `http://hassio/`. Use the `HASSIO_TOKEN` with header `X-HASSIO-KEY`.
Add-ons can call some API commands without need set `hassio_api: true`:
- /homeassistant/info
- /supervisor/info
- /addons
- /addons/self/...
[hass-api]: https://www.home-assistant.io/developers/rest_api/
[hass-websocket]: https://www.home-assistant.io/developers/websocket_api/
[hassio-api]: https://github.com/home-assistant/hassio/blob/master/API.md