Software apps and online services
Voice is a powerful tool. I have made this small project that depicts a smart home. Here I have used blue led to depict a light in hall and green in the kitchen.
you can watch the video. Also you can connect your home appliances using a relay module so that it will work something like this.
Now lets start building
step 1.0 : Making your hardware ready : setup your hardware as shown in above picture
step 2.0: Making your alexa skill : here we are building an alexa skill with which the user will interact.
step 2.1 :open Alexa skills kit. click on start a skill. click create skill. fill skill name. and again click create skill.
step 2.2 : go to build tab. go to invocation on left. fill "my smart home" in invocation name. (note : if you change this invocation name with something else, you will have to change its name in skill.json file in the code section also which we will be putting in next step.).click save model.
step 2.3 : go to json editor tab and paste the file skill.json in the code section
step 3.0 : sign in to AWS connsole. create AWS account if you don't have.after signing in, type Lambda in find services and click on it.
step 3.1 :click on create function. select author from scratch.type function name. select python 2.7 in runtime field. click on create function.
step 3.2 :click on add trigger.select alexa skills kit from dropdown. go back to amazon developer console where we pasted the skill.json. go to endpoint located on left.copy your skill id and paste it in skill id section on your AWS side.click add.reload the page.in code entry type select edit code inline and paste the lambda_function.py in code section. replace 'your-device-id' with your particle photon's device id which you can get from particle web ide. Also replace 'your-access-token' with your particle access token.click on save
step 3.3 : copy ARN from top and paste it in default region section in amazonn developer console.click save endpoint.click on build tab on top and click on build model in right section.
step 4.0 :Open particle web ide and login.
step 4.1 :type title name.
step 4.2:paste the code in particle.ino file in code section.
step 4.3 :connect your photon to your wifi network and click on flash.
step 4.4 : your project is ready !!