Understand Smart Home Security Skills
You can use the
Alexa APIs to create Alexa skills that control smart home security devices such as cameras, locks, motion sensors, and other devices. You create smart home security skills the same way you create any other smart home skill. For details, see Understand Smart Home Skills and Steps to Build a Smart Home Skill.
You can build an Alexa skill for cloud-enabled cameras that stream video and audio by using Web Real-Time Communication (WebRTC) or the Real Time Streaming Protocol (RTSP). Amazon recommends that you use WebRTC whenever possible. If you want to support 2-way communication, you must use
The Smart Home Skill API follows the OAuth2.0 specification. Every request sent from the Smart Home Skill API to a smart home skill contains an OAuth access token in the request to enable access to the customer's device cloud. The device cloud must support the authorization code grant flow type. For details, see Account Linking for Smart Home and Other Domains.
Alexa interfaces to build skills for smart home security devices use the pre-built voice interaction model. The following examples show some user utterances.
Alexa, talk to my front door camera.
Alexa, lock my front door.
Alexa, arm my home in away mode.
Alexa interfaces for security skills
Implement the following Smart Home APIs in your Alexa skill to enable users to control your smart home security devices. For ideas about how to combine Alexa interfaces in different products, see Get Started with Device Templates.
- Alexa.CameraStreamController – Users can view the feed from their security cameras.
- Alexa.ContactSensor – For devices that detect contact between two surfaces.
- Alexa.DoorbellEventSource – For devices that can raise doorbell events.
- Alexa.LockController – Users can lock and unlock their lockable devices.
- Alexa.MotionSensor – For devices that can sense physical movement in an area.
- Alexa.RTCSessionController – For devices that support Real-Time Communication. By using the
Alexa.RTCSessionControllerinterface, Alexa users can communicate remotely with their security cameras and other devices.
- Alexa.SecurityPanelController – Users can arm and disarm security systems, and for devices that can report alarm conditions to your users.
- Alexa.SecurityPanelController.Alert – For devices that report security alerts, Alexa plays the alert on Alexa-enabled devices.
- Alexa.SmartVision.ObjectDetectionSensor – Users can receive notifications when a camera detects an object, such as a person or package.
Was this page helpful?
Last updated: Nov 22, 2023