2021-03-15 22:17:32 +01:00
|
|
|
1. {!create-stream.md!}
|
2017-06-13 02:28:29 +02:00
|
|
|
|
2021-03-15 22:17:32 +01:00
|
|
|
1. Next, on your {{ settings_html|safe }}, create a bot and
|
|
|
|
note its email and API key.
|
2017-06-13 02:28:29 +02:00
|
|
|
|
2021-03-15 22:17:32 +01:00
|
|
|
1. In Home Assistant, you need to add the `notify` service to your
|
|
|
|
`configuration.yaml` file. This should look something like this:
|
2017-06-13 02:28:29 +02:00
|
|
|
|
2021-03-15 22:17:32 +01:00
|
|
|
![](/static/images/integrations/homeassistant/001.png)
|
2017-06-13 02:28:29 +02:00
|
|
|
|
2021-03-15 22:17:32 +01:00
|
|
|
1. The `api_key` parameter should correspond to your bot's key. The `stream`
|
|
|
|
parameter is not necessarily required; if not given, it will default to
|
|
|
|
the `homeassistant` stream.
|
2017-06-13 02:28:29 +02:00
|
|
|
|
2021-03-15 22:17:32 +01:00
|
|
|
1. And the URL under `resource` should start with:
|
2017-06-13 02:28:29 +02:00
|
|
|
|
2021-03-15 22:17:32 +01:00
|
|
|
`{{ api_url }}/v1/external/homeassistant`
|
2017-06-13 02:28:29 +02:00
|
|
|
|
2021-03-15 22:17:32 +01:00
|
|
|
1. Finally, you need to configure a trigger for the service by adding
|
|
|
|
an automation entry in the HomeAssistant `configuration.yaml` file.
|
2017-06-13 02:28:29 +02:00
|
|
|
|
2021-03-15 22:17:32 +01:00
|
|
|
![](/static/images/integrations/homeassistant/002.png)
|
2017-06-13 02:28:29 +02:00
|
|
|
|
2021-03-15 22:17:32 +01:00
|
|
|
The `data` object takes at least a `message` property and an optional
|
|
|
|
`title` parameter which will be the conversation topic and which defaults
|
|
|
|
to `homeassistant` if not given.
|
2017-06-13 02:28:29 +02:00
|
|
|
|
|
|
|
{!congrats.md!}
|
|
|
|
|
|
|
|
![](/static/images/integrations/homeassistant/003.png)
|