You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/alexa.markdown
+68-8Lines changed: 68 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,13 @@ ha_category: Voice
12
12
featured: true
13
13
---
14
14
15
-
There are two ways that you can use Amazon Echo and Home Assistant together.
15
+
There are a few ways that you can use Amazon Echo and Home Assistant together.
16
16
17
-
No matter which method(s) you decide to use, please remember that Amazon Echo requires an active Internet connection to function. If your Internet is down or experiencing issues (or Amazon's infrastructure is having issues), neither of these methods will work.
17
+
-[Turning devices on and off](#i-just-want-to-turn-devices-on-and-off-using-echo)
18
+
-[Build custom commands to use](#i-want-to-build-custom-commands-to-use-with-echo)
19
+
-[Create a new Flash Briefing source](#flash-briefing-skills)
20
+
21
+
No matter which method(s) you decide to use, please remember that Amazon Echo requires an active Internet connection to function. If your Internet is down or experiencing issues (or Amazon's infrastructure is having issues), none of these methods will work.
18
22
19
23
Amazon has released [Echosim], a website that simulates the Alexa service in your browser. That way it is easy to test your skills without having access to a physical Amazon Echo.
20
24
@@ -56,22 +60,25 @@ The built-in Alexa component allows you to integrate Home Assistant into Alexa/A
56
60
57
61
### {% linkable_title Requirements %}
58
62
59
-
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://forums.developer.amazon.com/forums/thread.jspa?messageID=18604).
63
+
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).
You can use this [specially sized Home Assistant logo][large-icon] as the large icon and [this one][small-icon] as the small one.
81
+
75
82
### {% linkable_title Configuring your Amazon Alexa skill %}
76
83
77
84
Alexa works based on intents. Each intent has a name and variable slots. For example, a `LocateIntent` with a slot that contains a `User`. Example intent schema:
@@ -119,7 +126,6 @@ You can use [templates] for the values of `speech/text`, `card/title` and `card/
119
126
120
127
Actions are using the [Home Assistant Script Syntax] and also have access to the variables from the intent.
Configuring the Alexa component for the above intents would look like this:
@@ -256,7 +262,7 @@ Then add the intent to your Alexa Section in your HA config file:
256
262
257
263
Now say `Alexa ask homeassistant to run <some script>` and Alexa will run that script for you.
258
264
259
-
## {% linkable_title Giving Alexa Some Personality%}
265
+
## {% linkable_title Giving Alexa Some Personality%}
260
266
261
267
In the examples above, we told Alexa to say `OK` when she successfully completed the task. This is effective but a little dull! We can again use [templates] to spice things up a little.
Alexa will now respond with a random phrase each time. You can use the include for as many different intents as you like so you only need to create the list once.
299
305
300
306
307
+
## {% linkable_title Flash Briefing Skills %}
308
+
309
+
As of version [0.31][zero-three-one] Home Assistant supports the new [Alexa Flash Briefing Skills API][flash-briefing-api]. A Flash Briefing Skill adds a new Flash Briefing source that is generated by Home Assistant.
310
+
311
+
### {% linkable_title Configuring a Flash Briefing skill in Home Assistant %}
312
+
313
+
You can use [templates] for the `title`, `audio`, `text` and `display_url` configuration parameters.
314
+
315
+
Here's an example configuration of a Flash briefing skill that will tell you who is at home:
316
+
317
+
```yaml
318
+
{% raw %}# Example configuration.yaml entry
319
+
alexa:
320
+
flash_briefings:
321
+
whoishome:
322
+
- title: Who's at home?
323
+
text: >
324
+
{%- if is_state('device_tracker.paulus', 'home') and
Anne Therese is at {{ states("device_tracker.anne_therese") }}
329
+
and Paulus is at {{ states("device_tracker.paulus") }}
330
+
{% endif %}
331
+
```
332
+
333
+
You can add multiple items for a feed if you want. The Amazon required uid and timestamp will be randomly generated at startup and change at every restart of Home Assistant.
334
+
335
+
Please refer to the [Amazon documentation][flash-briefing-api-docs] for more information about allowed configuration parameters and formats.
336
+
337
+
### {% linkable_title Configuring your Flash Briefing skill %}
338
+
339
+
- Log in to [Amazon developer console][amazon-dev-console]
340
+
- Click the Alexa button at the top of the console
341
+
- Click the yellow "Add a new skill" button in the top right
342
+
- Skill Information
343
+
- For Skill Type select Flash Briefing Skill API
344
+
- You can enter whatever name you want
345
+
- Hit next
346
+
- Interaction Model
347
+
- Nothing to do here
348
+
- Configuration
349
+
- Add new feed
350
+
- For URL, enter `https://YOUR_HOST/api/alexa/flash_briefings/BRIEFING_ID?api_password=YOUR_API_PASSWORD` where `BRIEFING_ID` is the key you entered in your configuration (such as `whoishome` in the above example)
351
+
- You can use this [specially sized Home Assistant logo][large-icon] as the Feed Icon
0 commit comments