SlideShare a Scribd company logo
© 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

PPSX
Preparing for Microsoft 365 Copilot - Best Practices for Governance and Data ...
PPTX
Home automation in India|Solution on Home Automation System-Smart Automation
PPTX
Amazon Alexa and Echo
PDF
Smart Home Evolution
PPT
IP CCTV Introduction
PPTX
PPTX
Secure your M365 resources using Azure AD Identity Governance
PPS
Presentation on home automation
Preparing for Microsoft 365 Copilot - Best Practices for Governance and Data ...
Home automation in India|Solution on Home Automation System-Smart Automation
Amazon Alexa and Echo
Smart Home Evolution
IP CCTV Introduction
Secure your M365 resources using Azure AD Identity Governance
Presentation on home automation

Similar to Building Smart Home skills for Alexa (20)

PPTX
Alexa Smart Home Skill
PDF
Writing Alexa Voice Skills with NodeJS- David Janes
PDF
Writing Alexa Voice Skills With NodeJS (with a little IoT)
PPTX
Make your home smarter with Alexa
PDF
Alexa enabled smart home programming in Python - PyCon India 2018
PPTX
Building Amazon Alexa custom Skill step by step
PPTX
Amazon alexa - building custom skills
PDF
How to Create a Custom Skill
PPTX
Amazon Alexa - Introduction & Custom Skills
PPTX
Amazon Alexa
PDF
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
PDF
Alexa Skills Kit with Web API on Azure
PDF
David Isbitski - Enabling new voice experiences with Amazon Alexa and AWS Lambda
PPTX
Amazon Alexa Development Overview
PDF
Alexa skills
PPTX
introductiontoalexaskillskit-160426090427.pptx
PPTX
Valentyn Buleiko “Shedding light on the possibilities of voice assistants by ...
PDF
Intro to Alexa skills development
PPTX
Alexa, lets make a skill
PDF
Screencast dave dev-introtoask-andecho-july2015
Alexa Smart Home Skill
Writing Alexa Voice Skills with NodeJS- David Janes
Writing Alexa Voice Skills With NodeJS (with a little IoT)
Make your home smarter with Alexa
Alexa enabled smart home programming in Python - PyCon India 2018
Building Amazon Alexa custom Skill step by step
Amazon alexa - building custom skills
How to Create a Custom Skill
Amazon Alexa - Introduction & Custom Skills
Amazon Alexa
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
Alexa Skills Kit with Web API on Azure
David Isbitski - Enabling new voice experiences with Amazon Alexa and AWS Lambda
Amazon Alexa Development Overview
Alexa skills
introductiontoalexaskillskit-160426090427.pptx
Valentyn Buleiko “Shedding light on the possibilities of voice assistants by ...
Intro to Alexa skills development
Alexa, lets make a skill
Screencast dave dev-introtoask-andecho-july2015
Ad

More from AWS Germany (20)

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

Recently uploaded (20)

PDF
Spectral efficient network and resource selection model in 5G networks
PPT
Teaching material agriculture food technology
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Machine learning based COVID-19 study performance prediction
PDF
Empathic Computing: Creating Shared Understanding
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Cloud computing and distributed systems.
PDF
Approach and Philosophy of On baking technology
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
KodekX | Application Modernization Development
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Spectral efficient network and resource selection model in 5G networks
Teaching material agriculture food technology
Advanced methodologies resolving dimensionality complications for autism neur...
Dropbox Q2 2025 Financial Results & Investor Presentation
Per capita expenditure prediction using model stacking based on satellite ima...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Digital-Transformation-Roadmap-for-Companies.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Modernizing your data center with Dell and AMD
Machine learning based COVID-19 study performance prediction
Empathic Computing: Creating Shared Understanding
Mobile App Security Testing_ A Comprehensive Guide.pdf
Cloud computing and distributed systems.
Approach and Philosophy of On baking technology
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Review of recent advances in non-invasive hemoglobin estimation
KodekX | Application Modernization Development
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Building Integrated photovoltaic BIPV_UPV.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy

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