Skip to content

Commit fe87634

Browse files
paul-klinefabaff
authored andcommitted
Includes 2 vital details to make Alexa work (home-assistant#3331)
* Includes 2 vital details to make Alexa work I spent several hours trying to figure out why this guide didn't work for me and it overlooked two very important things that must be done. 1. either forward 443 requests or change your serving port to 443 2. add "alexa:" to your configuration file. otherwise, the .../api/alexa?api_password=xxxxxxxxx will not exist. * Minor changes
1 parent de9d800 commit fe87634

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

source/_components/alexa.markdown

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ The built-in Alexa component allows you to integrate Home Assistant into Alexa/A
3333

3434
### {% linkable_title Requirements %}
3535

36-
Amazon requires the endpoint of a skill to be hosted via SSL. Self-signed certificates are ok because our skills will only run in development mode. Read more on [our blog][blog-lets-encrypt] about how to set up encryption for Home Assistant. If you are unable to get HTTPS up and running, consider using [this AWS Lambda proxy for Alexa skills](https://community.home-assistant.io/t/aws-lambda-proxy-custom-alexa-skill-when-you-dont-have-https/5230).
36+
Amazon requires the endpoint of a skill to be hosted via SSL. Self-signed certificates are ok because our skills will only run in development mode. Read more on [our blog][blog-lets-encrypt] about how to set up encryption for Home Assistant. When running Hass.io, using the [Let's Encrypt](/addons/lets_encrypt/) the and [Duck DNS](/addons/duckdns/) add-ons is the easiest method. If you are unable to get HTTPS up and running, consider using [this AWS Lambda proxy for Alexa skills](https://community.home-assistant.io/t/aws-lambda-proxy-custom-alexa-skill-when-you-dont-have-https/5230).
37+
38+
Additionally, note that at the time of this writing, your Alexa skill endpoint *must* accept requests over port 443 (Home Assistant default to 8123). There are two ways you can handle this:
39+
40+
1. In your router, forward external 443 to your Home Assistant serving port (defaults to 8123)
41+
OR
42+
2. Change your Home Assistant serving port to 443 this is done in the [`http`](/components/http/) section with the the `server_port` entry in your `configuration.yaml` file
3743

3844
[blog-lets-encrypt]: https://home-assistant.io/blog/2015/12/13/setup-encryption-using-lets-encrypt/
3945

@@ -48,7 +54,7 @@ To get started with Alexa skills:
4854
- Version: 1.0
4955
- Endpoint:
5056
- https
51-
- https://YOUR_HOST/api/alexa?api_password=YOUR_API_PASSWORD
57+
- `https://YOUR_HOST/api/alexa?api_password=YOUR_API_PASSWORD`
5258

5359
You can use this [specially sized Home Assistant logo][large-icon] as the large icon and [this one][small-icon] as the small one.
5460

@@ -95,6 +101,12 @@ This means that we can now ask Alexa things like:
95101

96102
When activated, the Alexa component will have Home Assistant's native intent support handle the incoming intents. If you want to run actions based on intents, use the [`intent_script`](/components/intent_script) component.
97103

104+
To enable Alex add the following entry to your `configuration.yaml` file:
105+
106+
```yaml
107+
alexa:
108+
```
109+
98110
### {% linkable_title Working With Scenes %}
99111
100112
One of the most useful applications of Alexa integrations is to call scenes directly. This is easily achieved with some simple setup on the Home Assistant side and by letting Alexa know which scenes you want to run.
@@ -120,6 +132,7 @@ Then create a custom slot type called `Scenes` listing every scene you want to c
120132
<img src='/images/components/alexa/scene_slot.png' />
121133
Custom slot type for scene support.
122134
</p>
135+
123136
The names must exactly match the scene names (minus underscores - amazon discards them anyway and we later map them back in with the template).
124137

125138
Add a sample utterance:

0 commit comments

Comments
 (0)