Update alexa.smart_home.markdown (#15647)

Probably it's obvious to people working with lambda functions but I think for most people it would not. An i saw several community threads when people facing issues with  "helow world" response instead of discovered devices.
This commit is contained in:
Dmytro Vasylenko 2020-11-14 21:24:19 +02:00 committed by GitHub
parent b65871fa5f
commit a1a1a7a674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,6 +115,7 @@ Next you need create a Lambda function.
- You will then be prompted to 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`.) Then click `Add`.
- Click your Lambda function icon in the middle of the diagram (above Layers), 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)
- Click `Deploy` button to publish updated code.
- Scroll down a little bit, you will find `Environment variables`, you need add 1 environment variable and, if required, 3 optional variables. This is done by selecting `Manage environment variables` then adding the following:
- *(required)* Key = BASE_URL, Value = your Home Assistant instance's Internet accessible URL with port if needed. *Do not include the trailing `/`*.
- *(optional)* Key = NOT_VERIFY_SSL, Value = *True*. You can set this to *True* to ignore SSL issues, for example if you don't have a valid SSL certificate or you are using a self-signed certificate.