How to use generic http to trigger webhook in ifttt?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
kenkoknz
Normal user
Posts: 64
Joined: 03 Jul 2018, 23:46
Location: New Zealand

How to use generic http to trigger webhook in ifttt?

#1 Post by kenkoknz » 25 Jul 2018, 05:38

Hi,
Just want to send a simple api to ifttt to trigget the ifttt webhook.
e.g on pressing a switch send below api:
ie: https://maker.ifttt.com/trigger/switchp ... /secretkey

Using Wemos; Espeasy Mega

I tried following set up but does not work:
controller settings:
locate controller: use host name
host name: maker.ifttt.com
controller publish: /trigger/switchpressed/with/key/secretkey

In device setting, I just setup up a simple switch which trigger the controller to on state change to send the http request.

Rules setup in ifttt is looking for the event "switchpressed", and tested ok by just typing "https://maker.ifttt.com/trigger/switchp ... /secretkey" in a browser.

I am obviously missing something. Still a beginner, so any advice will be appreciated. Also wanted to learn more about http request with espeasy.

Thanks,

TD-er
Core team member
Posts: 8754
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: How to use generic http to trigger webhook in ifttt?

#2 Post by TD-er » 26 Jul 2018, 18:24

Maybe you can post some screenshots and rules if you use them?
Just make sure you don't include the 'secretkey' :)
Also, can you count the total length of the URL you try to send?
There might be some limit on that at the moment.

kenkoknz
Normal user
Posts: 64
Joined: 03 Jul 2018, 23:46
Location: New Zealand

Re: How to use generic http to trigger webhook in ifttt?

#3 Post by kenkoknz » 27 Jul 2018, 02:57

Thanks for the suggestions, after few hrs of trial n error,I managed to get it to work. In the "publish" field, I should leave out the "/", i.e just:
" trigger/switchpressed/with/key/secretkey" and not "/trigger/switchpressed/with/key/secretkey".

Also note to leave out the "https://" in the host name field

I am glad that espeasy handle https so easily without any cert declarations etc.

So all good. that take care of simple "get" htmls, the advance http device looks interesting, anyone have an example to "post" with it.

Its great now I can have esp interaction ifttt without having to use Adafruio.io's mqtt.

TD-er
Core team member
Posts: 8754
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: How to use generic http to trigger webhook in ifttt?

#4 Post by TD-er » 27 Jul 2018, 18:35

kenkoknz wrote: 27 Jul 2018, 02:57 [...]
Also note to leave out the "https://" in the host name field

I am glad that espeasy handle https so easily without any cert declarations etc.
[...]
I am not sure it will actually do https calls. I think it is just doing http.

Post Reply

Who is online

Users browsing this forum: No registered users and 139 guests