So I followed @brusc Echo/Haaska video and completed each step and managed to get the skill to show up in my Alexa app, but when I test the Lamda function I get the following error:
Discovery failed: HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: //********.duckdns.org:8123/api/states (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f09c3232f10>: Failed to establish a new connection: [Errno -2] Name or service not known',))'
Any ideas as to why the connection is being refused? I can access the duckdns remotely and on my home network. I have also tried the local host url, but received the same error. Thank you!
I did not. So if I set up Letâs Encrypt via the tutorial, will the Alexa skill automatically pick it up that it should be looking at port 443 or do I need to change something in my skill? Thank you!
You will have to set up SSL first, then set up the appropriate port forwarding on your router. When you go to https://yourdomain.duckdns.org, your router should forward that traffic to your internal IP address for HA at the proper port; for example:
Traffic to 443 (SSL) port -> 192.168.1.100:8123
Then go back and adjust your Alexa Skill and Lambda setup to the new URL (https://yourdomain.duckdns.org) and you should be good. My experience was that setting up Letâs Encrypt was harder than setting up the Alexa side, but you can always ask for help here!
Great! Sounds like the Letâs Encrypt was the missing piece of the puzzle. Hopefully it works, as pot forwarding is hit or miss on my router. When you set up your Letâ Encrypt, did you follow @brusc video on the subject or did you just follow the documentation? Thanks again for the help!
Both, Actually - I followed Benâs video mostly but he is missing a few things; youâll notice this as you go through each step in the form and there are a few things he forgot to mention. If you just do what he says, youâll end up with errors. But theyâll be obvious and youâll see that they will be filled out on his video but missing in your setup screens from Amazon. If you pause the video for each page and make it full screen, you can see whatâs missing.
I wrote about most of this in this post, which may help you out a bit:
Hello I have been working in an Error similar to this one and cant figure it out and hoping someone can help
Discovery failed: HTTPSConnectionPool(host=âxxxxx.duckdnsâ, port=443): Max retries exceeded with url: /api/states (Caused by NewConnectionError(â<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f79ac458690>: Failed to establish a new connection: [Errno -2] Name or service not knownâ,)).
I also followed @brusc Echo/Haaska video and completed each step and gave permissions to 755
forwarded port 443 to myHA-ip port 8123 I can login with no problems
Thanks
Did you set up a dynamic dns provider? Can you get to your site from the outside by using https:// with your domain name and NO PORT. Thatâs important; if your forwarding is set up correctly, then you should be able to get to you HA login page with your hostname as https://yourcoolname.duckdns.org.
the only other thing in the config.json file is this
âha_allowed_entitiesâ: [âgroupâ, âinput_booleanâ, âlightâ, âmedia_playerâ, âsceneâ, âscriptâ, âswitchâ]
do I need to remove it.
Discovery failed: HTTPSConnectionPool(host=âxxxxx.duckdnsâ, port=443): Max retries exceeded with url: /api/states (Caused by NewConnectionError(â<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe841184690>: Failed to establish a new connection: [Errno -2] Name or service not knownâ,))