As I’m digging through the docs trying to grok everything, I’m not quite making the connection between SmartApps and Device Handlers. As a result, I’m not really sure where to start on this idea I’ve had, or if it’s even possible.
My thought is I could use IFTTT with my Ring stick up cam. When the camera detects motion (which is an event on the Ring channel in IFTTT), IFTTT would trigger a Maker request to… well, I’m not sure, exactly. That’s where my virtual motion detector device comes in. Somehow, I need to receive a Maker request from IFTTT and treat that as if my virtual motion detector detected motion. I figure in this way, I could make my Ring camera serve the same purpose as a SmartThings motion detector.
Am I all wet? Is this possible? If it is, can someone please help me grok what steps I’ll need to take on the SmartThings side? Just a high-level summary would be fine. Also, I’ve got CoRE up and running already, if it makes life easier from the web request side.
There are multiple ways to do this (as is typical of SmartThings).
First, here’s the custom code FAQ–that might help clear up some of the confusion regarding smartapps vs device type handlers.
Second, you may be overcomplicating this. Ring has an IFTTT channel. SmartThings has an IFTTT channel You can already have motion detected by Ring trigger a SmartThings event that way. You don’t need to use any other channels.
If you are unfamiliar with IFTTT, the following is a good tutorial:
One of the things you could have IFTTT do is turn on a virtual switch in SmartThings. Then you can have that switch trigger all kinds of events within SmartThings. If you don’t know the simple way to create a virtual switch, here’s the FAQ for that.
But suppose what you really, really want is to have something register as “motion detected” within SmartThings?
This is where it gets really fun. Mike Maxwell has created a universal device type handler which can make one kind device report as though it was a different kind of device. So you could have your simple virtual switch report as a motion sensor! Which is, of course, awesome.
So there you have it:
A) just use IFTTT to have motion detected on the Ring cause a single event in SmartThings
B) use IFTTT to have motion detected on the Ring turn on a virtual switch in SmartThings and have that virtual switch coming on cause other things to happen in SmartThings, like maybe a mode change or a light come on or both.
C) use IFTTT to have motion detected on the Ring turn on a virtual switch in SmartThings which, through the use of @Mike_Maxwell 's universal virtual device type handler can then appear to SmartThings to be a motion sensor.
Also, for any of these you could use that single ring motion detected as the “IF” in multiple IFTTT recipes if you want.
There are other ways to do this as well, but these are the simplest, I think.