I’ve tried navigating to URL/API/webhook/ in a browser and I get a 405 error which this post suggested a solution to but I don’t know what or where the trusted_networks file is
I’ve also tried removing the port number from the IFTTT URL because I don’t need it when I navigate to my dashboard but that also doesn’t work
Make a web request
https://example.com/api/webhook/landscape-on-and-some-random-text
Post
text/plain
So, landscape-on-and-some-random-text can be anything you want. As long as it’s the same in your automation and your THAT statement it should work. The random text is to make it difficult for anyone to guess how to turn on your lights.
So I just completely bypass that whole entire documentation for the IFTTT integration with long lived access tokens and ect and I don’t need to copy paste a long hexadecimal string whenever I set up a webhook, I can just use plain text and add /api/webhook to the end of my url. That’s so crazy, probably not as secure. But I can just use long randomized text strings for each webhook
Thank you so much!
What about sending from HA to IFTTT? I have the ifttt.trigger service but what format is it expecting the data? No matter what I type I get an error message
You’ve reminded me I set this up several years ago when the IFTTT integration was a PITA. Maybe it still is. As for security, these aren’t nuclear launch codes. If someone guesses my randomized string I would just turn off the offending light and change the string.
I only use IFTTT to communicate from Google Assistant to HASS. I know there are other ways to do that, but IIRC, they all place limitations on how you need to say your command. With IFTTT, my standard is simply ‘Room Name’ followed by ON/OFF e.g. ‘Kitchen On’. Easy for everyone to learn. If there is more than one thing in that room, it would be, say: ‘Kitchen Table On’. FWIW, IFTTT is virtually instant when used like this.
As for going from HASS to IFTTT, I’ve never felt the need to do that. Once I’m in HASS, I can usually go wherever I want without involving IFTTT which adds a layer of complexity.