Page 1 of 2

[ANSWERED]IFTTT Recipes

PostPosted: Thu Dec 12, 2013 5:07 pm
by rsalermo
Hi,

Any ideas if Indigo supports or plans to support IFTTT recipes? IFTTT announced that they now support recipes that are location based and/or geofencing. It would be great to have the lights turn on for my wife when you arrives home automatically.

I see that Philips and Belkin (WeMo) already support it.

Thanks,
Roberto

Re: IFTTT Recipes

PostPosted: Thu Dec 12, 2013 5:17 pm
by Seeker
I know the vera people submitted multiple requests but never got a reply. it seems like IFTTT is pretty picky or strategic in what they approve.

There could be workarounds using email triggers?

Re: IFTTT Recipes

PostPosted: Thu Dec 12, 2013 5:38 pm
by jay (support)
We found the same - we requested information about how to get added to IFTTT and never heard back to any of our requests.

Re: IFTTT Recipes

PostPosted: Thu Dec 12, 2013 5:52 pm
by Indy_Larry
I use IFTTT for a few things and would like to put it to use with Indigo as we'll if it ever gets approved.

Re: IFTTT Recipes

PostPosted: Thu Dec 12, 2013 7:40 pm
by Indy_Larry
I just got an update to IFTTT that now supports iOS location based triggers.

Re: IFTTT Recipes

PostPosted: Tue Jan 21, 2014 12:30 pm
by mundmc
I'm looking into this right now...

The two options readily apparent:

1) Use the IFTT SMS service and Google Voice SMS http://www.perceptiveautomation.com/userforum/viewtopic.php?f=11&t=7438
Pro: you can use the plugin to scan for specific text lines
Con: you cannot take the text from the SMS and put into a variable without re-coding the plugin

2) As mentioned, write a custom Applescript to scan mail and insert text into a variable, then take actions based o the variable

If there is anything that uses RESTful functions available from IFTTT for end-users, this would be my go to

Re: IFTTT Recipes

PostPosted: Wed Feb 19, 2014 1:17 am
by mundmc
New idea to integrate IFTTT with Indigo: Reminders and icloud

Right now i'm using Notes to issue commands to my Indigo, with an applescript program running on the host mac that checks for a keyword at the start of each note; it then puts the note in an Indigo variable and parses it in python.

For IFTTT, which doesn't use Notes, a similar reader script can be written.
Sooooo....
1) IFTTT trigger creates a reminder
2) Applescript on host mac detects new reminder and pushes to Indigo

I will post the code snippet when I get it working, but it will probably be something like my Notes script here: viewtopic.php?f=9&t=11548

Re: IFTTT Recipes

PostPosted: Sat Feb 22, 2014 7:17 am
by mundmc
Okay, this appears to allow IFTTT to communicate with Indigo, but i requires Reminders via iCloud:

1) make sure your Reminders are synced via icloud between
2) Make a Reminders folder titled "Indigo"
3) For the "THEN" action, create a note in folder "Indigo"
4) Make a variable in Indigo called "reminder_input"
4) Export this applescript as an application, check the "keep running" box (or whatever it is)
Code: Select all
on idle
   
   tell application "Reminders"
      
      set myList to "Indigo"
      if (count of (reminders in list myList whose completed is false)) > 0 then
         set todoList to reminders in list myList whose completed is false
         repeat with itemNum from 1 to (count of (reminders in list myList whose completed is false))
            set reminderObj to item itemNum of todoList
            set nameObj to name of reminderObj
            set completed of reminderObj to true
            tell application "Indigo 6"
               set the variable "reminder_input" to nameObj as string
            end tell
         end repeat
      end if
      
   end tell
   
   return 1
end idle


Now, reminders created through Indigo will be checked, marked as completed, and passed into an Indigo variable, where you can do with them as you please.

Re: [ANSWERED]IFTTT Recipes

PostPosted: Fri Mar 28, 2014 4:53 am
by Seeker
I found this on the homeseer board.

http://board.homeseer.com/showthread.php?t=166058

It uses dropbox as a proxy to ifttt? Macgyver-like but interesting.

Re: [ANSWERED]IFTTT Recipes

PostPosted: Tue Dec 30, 2014 12:26 pm
by rlust
Any update on getting IFTTT recipes ??
This could be helpful!

Re: [ANSWERED]IFTTT Recipes

PostPosted: Sat Feb 21, 2015 7:09 pm
by edrabbit
Yeah, would love a more direct way to tie IFTTT to Indigo.

Re: [ANSWERED]IFTTT Recipes

PostPosted: Wed Feb 25, 2015 7:02 am
by rlust
The above applescript has a error when compiled.
Any ideas on a fix?

set the variable "reminder_input" to nameObj as string

A "" canot go after this identifier.

Re: [ANSWERED]IFTTT Recipes

PostPosted: Thu Feb 26, 2015 8:58 am
by matt (support)
This line:

Code: Select all
            tell application "Indigo 6"

should be:

Code: Select all
            tell application "IndigoServer"

And this line:

Code: Select all
                set the variable "reminder_input" to nameObj as string

should be:

Code: Select all
                set value of  variable "reminder_input" to nameObj as string

Re: [ANSWERED]IFTTT Recipes

PostPosted: Fri Mar 27, 2015 1:41 pm
by mabrown
When running this I'm getting an error from the application saying:
IndigoServer got an error: Application isn’t running. (-600)

I've checked Activity Monitor and IndigoServer is running and everything else is working just fine. Any ideas?

Re: [ANSWERED]IFTTT Recipes

PostPosted: Thu Apr 09, 2015 7:46 am
by rvarela
Also happened to me once. I reinstalled Indigo and all went fine about "Indigo Server" error