Update hassio_addon_communication.md

This commit is contained in:
Pascal Vizeli 2018-09-24 15:25:56 +02:00 committed by GitHub
parent 12e2fab256
commit cfa9cb60c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,9 +28,9 @@ 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`. It could be that you need also change the Hass.io API role like `hassio_role: default`. 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`. It could be that you need also change the Hass.io API role like `hassio_role: default`.
Add-ons can call some API commands without need set `hassio_api: true`: Add-ons can call some API commands without need set `hassio_api: true`:
- `/homeassistant/info` - `/homeassistant/api`
- `/supervisor/info` - `/homeassistant/websocket`
- `/addons` - `/homeassistant/stream`
- `/addons/self/...` - `/addons/self/...`
- `/services*` - `/services*`