Haaska Integration issues

Dear all,

i have no tried to integrate haaska for ages and for some reason it does not work on the last mile.

I have prepared Home assistant for SSL and can reach my HA directly through https://URL.duckdns.org (without port).

I have setup the Alexa skill and authentication. Everything is working ok, I have enabled the Alexa App. Issue is that it does not find any device.

I have tried many haaska configurations my current version looks like this:

{
“url”: “https://URL.duckdns.org:443/api”,
“password”: “PASSWORD”,
“ssl_verify”: “ca-certificates.crt”,
“expose_by_default”: false,
“exposed_domains”: [
“light”
],
“debug”: true
}

When I run the make test version of haaska i receive the following output:

{
“payload”: {
“isHealthy”: true
},
“header”: {
“namespace”: “Alexa.ConnectedHome.System”,
“messageId”: “ea3942a4-83f9-4125-b6af-34b8e66567a8”,
“name”: “HealthCheckResponse”,
“payloadVersion”: “2”
}
}
true

So everything look ok. When I test the lambda function online i receive the following debug log:

START RequestId: 4a797dc2-ab32-11e7-abc4-ad2968882cca Version: $LATEST
[DEBUG] 2017-10-07T07:36:54.845Z 4a797dc2-ab32-11e7-abc4-ad2968882cca calling event handler for DiscoverAppliancesRequest, payload: {}
[DEBUG] 2017-10-07T07:36:54.845Z 4a797dc2-ab32-11e7-abc4-ad2968882cca invoking Alexa.ConnectedHome.Discovery DiscoverAppliancesRequest
[DEBUG] 2017-10-07T07:36:54.847Z 4a797dc2-ab32-11e7-abc4-ad2968882cca Starting new HTTPS connection (1): URL.duckdns.org
[DEBUG] 2017-10-07T07:37:12.43Z 4a797dc2-ab32-11e7-abc4-ad2968882cca https://URL.duckdns.org:443 “GET /api/states HTTP/1.1” 200 30948
[DEBUG] 2017-10-07T07:37:12.100Z 4a797dc2-ab32-11e7-abc4-ad2968882cca response payload: {‘discoveredAppliances’: []}
END RequestId: 4a797dc2-ab32-11e7-abc4-ad2968882cca
REPORT RequestId: 4a797dc2-ab32-11e7-abc4-ad2968882cca Duration: 17257.29 ms Billed Duration: 17300 ms Memory Size: 256 MB Max Memory Used: 29 MB

Even that looks ok to me.

Any ideas suggestions from the crowd?

Thanks and best
Peter

Hi Peter,

I kow this is a long time ago but did you get it working. I am having the sam problem.

Have you exposed anything to Alexa in your HA config?

just changed the code to this, but still not finding any devices.

alexa:
smart_home:
filter:
include_entities:
- light.kitchen
include_domains:
- switch
- light
- cover

Found the fix