Ready to integrate Bixby with your SmartThings device? This Quick Start Guide shows you the basics of Bixby Home Studio (BHS). You'll learn how to do the following:
Let's get started and equip your device with Bixby intelligence!
The device used in this guide is a SmartThings-enabled light bulb. You'll use the example "Send a command to a SmartThings device" to create an action flow for the Voice command "Switch on the light." Once you've followed these steps, Bixby should be able to turn on the light with the Voice command "Switch on the light."
Launch BHS in your browser by visiting https://bhs.bixbydevelopers.com.
BHS displays the Settings window. If you're not already logged in to your Samsung Account, you'll receive a prompt to sign in.
If BHS doesn't open the Settings window by default, click on the Settings icon in the sidebar on the left.
Here's how to configure BHS for your device:
Since you haven't created a BHS Project yet, you'll be prompted to do one of the following:
Click the New Project button. In the future, you can use the first three toolbar buttons on the top to create, download, or import new projects.
The next screen prompts you to fill in the project's device and metadata information.
Fill in the following information:
Choose how to create the initial metadata from these options:
For the lightbulb example, select the first choice. Then click NEXT.
You can edit the metadata after the project is created, by clicking on the BHS Metadata icon in the left sidebar.
Now you're prompted to select voice intents from the selected device's existing capabilities. Voice intents are a set of user intentions that Bixby can understand from natural voice commands. Different capabilities support various voice intents.
For more information on voice intents, see the Voice Intents reference page.
If you select "Create metadata from scratch," you have to choose a Bixby Voice Category first. This pulls up all the related SmartThings device commands that are supported. Choosing "Create metadata using SmartThings capabilities of the device" helps narrow down the available commands you can work with.
Select the voice commands you want to add to the project. Voice commands control the project's device. For this example, choose the "Turn on #{Device}" voice command. Then click NEXT. You can now view the Review Project Summary screen.
Add the project name and click DONE.
BHS now displays its main editor screen with the voice intents you added, displayed in the Voice Intents section of the left sidebar.
Expand the voice intents to see the Property and Graph links.
For more information about the editor screen and how to add more voice intents, read How to Use the Bixby Home Studio Editor.
To specify what action the device should perform for a voice intent, you need to associate the voice intent with an action flow. An action flow is a graph consisting of linked nodes of different types that create a logical sequence of actions. Nodes are the functions that developers can use in BHS.
A node consists of the following components:
For more information, see the Nodes reference page.
Follow these steps to create and test a logical action flow for a specific voice intent for the device.
All action flows begin with a Start
node. The user triggers the action flow by uttering a relevant command. The Command
node sends a command to the device.
powerswitch-turnon
voice intent.Start
node from the node menu to the flow editor area.Command
node to the flow editor area.Start
node to the trigger port of the Command
node. This allows the Start
node to trigger the Command
node.Now you'll define what the Command
node does.
Click on the Command
node to select it.
Click on APPEND NEW ITEM to add a command.
Select main
as the component, if not yet selected.
Select the command capability from the Node Configuration menu. For this example, choose switch
.
Select a command for the selected capability and click SAVE. For this example, use the command on
.
You have now created an action flow that sends a Switch on
command to the light bulb.
Response
nodes inform users about the success or failure of the device commands.
Response: Success
and Response: Execution Failed
nodes to the flow editor area.Command
node to the trigger port of the Response: Success
node.Command
node to the trigger port of the Response: Execution Failed
node.Use the Try it feature of the editor to test if the action flow works as intended on a real device. Make sure your device is turned off. Then click on the Try it button in the menu bar at the top.
You should see a confirmation that your device is switched ON
. You can see the green flowing line over the execution path. Any obtained values, responses, etc. are shown below the corresponding nodes.
You've now successfully created and tested an action flow for a voice intent! The action flow created for this tutorial is simple, but you can choose to add additional nodes to create a more complex action flow. You can also add action flows for additional voice intents that you want to include in the Voice meta information.
To take a deeper dive into BHS, read the following documentation:
The following is the 2022 video version of this tutorial.