IFTTT Webhooks Errors "Your server returned a 404"

Having some problems with the webhooks from IFTTT.

Some basic informations:
running 0.75.3

I can access Putty and send these commands. And I think the feedback isn´t that bad?


I can send commands from HA to IFTTT but not from IFTTT to HA

So if I trigger (via dev- service) I m be able to communicate with IFTTT and start my IRobot


If I try to trigger (via Email) this Applet I m getting this error

Does anybody have a clue why I can´t receive triggers from IFTTT?
If more information is needed I will try my best to give you everything you need

Greetings Gideon

The ports are like following forwarded:
Fritz!Box 7490



You’re not using the REST API correctly for calling a service. You need to specify both domain and service in the URL, as well as service data (if needed.) And it needs to use the POST methond. See REST API Call Service.

What are you trying to “toggle”? Or are you trying to do something else?

1 Like

I am trying to toggle a script. Isn’t right? And what do you mean with domain ? Isn´t the POST method selected?

Domain is the part before the “dot”. E.g., to turn on a light you call light.turn_on - light is the domain, and turn_on is the service. If you’re trying to run a script, then script is the domain, and the name of the script is the service - e.g., script.my_script. When using the REST API, you do it like this: .../api/services/script/my_script....

I can’t tell if the POST method is selected because you didn’t show all the details of your webhook.

EDIT: Oh, didn’t realize it was a bigger picture I needed to click on. :blush:

1 Like


I also tried this Applet. But it doesn’t work either…

getting this error

Ok, this one looks correct. For a script there are two ways to run it. The first is using script as the domain and the name of the script as the service: .../api/services/script/gaming.... The other is to use .../api/services/script/turn_on... and then include the entity_id of the script as you did here.

So, there must be a typo somewhere. Try doing it with curl, and then once you get that working transfer the details to the webhook.

1 Like


This should be correct ?

But it didn´t work. But I m getting a new error

How can I run it via curl? Isn´t curl the thing with putty? What do I need to write in the console?
Would be nice, if you could give me an example.

putty is the terminal program, and curl is the command you run at the command prompt. I just tried running a script this way and it worked:

curl -s -X POST https://IP:PORT/api/services/script/MY_SCRIPT_NAME?api_password=PASSWORD

In your case it would look like this (obviously substituting the secrets):

curl -s -X POST https://XXX.duckdns.org:8123/api/services/script/gaming?api_password=PASSWORD

No need to specify body data in this case.

1 Like

Yeah, this one worked. So via Putty and via IFTTT. Thank you very much. Now I can finally go to bed.

Thanks!

1 Like

hello

i have this problem what can i do please

I using Webhooks, that make a web request activity to Pythoneverywhere. I was configure on Webhooks and Pythoneverywhere is like below images.

When run Webhooks then receive error 404

Please help me fix bug. Thanks.

I’m sorry, I don’t understand. What does this have to do with Home Assistant?