diff --git a/source/_integrations/alexa.smart_home.markdown b/source/_integrations/alexa.smart_home.markdown
index 9676bd71c31..0c77196c057 100644
--- a/source/_integrations/alexa.smart_home.markdown
+++ b/source/_integrations/alexa.smart_home.markdown
@@ -26,31 +26,29 @@ For Home Assistant Cloud Users, documentation can be found [here](https://www.na
-## Amazon Alexa Smart Home
-
-##### Steps to Integrate an Amazon Alexa Smart Home Skill with Home Assistant
+**Steps to Integrate an Amazon Alexa Smart Home Skill with Home Assistant**
- [Requirements](#requirements)
-- [Create your Amazon Alexa Smart Home Skill](#create-your-amazon-alexa-smart-home-skill)
-- [Create your Lambda function](#create-your-lambda-function)
+- [Create an Amazon Alexa Smart Home Skill](#create-an-amazon-alexa-smart-home-skill)
+- [Create an AWS Lambda Function](#create-an-aws-lambda-function)
- [Create an IAM Role for Lambda](#create-an-iam-role-for-lambda)
- - [Add the code for your Lambda function](#add-the-code-for-your-lambda-function)
- - [Test the Lambda function](#test-the-lambda-function)
-- [Configure the smart home service endpoint](#configure-the-smart-home-service-endpoint)
-- [Account linking](#account-linking)
+ - [Add Code to the Lambda Function](#add-code-to-the-lambda-function)
+ - [Test the Lambda Function](#test-the-lambda-function)
+- [Configure the Smart Home Service Endpoint](#configure-the-smart-home-service-endpoint)
+- [Account Linking](#account-linking)
- [Alexa Smart Home Component Configuration](#alexa-smart-home-component-configuration)
-- [Supported integrations](#supported-integrations)
-- [Alexa web-based app](#alexa-web-based-app)
+- [Supported Integrations](#supported-integrations)
+- [Alexa Web-Based App](#alexa-web-based-app)
- [Troubleshooting](#troubleshooting)
- [Debugging](#debugging)
-### Requirements
+## Requirements
- The Alexa Smart Home API requires your Home Assistant instance to be accessible from the internet via HTTPS on port 443 using an SSL/TLS certificate. A self-signed certificate will work, but a certificate signed by [an Amazon approved certificate authority](https://ccadb-public.secure.force.com/mozilla/IncludedCACertificateReport) is recommended. Read more on [our blog](/blog/2015/12/13/setup-encryption-using-lets-encrypt/) about how to set up encryption for Home Assistant. When running Hass.io using the [Duck DNS](/addons/duckdns/) add-on is the easiest method.
- Amazon Developer Account. Sign up [here](https://developer.amazon.com).
- An [Amazon Web Services (AWS)](https://aws.amazon.com/free/) account is required to host the Lambda function for your Alexa Smart Home Skill. [AWS Lambda](https://aws.amazon.com/lambda/pricing/) is free to use for up to 1-million requests and 1GB outbound data transfer per month.
-### Create Your Amazon Alexa Smart Home Skill
+## Create an Amazon Alexa Smart Home Skill
- Sign in [Alexa Developer Console][alexa-dev-console], you can create your free account on the sign in page.
- Go to `Alexa Skills` page if you are not, click `Create Skill` button to start the process.
@@ -64,7 +62,7 @@ For Home Assistant Cloud Users, documentation can be found [here](https://www.na
- In next screen, make sure *v3* is selected in `Payload version`.
- Now, you have created a skeleton of Smart Home skill. Next step we will do some "real" developer work. You can keep Alex Developer Console opened, we need change the skill configuration later.
-### Create Your Lambda Function
+## Create an AWS Lambda Function
Alexa Smart Home skill will trigger a AWS Lambda function to process the request, we will write a small piece of code hosted as an Lambda function basically redirect the request to your Home Assistant instance, then Alexa integration integration in Home Assistant will process the request and send back the response. Your Lambda function will delivery the response back to Alexa.
@@ -80,7 +78,7 @@ Amazon also provided a [step-by-step guide](https://developer.amazon.com/docs/sm
OK, let's go. You first need sign in your [AWS console](https://console.aws.amazon.com/), if you don't have an AWS account yet, you can create a new user [here](https://aws.amazon.com/free/) with 12-month free tire benefit. You don't need worry the cost if your account already pass the first 12 months, AWS provides up to 1 million Lambda request, 1GB outbound data and all inbound data for free, every month, all users. See [Lambda pricing](https://aws.amazon.com/lambda/pricing/) for details.
-#### Create an IAM Role for Lambda
+### Create an IAM Role for Lambda
First thing you need to do after sing in [AWS console](https://console.aws.amazon.com/) is to create an IAM Role for Lambda execution. AWS has very strict access control, you have to specific define and assign the permissions.
@@ -95,7 +93,7 @@ First thing you need to do after sing in [AWS console](https://console.aws.amazo
- You can skip `Add tags` page, click `Next: Review`.
- Give your new role a name, such as `AWSLambdaBasicExecutionRole-SmartHome`, then click `Create role` button. You should be able to find your new role in the roles list now.
-#### Add the Code for your Lambda function
+### Add Code to the Lambda Function
Next you need create a Lambda function.
@@ -111,7 +109,7 @@ Next you need create a Lambda function.
- Click `Create function`, then you can config detail of Lambda function.
- Under `Configuration` tab, expand `Designer`, then click `Alexa Smart Home` in the left part of the panel to add a Alexa Smart Home trigger to your Lambda function.
- Scroll down little bit, you need input the `Skill ID` from the skill you created in previous step. (tips: you may need switch back to Alexa Developer Console to copy the `Skill ID`.
-- Click your Lambda Function icon in the middle of the diagram, scroll down you will see a `Function code` window.
+- Click your Lambda function icon in the middle of the diagram, scroll down you will see a `Function code` window.
- Clear the example code, copy the Python script from: [https://gist.github.com/matt2005/744b5ef548cc13d88d0569eea65f5e5b](https://gist.github.com/matt2005/744b5ef548cc13d88d0569eea65f5e5b) (modified code to support Alexa's proactive mode, see details below)
- Scroll down a little bit, you will find `Environment variables`, you need add 4 environment variables:
* BASE_URL *(required)*: your Home Assistant instance's Internet accessible URL with port if needed. *Do not include the trailing `/`*.
@@ -126,7 +124,7 @@ Next you need create a Lambda function.
- Now scroll up to the top, click `Save` button.
- You need copy the ARN displayed in the top of the page, which is the identify of this Lambda function. You will need this ARN to continue Alexa Smart Home skill configuration later.
-#### Test the Lambda function
+### Test the Lambda Function
Now, you have created the Lambda function, before you can test it, you have to set up your Home Assistant. Put following minimal configuration to your configuration.yaml, it will exposures all of your supported device and automation to Alexa. Check the [configuration section](#alexa-smart-home-component-configuration) if you want more control of the exposure.
@@ -165,7 +163,7 @@ Now, you can login to your Home Assistant and [generate a long-lived access toke
This time, you will get a list of your devices as the response. 🎉
-### Configure the Smart Home Service Endpoint
+## Configure the Smart Home Service Endpoint
Now removed the long-lived access token if you want, copied the ARN of your Lambda function, then back to [Alexa Developer Console][alexa-dev-console]. You will finish the configuration of the Smart Home skill.
@@ -174,7 +172,7 @@ Now removed the long-lived access token if you want, copied the ARN of your Lamb
- Click `SMART HOME` in the left navigation bar of build page.
- Fill in `Default endpoint` under `2. Smart Home service endpoint` using the `ARN` you copied from your Lambda function configuration.
-### Account Linking
+## Account Linking
Alexa can link your Amazon account to your Home Assistant account. Therefore Home Assistant can make sure only authenticated Alexa request be able to access your home's devices. In order to link the account, you have to make sure your Home Assistant can be accessed from Internet.
@@ -211,7 +209,7 @@ Alexa can link your Amazon account to your Home Assistant account. Therefore Hom
* You can discovery your devices now.
- Now, you can ask your Echo or in Alexa App, _"Alexa, turn on bedroom"_ 🎉
-### Alexa Smart Home Component Configuration
+## Alexa Smart Home Component Configuration
Example configuration:
@@ -315,7 +313,7 @@ alexa:
type: string
{% endconfiguration %}
-#### Alexa Locale
+### Alexa Locale
The `locale` should match the location and language used for your Amazon echo devices.
@@ -335,7 +333,7 @@ The supported locales are:
See [List of Capability Interfaces and Supported Locales][alexa-supported-locales].
-#### Proactive Events
+### Proactive Events
The `endpoint`, `client_id` and `client_secret` are optional, and are only required if you want to enable Alexa's proactive mode (i.e. "Send Alexa Events" enabled). Please note the following if you want to enable proactive mode:
@@ -343,7 +341,7 @@ The `endpoint`, `client_id` and `client_secret` are optional, and are only requi
- The `client_id` and `client_secret` are not the ones used by the skill that have been set up using "Login with Amazon" (in the [Alexa Developer Console][amazon-dev-console]: Build > Account Linking), but rather from the "Alexa Skill Messaging" (in the Alexa Developer Console: Build > Permissions > Alexa Skill Messaging). To get them, you need to enable the "Send Alexa Events" permission.
- If the "Send Alexa Events" permission was not enabled previously, you need to unlink and relink the skill using the Alexa App, or else Home Assistant will show the following error: "Token invalid and no refresh token available. Also, you need to restart your Home Assistant after each disabling/enabling the skill in Alexa."
-#### Configure Filter
+### Configure Filter
By default, no entity will be excluded. To limit which entities are being exposed to Alexa, you can use the `filter` parameter. Keep in mind only [supported components](#supported-integrations) can be added.
@@ -380,7 +378,7 @@ Filters are applied as follows:
See the [troubleshooting](#troubleshooting) if for issues setting up the integration.
-#### Alexa Display Categories
+### Alexa Display Categories
Configure a display category to override the display category and iconography each entity is shown in the Alexa app. This makes it easier to find and monitor devices.
@@ -395,7 +393,7 @@ Devices such as cameras, doorbells, garage doors, and alarm control panels requi
See [Alexa Display Categories][alexa-display-categories] for a complete list
-### Supported Integrations
+## Supported Integrations
Home Assistant supports the following integrations through Alexa using a Smart Home Skill. For Home Assistant Cloud Users, documentation can be found [here](https://www.nabucasa.com/config/amazon_alexa/).
@@ -432,7 +430,7 @@ The following integrations are currently supported:
- [Timer](#timer)
- [Vacuum](#vacuum)
-#### Alarm Control Panel
+### Alarm Control Panel
Arm and disarm Alarm Control Panel entities. Ask Alexa for the state of the Alarm Control Panel entity.
@@ -441,7 +439,7 @@ Arm and disarm Alarm Control Panel entities. Ask Alexa for the state of the Alar
* _"Alexa, disarm my home."_
* _"Alexa, is my home armed?"_
-##### Arming
+#### Arming
The Alarm Control Panel state must be in the `disarmed` state before arming. Alexa does not support switching from an armed state without first disarming. e.g. switching from `armed_home` to `armed_night`.
@@ -455,7 +453,7 @@ The Alarm Control Panel may default the `code_arm_required` attribute to `true`
-##### Disarming
+#### Disarming
Users must opt-in to the disarm by voice feature in the Alexa App. Alexa will require a 4 digit voice personal identification number (PIN) for disarming. Configure a 4 digit PIN in the Alexa app, or use an existing 4 digit PIN code configured for the Alarm Control Panel.
@@ -468,7 +466,7 @@ To use the exiting code configured for the Alarm Control Panel the `code` must b
The existing code is never communicated to Alexa from Home Assistant. During disarming, Alexa will ask for a PIN. The PIN spoken to Alexa is relayed to Home Assistant and passed to the `alarm_control_panel.alarm_disarm` service. If the `alarm_control_panel.alarm_disarm` service fails for any reason, it is assumed the PIN was incorrect and reported to Alexa as an invalid PIN.
-#### Alert, Automation, Group, Input Boolean
+### Alert, Automation, Group, Input Boolean
Turn on and off Alerts, Automations, Groups, and Input Boolean entities as switches.
@@ -476,7 +474,7 @@ Turn on and off Alerts, Automations, Groups, and Input Boolean entities as switc
* _"Alexa, turn off energy saving automations."_
* _"Alexa, Downstairs to on."_
-#### Binary Sensor
+### Binary Sensor
Requires [Proactive Events](#proactive-events) enabled.
@@ -495,7 +493,7 @@ Ask Alexa for the state of a contact sensor.
* _"Alexa, is the bedroom window open?"_
-##### Routines
+#### Routines
Requires [Proactive Events](#proactive-events) enabled.
@@ -503,7 +501,7 @@ Alexa Routines can be triggered with Binary Sensors exposed as contact or motion
Use the [Entity Customization Tool](/docs/configuration/customizing-devices/#customization-using-the-ui) to override the `device_class` attribute to expose a `binary_sensor` to Alexa.
-##### Doorbell Announcement
+#### Doorbell Announcement
Requires [Proactive Events](#proactive-events) enabled.
@@ -529,7 +527,7 @@ Each Amazon Echo device will need the communication and announcements setting en