Home Automation with Raspberry Pi: Projects Using Google Home, Amazon Echo, and Other Intelligent Personal Assistants

Book Description

Publisher's Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality, authenticity, or access to any online entitlements included with the product.

Gain the skills needed to create a hi-tech home―affordably and easily

This hands-on guide shows, step by step, how to use the powerful Raspberry Pi for home automation. Written in an easy-to-follow style, the book features DIY projects for Amazon Echo, Google Home, smart lightbulbs and thermostats, and more. Home Automation with Raspberry Pi: Projects Using Google Home, Amazon Echo, and Other Intelligent Personal Assistants lays out essential skills for hobbyists and makers of all ages and experience levels. You will discover how to build gadgets that can work in conjunction with―or in some cases replace―commercially available smart home products.

Inside, you’ll learn how to:

•Design and build custom home automation devices

•Interface a Google Home device to your Raspberry Pi

•Connect Google Voice Assistant to RasPi

•Incorporate GPIO control using the Amazon Echo

•Navigate home automation operating systems

•Use Z-Wave in your RasPi HA projects

•Apply fuzzy logic techniques to your projects

•Work with sensors and develop home security systems

•Utilize two open-source AI applications, Mycroft and Picroft

•Tie your projects together to create an integrated home automation system



Table of Contents

  1. Cover
  2. Title Page
  3. Copyright Page
  4. Dedication
  5. Contents
  6. Preface
  7. 1 Designing and Building Home Automation Projects
    1. Generalized HA Design Approach
    2. Raspberry Pi Setup
      1. Writing the NOOBS Image to a Micro SD Card
      2. Writing the Raspbian Image to a Micro SD Card
      3. Configuring the NOOBS Image
      4. Updating and Upgrading the Raspbian Distribution
    3. General-Purpose Input/Output
    4. GPIO Demonstration
      1. Demonstration Hardware Setup
      2. Demonstration Software Setup
      3. The Make Utility
      4. Natural Human Interaction
      5. HAT Module
      6. Microphone Array Module
      7. Pushbutton-LED Combination
    5. Google Voice Assistant Software Installation
      1. Create a Google Account
      2. Log into the Google Cloud
      3. Create a Google Cloud Project
      4. Enable the Google Assistant API
      5. Obtain Credentials
      6. Download and Rename Credentials
      7. Activity Controls
      8. Testing the Voice Kit
    6. Extending the Voice Kit Functionality
    7. Summary
  8. 2 Interfacing a Google Home Device with a Raspberry Pi
    1. Google Home Device
      1. Configuring the Google Home Device
    2. Connecting a RasPi to the Google Home Device
      1. ifttt.com
      2. RasPi Web Server Software
      3. Demonstration Circuit
      4. Test Run
    3. Extending Control Functions
      1. AC-Powered Lamp Demonstration
      2. AC Lamp Applets
      3. Python Web Server Modifications
      4. Test Run
    4. PST2 Wireless Control
      1. Wireless Communications Setup
      2. Test Run
    5. Summary
  9. 3 Raspberry Pi Implements a Google Voice Assistant
    1. Audio Setup
    2. Installing and Configuring the Python 3 Environment
    3. Installing and Enabling the Google Cloud Project
    4. Authenticating the RasPi to the Google Cloud Platform
      1. LED Operations Indicator
      2. Python Script
      3. Test Run
    5. Extending the RasPi Google Home Device
      1. Test Setup
      2. Modified Python Control Script
      3. Test Run
    6. Still More Extending of the RasPi Google Home Device
      1. Basic Servo Facts
      2. Test Setup
      3. Python Control Script Incorporating the PWM Option
      4. Test Run
    7. Summary
  10. 4 Raspberry Pi GPIO Control with an Amazon Echo
    1. Wemo Demonstration
      1. Alexa Skill
      2. Fauxmo
      3. Test Setup
      4. Test Run
      5. Python Control Script
      6. Fauxmo Server
    2. Creating an Alexa Skill from Scratch
      1. Memory Game Skill
      2. Test Run
    3. Building and Configuring the RasPi GPIO Pin Control Skill
      1. Python Control Script
      2. Building the Alexa Skill
    4. Summary
  11. 5 Home Automation Operating Systems
    1. Computer Operating Systems
    2. Home Automation Operating Systems
      1. Open-Source HA OS Solutions
      2. Proprietary and Closed-Source Hardware/Software
    3. Installing the Home Assistant HA OS
      1. Modifying the Home Assistant Using the Configurator
      2. Configuring Integrations
    4. Automating the Home Assistant
      1. Internal HA OS States
      2. HA OS Services
      3. Automation Example
      4. Modifications to the Automation Example
      5. Setting Up Presence Detection
    5. Summary
  12. 6 Z-Wave and Home Automation
    1. Z-Wave Fundamentals
      1. Z-Wave Network Basics
      2. Network Devices
      3. The Z-Wave Microcontroller
      4. Z-Wave Demonstration
    2. RasPi and the Z-Wave Interface
    3. SSH Login
    4. Project Things by Mozilla.org
      1. Software Installation
      2. Add Things
      3. Test Run
    5. Summary
  13. 7 Mycroft and Picroft
    1. Mycroft Structure
    2. Mycroft Hardware
    3. Picroft
      1. Picroft Installation
    4. Configuring Mycroft
    5. Mycroft GPIO Skill
      1. GPIO Test Circuit
      2. Test Run
    6. Mycroft Skills
    7. Philips Hue Skill
    8. Summary
  14. 8 Fuzzy Logic and Home Automation
    1. A Simple HVAC FL System
    2. Basic FL Concepts
    3. FL Implementation Procedure
      1. Python Script for a Simple HVAC System
      2. Generating the Expert System Rules
      3. Fuzzification
      4. Inference
      5. Aggregation
      6. Defuzzification
      7. Simple HVAC System Python Script
      8. Testing the Simple HVAC System Script
      9. LED Mode Indicators
      10. Test Run for the Mode Indicator LEDs
    4. Complex HVAC System Demonstration
      1. Humidity Control
      2. Augmented Simple HVAC System
      3. Complex HVAC System Python Script
      4. Test Run for the Complex HVAC System Script
    5. Summary
  15. 9 Sensors
    1. Temperature and Humidity Sensors
      1. DHT11
      2. TMP36
      3. Passive Infrared Sensor
      4. Ultrasonic Sensor
    2. Summary
  16. 10 HA Security Systems
    1. Risk
    2. PIR Security System
      1. Security System Requirements
      2. Software Generation and Installation
      3. Integrating All the Software
      4. Extensions and Modifications
    3. Summary
  17. 11 Integrated Home Automation Systems
    1. Adapters
    2. One-Stop Control
    3. Shared Sensors and Actuators
    4. Script Automation
    5. Additional Subsystems That May Be Automated
    6. AI and HA
  18. Index

Product Information

  • Title: Home Automation with Raspberry Pi: Projects Using Google Home, Amazon Echo, and Other Intelligent Personal Assistants
  • Author(s): Donald Norris
  • Release date: May 2019
  • Publisher(s): McGraw-Hill Education TAB
  • ISBN: 9781260440362