This tutorial demonstrates how to create a SmartThings Schema integration that enables you to add a webcam to your SmartThings account. The integration creates a single camera device that can be used to view the webcam's video stream from within the SmartThings app.
This tutorial is divided into five unique steps. Instructions for each step can be found in each step_<n>
subdirectory.
⚠️ IMPORTANT: Code provided in steps 2 and later in eachsample_files
directory is for reference only and is not intended to be a pre-configured standalone solution. Each step builds on the previous step's sample files - when you finish following instructions for a given step, the code in your working directory should resemble the code examples and files provided in each step'ssample_files
directory.
- Basic familiarity with NodeJS and JavaScript
- A Samsung account.
- The SmartThings CLI installed and configured for your Samsung account. If you have not yet configured the CLI for use with your Samsung account, you will be prompted to do so when running the CLI for the first time.
- A computer running MacOS, Windows, or Linux.
- A webcam connected to your computer.
- NodeJS version 20.