Page 1 of 5

IFTTT Action plugin

PostPosted: Sun Oct 11, 2015 5:20 am
by jmdraper
I've created my first ever plugin: a really simple plugin that creates an action in Indigo to trigger IFTTT recipes through the IFTTT Maker Channel. It's one way only (i.e. you can trigger IFTTT recipes from Indigo but not Indigo events from IFTTT recipes - clearly that would require either a proper IFTTT channel for Indigo or some way to work around the authentication issues for the Maker channel).

Since I was using this to teach myself both how to write plugins and Python at the same time, I started with the Pushover plugin and adapted it. It seems to work. The plugin config allows you to enter your IFTTT Maker channel API key and then the action UI allows you to specify the event name and 3 values to pass with the event. You then just create a recipe in IFTTT to trigger whatever you want from that and use the values however you see fit.

Version 0.32 can be downloaded from here: https://www.dropbox.com/sh/mz6qh00n3gtj ... mmCLa?dl=0
Basic usage instructions here: https://sites.google.com/site/jonsindig ... ion-plugin

Enjoy!

Changelog:

v0.2 - you should now be able to use variable and device state substitution using the Indio %% syntax in the 3 parameters passed to IFTTT
v0.32 - variable and device substitution now actually works (there was a bug in v0.2)

Re: IFTTT Action plugin

PostPosted: Thu Nov 12, 2015 11:11 am
by jay (support)
BTW, thanks for the contribution. I must have missed your initial post - sorry about that.

Re: IFTTT Action plugin

PostPosted: Sun Nov 15, 2015 9:07 pm
by dnomode
I just tried a simple recipe to send me an SMS whenever the recipe is triggered, however I can't seem to get this working. I got my key entered into the plugin correctly and created an action with the same event name in indigo and then on the IFTTT website. When the Action is executed in indigo, nothing seems to happen on the IFTTT website. Any ideas what I'm missing?

Edmond

Re: IFTTT Action plugin

PostPosted: Mon Nov 16, 2015 8:16 am
by jmdraper
Apologies if this is a silly suggestion but have you tried triggering the same recipe with some other completely different trigger? Just to make sure the SMS from IFTTT bit is working OK?

Do you get entries in the Indigo event log when you trigger the event?

Thanks,
Jon

Re: IFTTT Action plugin

PostPosted: Mon Nov 16, 2015 8:18 am
by jmdraper
Also if you check the recipe logs on IFTTT, does it show the trigger being received by IFTTT?

Re: IFTTT Action plugin

PostPosted: Mon Nov 16, 2015 9:08 am
by dnomode
I just tried to use the SMS recipe using a different trigger and it works great.

Yes the Indigo logs show the event.

Any other ideas?

Edmond


Sent from my iPhone using Tapatalk

Re: IFTTT Action plugin

PostPosted: Mon Nov 16, 2015 9:10 am
by dnomode
The IFTTT logs state that the recipe has never run.


Sent from my iPhone using Tapatalk

Re: IFTTT Action plugin

PostPosted: Mon Nov 16, 2015 2:22 pm
by jmdraper
That's weird. I just created a test recipe called test that sends me an SMS to completely recreate your setup and all works well for me. Only things I can think of are whether you definitely copied and pasted the API key correctly with no extra trailing or leading spaces, and that in the Indigo event you remembered to select the API key in the drop-down menu marked Maker Channel API Key. And of course the value of the event name field in the Indigo action config (the name of the action itself in Indigo does't matter) is the same as the IFTTT recipe but you already mentioned that.

Sorry I can't think of any other obvious things to try. Being very new to plugin development and having to teach myself Python as I went, adding debug logging was beyond my capabilities I'm afraid.

Jon

Re: IFTTT Action plugin

PostPosted: Mon Nov 16, 2015 4:41 pm
by Shutter
I had a similar issue at first. The event name mustn't have any spaces, so my test trigger looks like this on IFTTT:
Code: Select all
If Maker Event "Front_Door_Open", then send me an email…

Could that be it?

Simon

Re: IFTTT Action plugin

PostPosted: Mon Nov 16, 2015 10:50 pm
by dnomode
Shutter wrote:
I had a similar issue at first. The event name mustn't have any spaces, so my test trigger looks like this on IFTTT:
Code: Select all
If Maker Event "Front_Door_Open", then send me an email…

Could that be it?

Simon


Yup, that was it. Thx Simon

And thx to you Jon for this plugin. Im using it to turn on and off my Ecobee 3

Edmond




Sent from my iPhone using Tapatalk

Re: IFTTT Action plugin

PostPosted: Tue Nov 17, 2015 2:54 am
by jmdraper
Great - thanks Simon and glad you got it working Edmond. :)

Re: IFTTT Action plugin

PostPosted: Wed Jan 06, 2016 9:33 am
by Japple55
This is awesome! Thanks for creating it, Jon. Opens up all kinds of possibilities!
Jim

Re: IFTTT Action plugin

PostPosted: Fri Jan 22, 2016 5:56 am
by JustinBlue
I use this awesome whey protein while working out and had a similar issue at first. The event name mustn't have any spaces, so my test trigger looks like this on IFTTT:

Code: Select all
If Maker Event "Front_Door_Open", then send me an email…


Could that be it?

Simon


Awesome Simon. This really helped me out. I was stuck for hours trying to figure out why I wasn't getting any notifications!

Re: IFTTT Action plugin won't load in Indigo 6 / OS X 10.11.

PostPosted: Thu Apr 28, 2016 5:03 pm
by ricwilson
Hi, is anyone else running this plugin in Indigo 6? I'm unable to install it. Thanks! ric

Re: IFTTT Action plugin

PostPosted: Fri Apr 29, 2016 2:46 am
by jmdraper
Hi yes it was developed for Indigo 6 and I do have it running. What happens when you try to install?