O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building Alexa Skills for Home Automation with Raspberry Pi

Video Description

Learn to build Alexa Skills from scratch to control devices in your home with any Amazon Echo device and a Raspberry Pi!

About This Video

  • Learn how to build custom Alexa skills
  • Learn how to use Alexa to control anything in your home
  • Use the Raspberry Pi and Alexa to voice-control anything in your home

In Detail

This course will teach you how to build Alexa skills that will run on any Amazon Echo device to voice-control anything in your home.

In this course, you will learn:

  • What Alexa is and the underlying Alexa ecosystem that uses the Alexa Voice Service
  • We discuss Custom Alexa Skills and you will learn the components that make up a custom Alexa skill
  • We then prepare your Raspberry Pi for the projects we will build
  • We describe the flask-ask Python library, which we will be using to build custom Alexa skills
  • You will learn how to use the Amazon Developer Portal to configure and create your custom Alexa skills
  • We will build a skill to control an LED connected to the Raspberry Pi with Alexa
  • We then use relays to safely connect to our Raspberry Pi via AC mains power
  • We create a skill that allows you to control any device in your home to turn it on or off using Alexa
  • We create an awesome project that will enable you to voice-control any TV in your house

The skills that you'll create in this course can be run on any Amazon Echo device in your home. You will learn how to test the custom skills that you will build on an Amazon Echo or any Alexa-enabled device.

All the code files are placed at https://github.com/PacktPublishing/Building-Alexa-Skills-for-Home-Automation-with-Raspberry-Pi

Downloading the example code for this course: You can download the example code files for all Packt video courses you have purchased from your account at http://www.PacktPub.com. If you purchased this course elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Chapter 1 : Introduction
    1. What is Alexa? 00:02:30
    2. Why is this important? 00:02:25
  2. Chapter 2 : Taking a Deeper Dive into Custom Alexa Skills
    1. What are Custom Alexa Skills? 00:01:26
    2. Understanding the components that make up Custom Alexa Skills 00:04:09
  3. Chapter 3 : Preparing the hardware and software
    1. Setting up your Raspberry Pi 00:01:25
    2. Updating the software that you will need 00:04:19
    3. Downloading all the code and resources for the course 00:04:41
    4. Creating your Amazon Developer Account 00:01:07
    5. Setup and register your Alexa Device 00:01:49
  4. Chapter 4 : Understanding flask-ask
    1. Overview of flask-ask 00:04:48
  5. Chapter 5 : Building a Hello World Alexa Skill with flask-ask
    1. Overview of the Hello World Skill 00:04:23
    2. Creating the Skill Interaction Model 00:12:48
    3. Creating the flask-ask Skill Handler Python Program 00:13:47
    4. Exposing and configuring a URL for the Skill Endpoint 00:03:46
    5. Testing our Skill 00:10:16
  6. Chapter 6 : Building a Custom Alexa Skill to control an LED
    1. Overview of the Project 00:02:45
    2. Setting up the Circuit 00:03:17
    3. Creating the Skill Interaction Model 00:05:59
    4. Creating the flask-ask Skill Handler Python Program 00:09:43
    5. Exposing and configuring a URL for the Skill Endpoint 00:03:25
    6. Testing our Skill 00:04:36
    7. Test from an Alexa-enabled Device 00:03:27
  7. Chapter 7 : Build a Custom Skill to control any device using a relay
    1. Overview of the Project 00:03:13
    2. Overview of how relays work 00:08:14
    3. Overview of the Circuit 00:06:40
    4. Wiring the Circuit 00:11:24
    5. Creating the Skill Interaction Model 00:06:44
    6. Testing our Relay 00:04:00
    7. Exposing and configuring a URL for the Skill Endpoint 00:02:38
    8. Testing our Skill from the Alexa Console 00:02:21
    9. Enable Skill on the Alexa App 00:01:28
    10. Testing our Skill on an actual Alexa Device 00:01:47
    11. Code Review of the MyDevice Skill Handler Python program 00:08:16
  8. Chapter 8 : Build a Custom Skill to Control any TV using an Alexa-enabled device
    1. Introduction to the Project 00:01:32
    2. Technical Overview of the Project 00:02:04
  9. Chapter 9 : Setting up the circuit
    1. Review of the Circuit Diagram 00:01:54
    2. Wiring the Circuit 00:08:27
  10. Chapter 10 : Configuring LIRC (Linux Infrared Remote Control)
    1. Installing the LIRC (Linux Infrared Remote Control) Library 00:01:00
    2. LIRC Setup 00:05:10
    3. Testing LIRC with our Circuit 00:01:39
    4. Programming our IR remote 00:07:55
  11. Chapter 11 : Testing the LIRC setup
    1. Change your device name 00:02:06
    2. Testing our Circuit 00:05:19
    3. Review of the Test Code 00:12:10
  12. Chapter 12 : Alexa Skill Setup
    1. Creating the Skill Interaction Model 00:04:02
    2. Starting the flask-ask Skill Handler Python Program & setting the Skill Endpoint 00:02:37
    3. Code Review for the Skill 00:09:50
  13. Chapter 13 : Final Test
    1. Change your device name 00:01:37
    2. Let's control our TV! 00:04:02