I’m running Hassio as a Docker container on my Synology NAS, and I’ve recently attempted to setup the Alexa Smart Home Skill based on the guide here https://www.home-assistant.io/integrations/alexa.smart_home
I seem to have set up the DuckDNS add-on properly, as per https://github.com/home-assistant/hassio-addons/blob/77e088e1ae4a0df87787dff9e18a869f59a67847/duckdns/README.md
My configuration within the add-on reads:
lets_encrypt:
accept_terms: true
certfile: fullchain.pem
keyfile: privkey.pem
token: (token retrieved from DuckDNS)
domains:
- customdomain.duckdns.org
seconds: 300
However, after I get to the part of the Alexa skill guide about testing the Lambda function on AWS, I get the following error:
{
"errorMessage": "2020-04-27T13:09:09.114Z 4c7606b5-6cbe-4167-8b40-f985912d9b11 Task timed out after 3.00 seconds"
}
with this log output:
START RequestId: 4c7606b5-6cbe-4167-8b40-f985912d9b11 Version: $LATEST
[DEBUG] 2020-04-27T13:09:06.112Z 4c7606b5-6cbe-4167-8b40-f985912d9b11 Event: {'directive': {'header': {'namespace': 'Alexa.Discovery', 'name': 'Discover', 'payloadVersion': '3', 'messageId': '1bd5d003-31b9-476f-ad03-71d471922820'}, 'payload': {'scope': {'type': 'BearerToken'}}}}
[WARNING] 2020-04-27T13:09:08.267Z 4c7606b5-6cbe-4167-8b40-f985912d9b11 Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fe6032ea750>, 'Connection to customdomain.duckdns.org timed out. (connect timeout=2.0)')': /api/alexa/smart_home
END RequestId: 4c7606b5-6cbe-4167-8b40-f985912d9b11
REPORT RequestId: 4c7606b5-6cbe-4167-8b40-f985912d9b11 Duration: 3003.16 ms Billed Duration: 3000 ms Memory Size: 128 MB Max Memory Used: 49 MB Init Duration: 174.82 ms
2020-04-27T13:09:09.114Z 4c7606b5-6cbe-4167-8b40-f985912d9b11 Task timed out after 3.00 seconds
I’m not entirely sure what to make of it, but it sounds like my DuckDNS setup was not responding, so I went back and looked into it.
I don’t know if I’m supposed to be able to, but should I be able to access my HA instance by entering http://customdomain.duckdns.org or https://customdomain.duckdns.org, assuming DuckDNS has been set up correctly?
I also came across some articles and advice to add this to configuration.yaml, which I did:
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
base_url: https://customdomain.duckdns.org:8123
Nothing really changed with these additional config lines, except now I couldn’t access HA even entering the IP address.
Absolutely at a loss here. What did I do wrong? I’ve followed all the instructions in the guides to a T.
Does the order in which I start the Docker containers matter?
I’ve set DuckDNS add-on to auto-on, but it never seems to turn on with Hassio, so I’ve tried starting addon_core_duckdns both before and after Hassio, to no avail.
Any help would be greatly appreciated, thank you!