If everything goes as expected, you should see the green “Device type published successfully” message. Before you can use it, you’ll have to publish it, so click Publish. You should see the green “Created SmartDevice” message. This will create a SmartDevice named “Simulated Alexa Switch”. Scroll to the bottom of the Create New Device Handler page and click Create. Then paste (ctrl-v) to your Create New Device Handler page. Select all text (ctrl-a) and copy (ctrl-c). To get the code, go to the following page: Luckily, there’s all kinds of generous people in the SmartThings community that create custom code and share it with us for free. When you turn the virtual switch on or off, the virtual contact sensor gets automatically turned on or off by the switch. The code we are using will create a device that will be a virtual switch and contact sensor in one. We are going to use some code someone has already written so we want to create From Code. Next, you should see the Create New Device Handler screen. This will take you to your list of device handlers. Then, click Next.Įventually, you should end up on a screen that looks like the screenshot below. If this is your first time, you’ll have to agree to some terms and conditions by checking a box. If you already have your SmartThings set up, you should already have a Samsung account. Go to Click on Login in the upper right hand corner. Then paste (ctrl-v) to your New Device Handler After that, creating more only requires a couple minutes each. If you follow this tutorial, you should be able to have your first routine up and running in about 20 minutes. and an “action” device that can be controlled by Alexa.a SmartThings connected “trigger” device.The SmartThings automation triggers the virtual sensor, which in turn triggers the Alexa routine which sends the command to the device. Create two SmartThings automations that turn the virtual switch we just created on or off.The Alexa routine will send a command to the device you’re trying to control. Create an Alexa routine that is triggered by the virtual sensor.Create a virtual switch/sensor in SmartThings.And, in my experience it’s quite reliable. It may seem like it’s a bit of a hack (because it is), but it works well. It let’s you trigger an Alexa routine with basically any SmartThings action instead of just the sensor trigger. The method in this tutorial takes advantage of that option. Recently, Alexa added an option that allows certain types of sensors to trigger Alexa routines (this only works for people in the US and UK…don’t ask me why that is). This tutorial will teach you a method to make any device that can be controlled by Alexa also be controllable by Samsung SmartThings. The SmartThings’ automations are more powerful so wouldn’t it be great if we could link these two universes together? Many smart home products are compatible with Alexa, but far fewer are directly compatible with Samsung SmartThings hub. If you have any insight into why, we’d love to hear from you. For some currently unknown reason this tutorial seems to work for some people but not for others. UPDATED : Please read the comments section.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |