Hi all,
I have already created my IFTTT acount and I have been using it with my Alexa and Google home for a couple of years now.
I want to be able to integrate IFTTT with my HassIO 0.99.3 and work with it and do automations.
I have already setup in my configuration file:
ifttt:
key: XXXXXXXXXXXXXXXXXXXXXXXXXXX
that holds the API Key for my IFTTT WebHook I set in my IFTTT account.
After I did the integration in my HassIO I got a popup with information how to setup my WebHook to communicate with my HA. including the setup of base_url using DuckDns - That I have already had since I have been using it so far.
I have setup everythin as mentioned and added up a json payload to turn on my switch at home from IFTTT.
have used Alexa as the THIS and WebHook as THAT.
So far I think I have it setup correctly. Please let me know if I missed something.
I have created an automation in my automation.yaml file that corresponds exactly with what was explained in the homeassistant IFTTT site. I hope that I have made it RIGHT since I was not sure about it and I think that I might have issues because of it OR maybe not. I need someone to guide me on that.
But NOTHING work - I use the Trigger “my integration with IFTTT” and Nothing happened.
I hope you could help me with it and assist me to understand what is wrong.
This is what I have in my automation file: (just copied and paste it and made a little adjustment since I use an external yaml file - BTW I have tested the config file and it went OK)
To see if it’s reaching HA, go to the EVENTS page of Developers Tools. In the “Listen to events” enter ifttt_webhook_received and click START LISTENING. Then trigger the event in IFTTT. If/when it reaches HA you should see it on that page. It will show all the details of what was received.
Now, having said all that, my guess is you have the entity_id wrong in the IFTTT applet payload. I’m guessing the entity_id of the switch is notswitch.my.sw1.
Oh, and you can test the automation by manually firing the event on the same page, in the top left corner, something like this:
Thanks a lot, pnbrucknerPhil
I did NOT even know where to start and you guided me.
I have set a Listen to ifttt_webhook_received But I did NOT get anything back.
yes you are correct I have editted the payload the entity_name on the applet was copied and pasted so it should be good.
What should I do now?
Oh, and you can test the automation by manually firing the event on the same page, in the top left corner, something like this:
How can I do that? what should I put to be able to create the event?
EDIT: I was able to trigger the event from inside the events page BUT IFTTT did not do it.
The switch turned on OK. What is wrong? How can I make it work from IFTTT?
thank you.
I compared your IFTTT webhook setting to one I have and it looks ok. Of course I don’t know if you have the correct webhook id in the URL, so you might want to double check that.
Have you looked at the Applet in IFTTT? What does its activity show?
You are CORRECT!!!
Thanks - it is working now!! my webhook was not correct - I have added port number when it was no need for it. Now It shows applet ran and I have a check mark.
Thank you Phil!!!
BTW - If I want to add more applets - Do I need to create new automatons - OR all will work with the same?
That example is fairly generic and allows you to directly specify HA services and entity_id’s directly in the IFTTT applet payload. If that suffices, then the one automation can be used with multiple IFTTT applets.
However, it’s just an example. You’re free to put whatever data you want in the payload and create corresponding automations that look for that data. The event_type will always be ifttt_webhook_received, but the event_data will be whatever you put in the payload, or at least enough of it so the automation will respond to the right set of POSTs from IFTTT. Basically whatever you put in the event_data part of the event trigger must be present in the event for the automation to trigger. So you can use partial event data so the automation can handle multiple events. E.g., the one you’re using will respond to any IFTTT POST that contains a key/value pair of "action": "call_service".