Seems pretty simple: make routines available as triggers and actions in IFTTT.
One way I’d like to use this is with Scout Alarm. When I set my alarm to Away, I’d like Smartthings to run the the “Good bye” routine to turn off my lights and lock things down. Or, when I run my “Goodnight” routine, I’d like to set my alarm to “Sleep.”
Thanks for sharing, Kevin. That’s a pretty reasonable workaround, and should be pretty easy to implement.
However, Smartthings v2 is supposed to expand the audience beyond those who want to program. It’s not too much to say that anyone using IFTTT is already pretty advanced, and that’s probably true. Still, this seems like a simple addition to the IFTTT integration that would greatly expand Smartthing’s usefulness.
Yeah, not sure why they still haven’t. At the very least they should make it easy for an average user to add a virtual switch to use with the app without having to log into the ide
This is genius! My Amazon Echo was telling me that I can’t trigger a GoodNight! routine as I’m not allowed to control door locking functions in the UK. I’ve just created a Simulated Switch and now I can say “Alexa, night mode on” which turns on the switch and triggers the GoodNight! routine. The Good Morning! Routine also turns the switch back off again! Well happy! Thanks dude
Having an issue with this currently. I’ve got it set up and working with IFTT and Google Home so that when I tell google home its bed time, it dims the desired lights and turns off a specific light. I’m using Michael Strucks “Switch Activates Home Phrase” to do this and it works well.
Trying to set up another routine where I tell Google Home “lets watch something”. While the switch works from the SmartThings app to dim the desired lights, when I tell google home “lets watch something” it tells me I need to specify a device. I’m lost…i’ve deleted everything and set it up again multiple times, in different orders, etc, and cannot make it work. Any thoughts would be much appreciated.
Funny you mention that, I just changed the to “turn on the picture box” and it worked. That’s incredibly annoying (though I understand why it does this). I can’t find a good phrase. Thanks for the tip @JDRoberts
Thanks @MichaelS – this is great. I’ve got the app installed and a virtual switch set up and accessible – what I’m not following is how you are calling to a google home routine here – I see line 47-48 seems to be a place where the trigger for the routine is entered, but how does this sucker actually get access to talk to google assistant?
You are responding to a thread which is four years old and a great deal has changed in that time.
More importantly, the “routine“ referred to in the code is not a Google assistant routine.
It’s referring to a type of ST automation which the 2013 version of the smartthings app called a “routine.“ So a smartthings routine, not a Google assistant routine.
The present day equivalent would be a smartthings Automation.
I could be wrong, but I don’t believe there’s any way to trigger a Google assistant routine from either IFTTT or smartthings at the present time. But if there is, it’s not this code.
Why don’t you start a new thread under automation ideas and ask if there’s a way to trigger Google assistant routines from smartthings? Maybe there is these days.
The only thing I can think of at the moment would be to trigger an Echo Dot to speak the phrase to run the Google Assistant routine that you want.
That would work, but it would be pretty hacky.
The reason it works is because Amazon offers the ability to have a virtual Sensor coming on trigger one of their routines, something that so far Google has not matched.