It took me some while to figuring some things out because I’m new to “programming” and Hass.io. But I’m trying to figure out how to get haaska up and running to combine Alexa and Hass.io.
First I had a lot of problems how to compile the desired zip file which is described in this tutorial. But it seemed I was missing some essential things in my GNU environment on Window. Got it compiled with the following edit in the config.json file:
{
“url”: “https://#########.duckdns.org:8123/api”,
“bearer_token”: “eyJ0eXAiOiJ…”,
“debug”: true,
“ssl_verify”: true,
“ssl_client”: []
}
Followed every step in the mentioned tutorial verry carefully on my second try now. I got a better understanding of the basics and got everything working as it should so far. I encountered some errors on my first try, but this was also because I missed the “Redirect URLs” in step 6.22 and used the wrong ones here. Which resulted in some errors when enabeling the skill in Alexa
So I’m able to get the skill working in my Alexa settings without errors now. I got the skill linked so that seemes to work thisfar, but I’m not able to find or discover anny devices.
I tried running this test aswell, but I get a lot of errors here and I have the feeling I’m missing something in this setup.
{
“directive”: {
“header”: {
“namespace”: “Alexa.Discovery”,
“name”: “Discover”,
“payloadVersion”: “3”,
“messageId”: “1bd5d003-31b9-476f-ad03-71d471922820”
},
“payload”: {
“scope”: {
“type”: “BearerToken”,
“token”: “access-token-from-skill”
}
}
}
}
I don’t understand this “script” verry well I guess, but I suppose I only have to edit the info which is in bold?
So the bearerToken is the “Long Lived Access Token” I’ve used in step 3.4 (config.json file) of the tutorial right?
And where to find the access-token-from-skill?
I suppose I have to leave everything else as is? Or is more editing needed to create a succesfull test?
(I’m not sure if I have to edit the “messageId”: “1bd5d003-31b9-476f-ad03-71d471922820” field).
Think I’m just missing something small here, but don’t understand what. Hope somebody can help me out in this