SlideShare a Scribd company logo
1 of 43
© 2018, Amazon Alexa, All rights reserved.
Kay Lerch, EU Head of Solutions Architecture, Alexa Smart Home, Amazon, @kaylerch
October 19th, 2018
Building Smart Home Skills for Alexa
Alexa Smart Home
Agenda
Alexa Skills Kit
Alexa Smart Home Skills
Alexa Smart Home API
Demonstration
Alexa Skills Kit
Alexa Skills
Skills represent the interaction capabilities of Alexa
Answering questions
Providing news and weather information
Playing music
Playing puzzles or games
Control lights and other devices in the home
Viewing smart home camera feeds
Checking the status of orders
... Plus many others …
Visit alexa.amazon.com and review the skills available
Types of Alexa Skills
Custom Skills
Smart Home Skills
Flash Briefing Skills
Video Skills
List Skills
For crafting unique game or app experiences
For providing flash briefing content
For providing video playback of content
For using and maintaining lists
For controlling a smart home and devices
Alexa Skills Kit
The Alexa Skills Kit (ASK) lets you teach Alexa new skills
It contains the documentation, tools, and sample code
needed to build Alexa skills
Documentation
https://developer.amazon.com/docs/ask-overviews/build-skills-with-the-alexa-skills-kit.html
Tools
ASK CLI
https://developer.amazon.com/docs/smapi/quick-start-alexa-skills-kit-command-line-interface.html
Sample Code
https://github.com/alexa
https://github.com/alexa/alexa-smarthome
Alexa Frameworks
Alexa Skills Kit
Alexa Skills Kit: Signal Processing
Alexa Skills Kit: Utterances into Intents
Text to Speech
SSML, streaming audio
Alexa Smart Home Skills
What can an Alexa Smart Home Skill do?
Turn lights on and off
Turn a switch on or off
Change the brightness of dimmable lights
Change the color or color temperature of a tunable light
Change the temperature on a thermostat
Lock a lock
Query a lock to see if it is currently locked
Ask for a smart home camera feed
Change the volume on a speaker
Change the channel of a TV
… and many more
https://developer.amazon.com/docs/device-apis/list-of-interfaces.html
Alexa Smart Home Skills
Alexa Smart Home Skills are a type of skill designed to control home
automation devices
Smart Home Skills have common invocation commands to control lights, switches, locks,
TVs, cameras, fans, thermostats and other devices
Smart Home Skills have a section in the Alexa application for configuration, control, and
status of devices
Customers link their account through the Alexa application with a device cloud and the
devices associated with that account
Usually have their own device cloud for tracking external user/device mappings
https://developer.amazon.com/docs/smarthome/understand-the-smart-home-skill-api.html
Alexa Skills Kit: Smart Home Skills
Text to Speech
SSML, streaming audio
Golden Utterances Directives,
Controllers
Capabilities,
Device State
Your Lambda
Alexa Smart Home API
Messages
Information exchanged between Alexa and a Skill is done
through Messages
Directive
A type of message from Alexa to a Skill
Alexa sends directive messages to a skill on behalf of the customer
Event
A type of message from a Skill to Alexa
A skill responds to directives with event messages
Message Structure
A Message is JSON formatted content consisting of a
Header, Endpoint, Payload and optional Context sections
Header
Provides identifying information about the message
Endpoint
Identifies a directive target and event origin
Payload
Message content that varies by the type of capability
Context
Allows state reporting from any event message
Directive
{
"directive": {
"header": {},
"endpoint": {},
"payload": {}
}
}
Message Structure Example
Event
{
"context":{
"properties":[]
},
"event":{
"header":{},
"endpoint":{},
"payload":{}
}
}
https://github.com/alexa/alexa-smarthome/tree/master/sample_messages
Alexa Smart Home Skill API
Account Linking
Account Linking
Account linking "links" a User Smart Home Skill to a device cloud
User credentials are provided and authenticated when a smart home skill is enabled
Alexa sends the User credentials as a bearer token in the directive scope
That token is used to validate the User with your system
Device Cloud provider is responsible for securely storing the Access and Refresh Tokens
Account linking is required for a smart home skill
Account Linking Flow
1. User enables a Smart Home Skill in the Alexa application
2. User authenticates and links their account with a device cloud
3. User then discovers devices associated with that account and device cloud
4. The linked credentials can be used for sending asynchronous messages to Alexa
Smart Home API - Authorization
Smart Home Skill Account Linking Flow
1. User
Enable and Account Link my Partner Skill
2. Alexa
Redirect the User to the Partner authorization
3. Authorizer
Validate the User credentials and return an Access Token to Alexa
4. User
Commands: Alexa, turn on Light
5. Alexa
Asks Partner to use the provided Access Token to turn on the Light
6. Authorizer
Validates the Access Token and turns on the Light
Alexa Smart Home Skill API
Device Discovery
Capabilities
Capability interfaces describe the functional capabilities of an endpoint
The interfaces are composed of functional primitives that allow generic
commands to be used for different types of endpoints
For a full reference, see the Smart Home Skill API Message Reference
https://developer.amazon.com/docs/smarthome/smart-home-skill-api-message-reference.html
Smart Home API - Discovery
“discover my smart devices”
Capabilities
Controllers
Directive
Capability Interface Examples
Interface Capability
Alexa.PowerController Turning on or off
Alexa.ChannelController Change, increment, and report the channel
Alexa.PercentageController Sets a percentage
(Percentage, Intensity, Speed, etc.)
Alexa.ColorController Change and report the color
(Hue, Saturation, Brightness)
Alexa.PlaybackController Control playback
(Play, Pause, Rewind, etc.)
Alexa.ThermostatController Set a temperature or point or range
Capability Interface Examples
Thermostats
Home Audio
Small Appliances
Large Appliances
Home Security
TV / Video
Alexa.InputController
Alexa.StepSpeaker
Alexa.Speaker
Alexa.ChannelController
Alexa.PowerController
Alexa.ThermostatController
Alexa.TemperatureController
Alexa.LockController
Alexa.PowerController
Alexa.TemperatureController
Alexa.PowerLevelController
Alexa.TemperatureController
Capability Interface Examples: What is Next?
Possible Capability Interfaces
Alexa.BrightnessController
Alexa.CameraStreamController
Alexa.ChannelController
Alexa.InputController
Alexa.PlaybackController
Alexa.PowerController
Alexa.Speaker
Alexa.StepSpeaker
Alexa.ThermostatController
Super Console 3000
Imagine a prototype device that
is packed with all sorts of
functionality
Display
Speakers
Camera
Thermostat
Alexa Smart Home Skill API
Device controls
Smart Home API – Control action
“turn on my living room light”
Directive
Controller
Device State
Synchronous/Asynchronous Messaging
A directive response event can be either synchronous or
asynchronous
A synchronous response must be handled in 8 seconds or less
An asynchronous response is used for some slower interface operations
For example, a DeferredResponse is supported by the LockController interface
Smart Home API – Control action
“set living room light to green”
Directive
Controller
Device State
Alexa Smart Home Skill API
Device state management
Smart Home API – State updates matter …
Smart Home API – But what if …
Smart Home API – Proactively reporting state
Alexa Event
Gateway
Smart Home API – Reactively reporting state
Alexa Cloud
Smart Home API – Configure state updates
Device
proactively
reports state
updates
Device
responds to
state report
requests
Reporting State
Device State Change Notifications
Event messages are used to provide proactive state updates to Alexa
Changes in state can be reported during normal responses via the context in a Response
Endpoints can be asked by Alexa to report state directly from a ReportState directive
State changes can also be reported asynchronously through the Alexa Event Gateway via a
ChangeReport
For example, if a switch is manually turned off by a user, the device cloud controlling the switch can send a
message to Alexa that will update the representation of the device to the user
Smart Home API – End to End
Smart Home Skills vs Custom Skills
Smart Home API Common Directives
Users have easier, common invocation commands:
"Alexa, lock the front door." vs "Alexa, tell {skill} to lock the front door."
"Alexa, show me the backyard camera." vs "Alexa, ask {skill} to show me the
backyard"
Users don't have to remember custom skill invocation names
Developers have less control over the user experience but also do not have to craft
the interaction model
Endpoint directives map to the capability interface defined in the
namespace
Alexa.PowerController: "Alexa, turn on office light"
Alexa.ThermostatController: "Alexa, set thermostat to 20"
Alexa.ColorController: "Alexa, set the kitchen light to orange"
…
https://www.amazon.com/gp/help/customer/display.html/ref=hp_left_v4_sib?ie=UTF8&nodeId=201749260
Demonstration
Resources
Smart Home Portal
https://alexa.design/smarthome
Smart Home Code
https://github.com/alexa/alexa-smarthome
https://github.com/alexa/alexa-smarthome/wiki
Developer Slack Channel
https://alexasmarthome.slack.com
Invite Link: https://alexa.design/smarthome-invite-slack
Legacy Smart Home API V2 Reference
https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/archive/shv2-
understanding-the-smart-home-skill-api

More Related Content

What's hot

Implementation of cloud computing
Implementation of cloud computing Implementation of cloud computing
Implementation of cloud computing Nadeemulla Sheriff
 
Introduction to Amazon Web Services
Introduction to Amazon Web ServicesIntroduction to Amazon Web Services
Introduction to Amazon Web ServicesAmazon Web Services
 
Building Chatbots with Amazon Lex
Building Chatbots with Amazon LexBuilding Chatbots with Amazon Lex
Building Chatbots with Amazon LexAmazon Web Services
 
Introduction to Amazon Web Services by i2k2 Networks
Introduction to Amazon Web Services by i2k2 NetworksIntroduction to Amazon Web Services by i2k2 Networks
Introduction to Amazon Web Services by i2k2 Networksi2k2 Networks (P) Ltd.
 
Running Microsoft SharePoint On AWS - Smartronix and AWS - Webinar
Running Microsoft SharePoint On AWS - Smartronix and AWS - WebinarRunning Microsoft SharePoint On AWS - Smartronix and AWS - Webinar
Running Microsoft SharePoint On AWS - Smartronix and AWS - WebinarAmazon Web Services
 
Microsoft Azure Networking Basics
Microsoft Azure Networking BasicsMicrosoft Azure Networking Basics
Microsoft Azure Networking BasicsSai Kishore Naidu
 
AWSome Day 2016 - Module 1: AWS Introduction and History
AWSome Day 2016 - Module 1: AWS Introduction and HistoryAWSome Day 2016 - Module 1: AWS Introduction and History
AWSome Day 2016 - Module 1: AWS Introduction and HistoryAmazon Web Services
 
Google cloud platform introduction
Google cloud platform introductionGoogle cloud platform introduction
Google cloud platform introductionSimon Su
 
Introduction to AWS Cloud Computing
Introduction to AWS Cloud ComputingIntroduction to AWS Cloud Computing
Introduction to AWS Cloud ComputingAmazon Web Services
 
Introduction to AWS Cloud Computing | AWS Public Sector Summit 2016
Introduction to AWS Cloud Computing | AWS Public Sector Summit 2016Introduction to AWS Cloud Computing | AWS Public Sector Summit 2016
Introduction to AWS Cloud Computing | AWS Public Sector Summit 2016Amazon Web Services
 
Introduction to Microsoft Azure
Introduction to Microsoft AzureIntroduction to Microsoft Azure
Introduction to Microsoft AzureMartyn Coupland
 
AWS Training For Beginners | AWS Certified Solutions Architect Tutorial | AWS...
AWS Training For Beginners | AWS Certified Solutions Architect Tutorial | AWS...AWS Training For Beginners | AWS Certified Solutions Architect Tutorial | AWS...
AWS Training For Beginners | AWS Certified Solutions Architect Tutorial | AWS...Simplilearn
 
Google Cloud Platform
Google Cloud PlatformGoogle Cloud Platform
Google Cloud PlatformVMware Tanzu
 
AWS vs Azure | AWS vs Azure Comparison | Difference Between AWS And Azure | S...
AWS vs Azure | AWS vs Azure Comparison | Difference Between AWS And Azure | S...AWS vs Azure | AWS vs Azure Comparison | Difference Between AWS And Azure | S...
AWS vs Azure | AWS vs Azure Comparison | Difference Between AWS And Azure | S...Simplilearn
 
Cloud comparison - AWS vs Azure vs Google
Cloud comparison - AWS vs Azure vs GoogleCloud comparison - AWS vs Azure vs Google
Cloud comparison - AWS vs Azure vs GooglePatrick Pierson
 
Tom Grey - Google Cloud Platform
Tom Grey - Google Cloud PlatformTom Grey - Google Cloud Platform
Tom Grey - Google Cloud PlatformFondazione CUOA
 

What's hot (20)

Implementation of cloud computing
Implementation of cloud computing Implementation of cloud computing
Implementation of cloud computing
 
Introduction to Amazon Web Services
Introduction to Amazon Web ServicesIntroduction to Amazon Web Services
Introduction to Amazon Web Services
 
Oracle API Gateway
Oracle API GatewayOracle API Gateway
Oracle API Gateway
 
Building Chatbots with Amazon Lex
Building Chatbots with Amazon LexBuilding Chatbots with Amazon Lex
Building Chatbots with Amazon Lex
 
Amazon Virtual Private Cloud
Amazon Virtual Private CloudAmazon Virtual Private Cloud
Amazon Virtual Private Cloud
 
Introduction to Amazon Web Services by i2k2 Networks
Introduction to Amazon Web Services by i2k2 NetworksIntroduction to Amazon Web Services by i2k2 Networks
Introduction to Amazon Web Services by i2k2 Networks
 
AWS Intro & History
AWS Intro & HistoryAWS Intro & History
AWS Intro & History
 
Running Microsoft SharePoint On AWS - Smartronix and AWS - Webinar
Running Microsoft SharePoint On AWS - Smartronix and AWS - WebinarRunning Microsoft SharePoint On AWS - Smartronix and AWS - Webinar
Running Microsoft SharePoint On AWS - Smartronix and AWS - Webinar
 
Microsoft Azure Networking Basics
Microsoft Azure Networking BasicsMicrosoft Azure Networking Basics
Microsoft Azure Networking Basics
 
Understanding Azure AD
Understanding Azure ADUnderstanding Azure AD
Understanding Azure AD
 
AWSome Day 2016 - Module 1: AWS Introduction and History
AWSome Day 2016 - Module 1: AWS Introduction and HistoryAWSome Day 2016 - Module 1: AWS Introduction and History
AWSome Day 2016 - Module 1: AWS Introduction and History
 
Google cloud platform introduction
Google cloud platform introductionGoogle cloud platform introduction
Google cloud platform introduction
 
Introduction to AWS Cloud Computing
Introduction to AWS Cloud ComputingIntroduction to AWS Cloud Computing
Introduction to AWS Cloud Computing
 
Introduction to AWS Cloud Computing | AWS Public Sector Summit 2016
Introduction to AWS Cloud Computing | AWS Public Sector Summit 2016Introduction to AWS Cloud Computing | AWS Public Sector Summit 2016
Introduction to AWS Cloud Computing | AWS Public Sector Summit 2016
 
Introduction to Microsoft Azure
Introduction to Microsoft AzureIntroduction to Microsoft Azure
Introduction to Microsoft Azure
 
AWS Training For Beginners | AWS Certified Solutions Architect Tutorial | AWS...
AWS Training For Beginners | AWS Certified Solutions Architect Tutorial | AWS...AWS Training For Beginners | AWS Certified Solutions Architect Tutorial | AWS...
AWS Training For Beginners | AWS Certified Solutions Architect Tutorial | AWS...
 
Google Cloud Platform
Google Cloud PlatformGoogle Cloud Platform
Google Cloud Platform
 
AWS vs Azure | AWS vs Azure Comparison | Difference Between AWS And Azure | S...
AWS vs Azure | AWS vs Azure Comparison | Difference Between AWS And Azure | S...AWS vs Azure | AWS vs Azure Comparison | Difference Between AWS And Azure | S...
AWS vs Azure | AWS vs Azure Comparison | Difference Between AWS And Azure | S...
 
Cloud comparison - AWS vs Azure vs Google
Cloud comparison - AWS vs Azure vs GoogleCloud comparison - AWS vs Azure vs Google
Cloud comparison - AWS vs Azure vs Google
 
Tom Grey - Google Cloud Platform
Tom Grey - Google Cloud PlatformTom Grey - Google Cloud Platform
Tom Grey - Google Cloud Platform
 

Similar to Building Smart Home skills for Alexa

Amazon Alexa Home Automation Skills
Amazon Alexa Home Automation SkillsAmazon Alexa Home Automation Skills
Amazon Alexa Home Automation SkillsAll Things Open
 
Alexa Smart Home Skill
Alexa Smart Home SkillAlexa Smart Home Skill
Alexa Smart Home SkillJun Ichikawa
 
Amazon Alexa Development Overview
Amazon Alexa Development OverviewAmazon Alexa Development Overview
Amazon Alexa Development OverviewJohn Brady
 
How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017
How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017
How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017Amazon Web Services
 
開發語音控制的IoT應用服務
開發語音控制的IoT應用服務開發語音控制的IoT應用服務
開發語音控制的IoT應用服務Amazon Web Services
 
Building Boston Rail - An Alexa Skill
Building Boston Rail - An Alexa SkillBuilding Boston Rail - An Alexa Skill
Building Boston Rail - An Alexa SkillCharles J Christina
 
Alexa Skills Kit with Web API on Azure
Alexa Skills Kit with Web API on AzureAlexa Skills Kit with Web API on Azure
Alexa Skills Kit with Web API on AzureHeather Downing
 
IRJET- Amazon Echo Controlled Smart Web Application: Integrating Echo with We...
IRJET- Amazon Echo Controlled Smart Web Application: Integrating Echo with We...IRJET- Amazon Echo Controlled Smart Web Application: Integrating Echo with We...
IRJET- Amazon Echo Controlled Smart Web Application: Integrating Echo with We...IRJET Journal
 
(MBL312) NEW! AWS IoT: Programming a Physical World w/ Shadows & Rules
(MBL312) NEW! AWS IoT: Programming a Physical World w/ Shadows & Rules(MBL312) NEW! AWS IoT: Programming a Physical World w/ Shadows & Rules
(MBL312) NEW! AWS IoT: Programming a Physical World w/ Shadows & RulesAmazon Web Services
 
AWS IoT - Introduction - Pop-up Loft
AWS IoT - Introduction - Pop-up LoftAWS IoT - Introduction - Pop-up Loft
AWS IoT - Introduction - Pop-up LoftAmazon Web Services
 
ITB2019 Easily Build Amazon Alexa skills with ColdFusion - Mike Callahan
ITB2019 Easily Build Amazon Alexa skills with ColdFusion - Mike CallahanITB2019 Easily Build Amazon Alexa skills with ColdFusion - Mike Callahan
ITB2019 Easily Build Amazon Alexa skills with ColdFusion - Mike CallahanOrtus Solutions, Corp
 
ALX315_Test Automation for Alexa Skills
ALX315_Test Automation for Alexa SkillsALX315_Test Automation for Alexa Skills
ALX315_Test Automation for Alexa SkillsAmazon Web Services
 
Valentyn Buleiko “Shedding light on the possibilities of voice assistants by ...
Valentyn Buleiko “Shedding light on the possibilities of voice assistants by ...Valentyn Buleiko “Shedding light on the possibilities of voice assistants by ...
Valentyn Buleiko “Shedding light on the possibilities of voice assistants by ...Lviv Startup Club
 
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding WorkshopDigital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding WorkshopDinah Barrett
 
Integrate drupal 8 with alexa - Rakshith
Integrate drupal 8 with alexa - RakshithIntegrate drupal 8 with alexa - Rakshith
Integrate drupal 8 with alexa - RakshithRakshith Tb
 
IRJET- Automation using Alexa and Raspberry Pi
IRJET- Automation using Alexa and Raspberry PiIRJET- Automation using Alexa and Raspberry Pi
IRJET- Automation using Alexa and Raspberry PiIRJET Journal
 
(MBL205) New! Everything You Want to Know About AWS IoT
(MBL205) New! Everything You Want to Know About AWS IoT(MBL205) New! Everything You Want to Know About AWS IoT
(MBL205) New! Everything You Want to Know About AWS IoTAmazon Web Services
 

Similar to Building Smart Home skills for Alexa (20)

Amazon Alexa Home Automation Skills
Amazon Alexa Home Automation SkillsAmazon Alexa Home Automation Skills
Amazon Alexa Home Automation Skills
 
Alexa Smart Home Skill
Alexa Smart Home SkillAlexa Smart Home Skill
Alexa Smart Home Skill
 
Amazon Alexa Development Overview
Amazon Alexa Development OverviewAmazon Alexa Development Overview
Amazon Alexa Development Overview
 
Amazon Alexa
Amazon AlexaAmazon Alexa
Amazon Alexa
 
How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017
How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017
How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017
 
開發語音控制的IoT應用服務
開發語音控制的IoT應用服務開發語音控制的IoT應用服務
開發語音控制的IoT應用服務
 
Building Boston Rail - An Alexa Skill
Building Boston Rail - An Alexa SkillBuilding Boston Rail - An Alexa Skill
Building Boston Rail - An Alexa Skill
 
Alexa Skills Kit with Web API on Azure
Alexa Skills Kit with Web API on AzureAlexa Skills Kit with Web API on Azure
Alexa Skills Kit with Web API on Azure
 
IRJET- Amazon Echo Controlled Smart Web Application: Integrating Echo with We...
IRJET- Amazon Echo Controlled Smart Web Application: Integrating Echo with We...IRJET- Amazon Echo Controlled Smart Web Application: Integrating Echo with We...
IRJET- Amazon Echo Controlled Smart Web Application: Integrating Echo with We...
 
Building Secure Mobile APIs
Building Secure Mobile APIsBuilding Secure Mobile APIs
Building Secure Mobile APIs
 
(MBL312) NEW! AWS IoT: Programming a Physical World w/ Shadows & Rules
(MBL312) NEW! AWS IoT: Programming a Physical World w/ Shadows & Rules(MBL312) NEW! AWS IoT: Programming a Physical World w/ Shadows & Rules
(MBL312) NEW! AWS IoT: Programming a Physical World w/ Shadows & Rules
 
AWS IoT - Introduction - Pop-up Loft
AWS IoT - Introduction - Pop-up LoftAWS IoT - Introduction - Pop-up Loft
AWS IoT - Introduction - Pop-up Loft
 
ITB2019 Easily Build Amazon Alexa skills with ColdFusion - Mike Callahan
ITB2019 Easily Build Amazon Alexa skills with ColdFusion - Mike CallahanITB2019 Easily Build Amazon Alexa skills with ColdFusion - Mike Callahan
ITB2019 Easily Build Amazon Alexa skills with ColdFusion - Mike Callahan
 
AWS IoT Webinar
AWS IoT WebinarAWS IoT Webinar
AWS IoT Webinar
 
ALX315_Test Automation for Alexa Skills
ALX315_Test Automation for Alexa SkillsALX315_Test Automation for Alexa Skills
ALX315_Test Automation for Alexa Skills
 
Valentyn Buleiko “Shedding light on the possibilities of voice assistants by ...
Valentyn Buleiko “Shedding light on the possibilities of voice assistants by ...Valentyn Buleiko “Shedding light on the possibilities of voice assistants by ...
Valentyn Buleiko “Shedding light on the possibilities of voice assistants by ...
 
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding WorkshopDigital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
 
Integrate drupal 8 with alexa - Rakshith
Integrate drupal 8 with alexa - RakshithIntegrate drupal 8 with alexa - Rakshith
Integrate drupal 8 with alexa - Rakshith
 
IRJET- Automation using Alexa and Raspberry Pi
IRJET- Automation using Alexa and Raspberry PiIRJET- Automation using Alexa and Raspberry Pi
IRJET- Automation using Alexa and Raspberry Pi
 
(MBL205) New! Everything You Want to Know About AWS IoT
(MBL205) New! Everything You Want to Know About AWS IoT(MBL205) New! Everything You Want to Know About AWS IoT
(MBL205) New! Everything You Want to Know About AWS IoT
 

More from AWS Germany

Analytics Web Day | From Theory to Practice: Big Data Stories from the Field
Analytics Web Day | From Theory to Practice: Big Data Stories from the FieldAnalytics Web Day | From Theory to Practice: Big Data Stories from the Field
Analytics Web Day | From Theory to Practice: Big Data Stories from the FieldAWS Germany
 
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...AWS Germany
 
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...AWS Germany
 
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...AWS Germany
 
Modern Applications Web Day | Container Workloads on AWS
Modern Applications Web Day | Container Workloads on AWSModern Applications Web Day | Container Workloads on AWS
Modern Applications Web Day | Container Workloads on AWSAWS Germany
 
Modern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
Modern Applications Web Day | Continuous Delivery to Amazon EKS with SpinnakerModern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
Modern Applications Web Day | Continuous Delivery to Amazon EKS with SpinnakerAWS Germany
 
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructureHotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructureAWS Germany
 
Wild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
Wild Rydes with Big Data/Kinesis focus: AWS Serverless WorkshopWild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
Wild Rydes with Big Data/Kinesis focus: AWS Serverless WorkshopAWS Germany
 
Log Analytics with AWS
Log Analytics with AWSLog Analytics with AWS
Log Analytics with AWSAWS Germany
 
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS AWS Germany
 
AWS Programme für Nonprofits
AWS Programme für NonprofitsAWS Programme für Nonprofits
AWS Programme für NonprofitsAWS Germany
 
Microservices and Data Design
Microservices and Data DesignMicroservices and Data Design
Microservices and Data DesignAWS Germany
 
Serverless vs. Developers – the real crash
Serverless vs. Developers – the real crashServerless vs. Developers – the real crash
Serverless vs. Developers – the real crashAWS Germany
 
Query your data in S3 with SQL and optimize for cost and performance
Query your data in S3 with SQL and optimize for cost and performanceQuery your data in S3 with SQL and optimize for cost and performance
Query your data in S3 with SQL and optimize for cost and performanceAWS Germany
 
Secret Management with Hashicorp’s Vault
Secret Management with Hashicorp’s VaultSecret Management with Hashicorp’s Vault
Secret Management with Hashicorp’s VaultAWS Germany
 
Scale to Infinity with ECS
Scale to Infinity with ECSScale to Infinity with ECS
Scale to Infinity with ECSAWS Germany
 
Containers on AWS - State of the Union
Containers on AWS - State of the UnionContainers on AWS - State of the Union
Containers on AWS - State of the UnionAWS Germany
 
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
Deploying and Scaling Your First Cloud Application with Amazon LightsailDeploying and Scaling Your First Cloud Application with Amazon Lightsail
Deploying and Scaling Your First Cloud Application with Amazon LightsailAWS Germany
 
Building Personalized Data Products - From Idea to Product
Building Personalized Data Products - From Idea to ProductBuilding Personalized Data Products - From Idea to Product
Building Personalized Data Products - From Idea to ProductAWS Germany
 

More from AWS Germany (20)

Analytics Web Day | From Theory to Practice: Big Data Stories from the Field
Analytics Web Day | From Theory to Practice: Big Data Stories from the FieldAnalytics Web Day | From Theory to Practice: Big Data Stories from the Field
Analytics Web Day | From Theory to Practice: Big Data Stories from the Field
 
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
Analytics Web Day | Query your Data in S3 with SQL and optimize for Cost and ...
 
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
 
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
Modern Applications Web Day | Manage Your Infrastructure and Configuration on...
 
Modern Applications Web Day | Container Workloads on AWS
Modern Applications Web Day | Container Workloads on AWSModern Applications Web Day | Container Workloads on AWS
Modern Applications Web Day | Container Workloads on AWS
 
Modern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
Modern Applications Web Day | Continuous Delivery to Amazon EKS with SpinnakerModern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
Modern Applications Web Day | Continuous Delivery to Amazon EKS with Spinnaker
 
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructureHotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
Hotel or Taxi? "Sorting hat" for travel expenses with AWS ML infrastructure
 
Wild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
Wild Rydes with Big Data/Kinesis focus: AWS Serverless WorkshopWild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
Wild Rydes with Big Data/Kinesis focus: AWS Serverless Workshop
 
Log Analytics with AWS
Log Analytics with AWSLog Analytics with AWS
Log Analytics with AWS
 
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
Deep Dive into Concepts and Tools for Analyzing Streaming Data on AWS
 
AWS Programme für Nonprofits
AWS Programme für NonprofitsAWS Programme für Nonprofits
AWS Programme für Nonprofits
 
Microservices and Data Design
Microservices and Data DesignMicroservices and Data Design
Microservices and Data Design
 
Serverless vs. Developers – the real crash
Serverless vs. Developers – the real crashServerless vs. Developers – the real crash
Serverless vs. Developers – the real crash
 
Query your data in S3 with SQL and optimize for cost and performance
Query your data in S3 with SQL and optimize for cost and performanceQuery your data in S3 with SQL and optimize for cost and performance
Query your data in S3 with SQL and optimize for cost and performance
 
Secret Management with Hashicorp’s Vault
Secret Management with Hashicorp’s VaultSecret Management with Hashicorp’s Vault
Secret Management with Hashicorp’s Vault
 
EKS Workshop
 EKS Workshop EKS Workshop
EKS Workshop
 
Scale to Infinity with ECS
Scale to Infinity with ECSScale to Infinity with ECS
Scale to Infinity with ECS
 
Containers on AWS - State of the Union
Containers on AWS - State of the UnionContainers on AWS - State of the Union
Containers on AWS - State of the Union
 
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
Deploying and Scaling Your First Cloud Application with Amazon LightsailDeploying and Scaling Your First Cloud Application with Amazon Lightsail
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
 
Building Personalized Data Products - From Idea to Product
Building Personalized Data Products - From Idea to ProductBuilding Personalized Data Products - From Idea to Product
Building Personalized Data Products - From Idea to Product
 

Recently uploaded

The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 

Recently uploaded (20)

The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 

Building Smart Home skills for Alexa

  • 1. © 2018, Amazon Alexa, All rights reserved. Kay Lerch, EU Head of Solutions Architecture, Alexa Smart Home, Amazon, @kaylerch October 19th, 2018 Building Smart Home Skills for Alexa Alexa Smart Home
  • 2. Agenda Alexa Skills Kit Alexa Smart Home Skills Alexa Smart Home API Demonstration
  • 4. Alexa Skills Skills represent the interaction capabilities of Alexa Answering questions Providing news and weather information Playing music Playing puzzles or games Control lights and other devices in the home Viewing smart home camera feeds Checking the status of orders ... Plus many others … Visit alexa.amazon.com and review the skills available
  • 5. Types of Alexa Skills Custom Skills Smart Home Skills Flash Briefing Skills Video Skills List Skills For crafting unique game or app experiences For providing flash briefing content For providing video playback of content For using and maintaining lists For controlling a smart home and devices
  • 6. Alexa Skills Kit The Alexa Skills Kit (ASK) lets you teach Alexa new skills It contains the documentation, tools, and sample code needed to build Alexa skills Documentation https://developer.amazon.com/docs/ask-overviews/build-skills-with-the-alexa-skills-kit.html Tools ASK CLI https://developer.amazon.com/docs/smapi/quick-start-alexa-skills-kit-command-line-interface.html Sample Code https://github.com/alexa https://github.com/alexa/alexa-smarthome
  • 9. Alexa Skills Kit: Signal Processing
  • 10. Alexa Skills Kit: Utterances into Intents Text to Speech SSML, streaming audio
  • 12. What can an Alexa Smart Home Skill do? Turn lights on and off Turn a switch on or off Change the brightness of dimmable lights Change the color or color temperature of a tunable light Change the temperature on a thermostat Lock a lock Query a lock to see if it is currently locked Ask for a smart home camera feed Change the volume on a speaker Change the channel of a TV … and many more https://developer.amazon.com/docs/device-apis/list-of-interfaces.html
  • 13. Alexa Smart Home Skills Alexa Smart Home Skills are a type of skill designed to control home automation devices Smart Home Skills have common invocation commands to control lights, switches, locks, TVs, cameras, fans, thermostats and other devices Smart Home Skills have a section in the Alexa application for configuration, control, and status of devices Customers link their account through the Alexa application with a device cloud and the devices associated with that account Usually have their own device cloud for tracking external user/device mappings https://developer.amazon.com/docs/smarthome/understand-the-smart-home-skill-api.html
  • 14. Alexa Skills Kit: Smart Home Skills Text to Speech SSML, streaming audio Golden Utterances Directives, Controllers Capabilities, Device State Your Lambda
  • 16. Messages Information exchanged between Alexa and a Skill is done through Messages Directive A type of message from Alexa to a Skill Alexa sends directive messages to a skill on behalf of the customer Event A type of message from a Skill to Alexa A skill responds to directives with event messages
  • 17. Message Structure A Message is JSON formatted content consisting of a Header, Endpoint, Payload and optional Context sections Header Provides identifying information about the message Endpoint Identifies a directive target and event origin Payload Message content that varies by the type of capability Context Allows state reporting from any event message
  • 18. Directive { "directive": { "header": {}, "endpoint": {}, "payload": {} } } Message Structure Example Event { "context":{ "properties":[] }, "event":{ "header":{}, "endpoint":{}, "payload":{} } } https://github.com/alexa/alexa-smarthome/tree/master/sample_messages
  • 19. Alexa Smart Home Skill API Account Linking
  • 20. Account Linking Account linking "links" a User Smart Home Skill to a device cloud User credentials are provided and authenticated when a smart home skill is enabled Alexa sends the User credentials as a bearer token in the directive scope That token is used to validate the User with your system Device Cloud provider is responsible for securely storing the Access and Refresh Tokens Account linking is required for a smart home skill Account Linking Flow 1. User enables a Smart Home Skill in the Alexa application 2. User authenticates and links their account with a device cloud 3. User then discovers devices associated with that account and device cloud 4. The linked credentials can be used for sending asynchronous messages to Alexa
  • 21. Smart Home API - Authorization
  • 22. Smart Home Skill Account Linking Flow 1. User Enable and Account Link my Partner Skill 2. Alexa Redirect the User to the Partner authorization 3. Authorizer Validate the User credentials and return an Access Token to Alexa 4. User Commands: Alexa, turn on Light 5. Alexa Asks Partner to use the provided Access Token to turn on the Light 6. Authorizer Validates the Access Token and turns on the Light
  • 23. Alexa Smart Home Skill API Device Discovery
  • 24. Capabilities Capability interfaces describe the functional capabilities of an endpoint The interfaces are composed of functional primitives that allow generic commands to be used for different types of endpoints For a full reference, see the Smart Home Skill API Message Reference https://developer.amazon.com/docs/smarthome/smart-home-skill-api-message-reference.html
  • 25. Smart Home API - Discovery “discover my smart devices” Capabilities Controllers Directive
  • 26. Capability Interface Examples Interface Capability Alexa.PowerController Turning on or off Alexa.ChannelController Change, increment, and report the channel Alexa.PercentageController Sets a percentage (Percentage, Intensity, Speed, etc.) Alexa.ColorController Change and report the color (Hue, Saturation, Brightness) Alexa.PlaybackController Control playback (Play, Pause, Rewind, etc.) Alexa.ThermostatController Set a temperature or point or range
  • 27. Capability Interface Examples Thermostats Home Audio Small Appliances Large Appliances Home Security TV / Video Alexa.InputController Alexa.StepSpeaker Alexa.Speaker Alexa.ChannelController Alexa.PowerController Alexa.ThermostatController Alexa.TemperatureController Alexa.LockController Alexa.PowerController Alexa.TemperatureController Alexa.PowerLevelController Alexa.TemperatureController
  • 28. Capability Interface Examples: What is Next? Possible Capability Interfaces Alexa.BrightnessController Alexa.CameraStreamController Alexa.ChannelController Alexa.InputController Alexa.PlaybackController Alexa.PowerController Alexa.Speaker Alexa.StepSpeaker Alexa.ThermostatController Super Console 3000 Imagine a prototype device that is packed with all sorts of functionality Display Speakers Camera Thermostat
  • 29. Alexa Smart Home Skill API Device controls
  • 30. Smart Home API – Control action “turn on my living room light” Directive Controller Device State
  • 31. Synchronous/Asynchronous Messaging A directive response event can be either synchronous or asynchronous A synchronous response must be handled in 8 seconds or less An asynchronous response is used for some slower interface operations For example, a DeferredResponse is supported by the LockController interface
  • 32. Smart Home API – Control action “set living room light to green” Directive Controller Device State
  • 33. Alexa Smart Home Skill API Device state management
  • 34. Smart Home API – State updates matter …
  • 35. Smart Home API – But what if …
  • 36. Smart Home API – Proactively reporting state Alexa Event Gateway
  • 37. Smart Home API – Reactively reporting state Alexa Cloud
  • 38. Smart Home API – Configure state updates Device proactively reports state updates Device responds to state report requests
  • 39. Reporting State Device State Change Notifications Event messages are used to provide proactive state updates to Alexa Changes in state can be reported during normal responses via the context in a Response Endpoints can be asked by Alexa to report state directly from a ReportState directive State changes can also be reported asynchronously through the Alexa Event Gateway via a ChangeReport For example, if a switch is manually turned off by a user, the device cloud controlling the switch can send a message to Alexa that will update the representation of the device to the user
  • 40. Smart Home API – End to End
  • 41. Smart Home Skills vs Custom Skills Smart Home API Common Directives Users have easier, common invocation commands: "Alexa, lock the front door." vs "Alexa, tell {skill} to lock the front door." "Alexa, show me the backyard camera." vs "Alexa, ask {skill} to show me the backyard" Users don't have to remember custom skill invocation names Developers have less control over the user experience but also do not have to craft the interaction model Endpoint directives map to the capability interface defined in the namespace Alexa.PowerController: "Alexa, turn on office light" Alexa.ThermostatController: "Alexa, set thermostat to 20" Alexa.ColorController: "Alexa, set the kitchen light to orange" … https://www.amazon.com/gp/help/customer/display.html/ref=hp_left_v4_sib?ie=UTF8&nodeId=201749260
  • 43. Resources Smart Home Portal https://alexa.design/smarthome Smart Home Code https://github.com/alexa/alexa-smarthome https://github.com/alexa/alexa-smarthome/wiki Developer Slack Channel https://alexasmarthome.slack.com Invite Link: https://alexa.design/smarthome-invite-slack Legacy Smart Home API V2 Reference https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/archive/shv2- understanding-the-smart-home-skill-api