From a1a1a7a674d041aa44956c3c63feb8328fba76c0 Mon Sep 17 00:00:00 2001 From: Dmytro Vasylenko Date: Sat, 14 Nov 2020 21:24:19 +0200 Subject: [PATCH] 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. --- source/_integrations/alexa.smart_home.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/source/_integrations/alexa.smart_home.markdown b/source/_integrations/alexa.smart_home.markdown index bab6b2c5ad2..8b7e042c08c 100644 --- a/source/_integrations/alexa.smart_home.markdown +++ b/source/_integrations/alexa.smart_home.markdown @@ -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.