Use your voice or Text Message in Facebook Messenger to control your Home Appliances with Particle Photon via Api.ai.
First of all, follow this tutorial on how to set up api.ai for Facebook Messenger
https://docs.api.ai/docs/facebook-integration
Next, add your own intents and entities on how you want to control home appliances.
Ex:
You say: "turn on light in office" ;
Then, bot will response: "Sure! The light in office is on".
Next step is use the node.js RESTful API to GET/POST messages to your particle photon and use it to control any of your home appliances.
After you set up Api.ai on your Facebook page, you then go to your Facebook page to start message your bot, I messaged my bot on my laptop (you can also use Facebook Messenger app on your phone to tell your bot to control your home appliances) .
At this time, you should see the light in your office will be turned on/off.
Here is the demo:
For more information about how to setup 433 MHz circuit and any other iot platform, please view my other tutorial:
https://www.hackster.io/faweiz/arduino_yun_light
Here is the overview of how to deploy api.ai on heroku and webhook to Facebook Messenger and use RESTful API interact with particle photon to control your home appliances or anything you want.
Any questions are welcome!
Github: https://github.com/faweiz
Portfolium: https://portfolium.com/faweiz
Linkedin: https://www.linkedin.com/in/faweiz
Hackster: https://www.hackster.io/faweiz
Comments
Please log in or sign up to comment.