I am just trying to create my first Alexa skill. I need it with a HTTPS endpoint.
Maybe first the project. I have 100% custom made smart home. Created with a Raspberry Pi and sever Arduinos. There are some problems. I have only a mobile internet connection with a private IP from the provider. No chance to get a public or even static IP. So, I can't have the endpoint direct on the Raspberry Pi. Too bad :-(
The thought was to make the endpoint on my webspace (shared hosting, no server) and let the RPi check for new commands every x seconds. I ordered yesterday a SSL certifiate for the domain and installed a simple script. But the problem now is that the Alexa test is telling me all the time "Ich kann den angeforderten Skill nicht erreichen" (like: I can't reach the skill.) Why? What am I doing wrong?
I checked the logfiles of the server. Not much to see there. It seems like 'Alexa' is not calling at the URL which I provide. Are there any restrictions? My endpoint URL is like: https://www.domain.com/alexa_endpoint/endpoint.php
It seems like the skill is trying to reach an other URL on the domain and is then redirected (due to a htaccess rule in the main directory) to a different page.
OR this guess is wrong and the request of Alexa is not even reaching the server.
Or... is there any other way to get the data from the Alexa commands without own endpoint? The only way I can work with it is to pull the commands - from my local RPi - from somewhere. The command must be stored somewhere, as I can only pull them every x seconds (sometimes I don't have any internet connection at all for some time as well). And I don't trust third parties in this case so much... as we talk about direct access to my smart home devices ;-)
And one more question... I tried yesterday the command 'switch the light on' and Alexa was telling me 'there is no smart home device connected' (there are the default smart home commands). If I create my own skill with the command 'switch the light on' ... is the default one overwritten then? Or how can I deactivate the default smart home engine?
I hope someone can help me to solve this problem. I can't wait to control my home with my voice too ;-)
Thanks in advance.