question

Tanmoy avatar image
Tanmoy asked

Alexa Skill: Calling Local URL

Hi,

I've my own home automation system building using ESP8266, Arduino and 4CH relay module. I call http://192.168.1.21/light/on to turn on the relay connected with Light. In the same pattern, I've a fan connected. I developed an Android app to control those.

I recently bought an Echo Dot and want to connect the existing system with Echo. I'm pretty known with NodeJS, C++, Python, Java, so hopefully it won't be a problem to create anything new.

I need guideline to achive the goal, can you please guide me? And would it be possible to call local URL from Alexa Echo?

alexa skills kitecho
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

KAIYIN@AMAZON.COM avatar image
KAIYIN@AMAZON.COM answered

Short answer: You will need to create functions that host in lambda instead calling local URL. Read here to understand more about how to create smart home skill. https://developer.amazon.com/docs/smarthome/understand-the-smart-home-skill-api.html.

Prerequisites to Smart Home Skill Development

In order to develop a Smart Home Skill you must have the following:

  • An Amazon developer account. Sign up is free
  • A connected device such as a light, thermostat, camera or lock with a cloud API to control it
  • An Alexa-enabled device such as Amazon Echo
  • An AWS account. You host your skill code in an AWS Lambda function
  • Knowledge of JSON
  • Knowledge of Java, Node.js, C# or Python as Lambda functions can be written in any of these languages
  • Understanding of OAuth 2.0
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.