Building Voice-Controlled Home Automation with Amazon Alexa

1 min readJoe Hanson on Apr 26, 2017
Try PubNub Today

Free up to 1MM monthly messages. No credit card required.

Subscribe to our newsletter

By submitting this form, you are agreeing to our Terms and Conditions and Privacy Policy.

How to build a voice-controlled home automation app using PubNub and Amazon Alexa for natural language processing device control.

Voice-control, powered by natural language processing (NLP), plays a major role in home automation solutions. Allowing users to use natural voice rather than a keyboard or mobile app for triggering device action and monitoring state is intuitive and accessible. And with now cloud-based technologies, it’s not so hard to build anymore.

In this post, we want to introduce an awesome new tutorial on voice-controlled home automation using Amazon Alexa from Gopal Amlekar on The application takes voice commands, sends them in real time via PubNub, to control connected devices.

To see it in-action, check out the quick demo below:

Tutorial Overview: Voice-Controlled Home Automation

The tutorial covers:

  • Setting up PubNub for real-time messaging
  • Getting Alexa voice service running on Raspberry Pi
  • Creating a custom skill and running skill adapter code as a web service
  • Configuring skill
  • Running code on BeagleBone

By the end, you’ll have a basic home automation application powered by voice control!

For the full tutorial, including all the code and schematics you need, check out the voice-controlled home automation using Amazon Alexa tutorial on Hackster.

natural language processing with alexa

This is another awesome example of the variety of IoT use cases in combining PubNub with the vast number of IoT devices, APIs and frameworks. You can see a ton of other great examples here.

More from PubNub

Can Empathy Exist in the Metaverse
News May 16, 20221 min read

Can Empathy Exist in the Metaverse

A roundtable discussion led by PubNub’s COO, Casey Clegg, exploring the topics of what it means to be human in a virtual world.

PubNub Staff

PubNub Staff

How to Advance Telehealth and Virtual Care Technologies
News May 2, 20221 min read

How to Advance Telehealth and Virtual Care Technologies

Dr. Joe Kvedar, Chair of the Board for the American Telemedicine Association, joins our COO, Casey Clegg, to discuss why...

PubNub Staff

PubNub Staff

Another Step Towards Data Security: ISO-27001 Implementation
BuildMay 2, 20221 min read

Another Step Towards Data Security: ISO-27001 Implementation

Today, we are glad to announce that we are currently in the process of implementing ISO-27001 security standards.

PubNub Staff

PubNub Staff