IFTTT and Arduino Cloud. How to push a trigger to Arduino - not the other way around

Hi -

I'm building a device that can keep track of when family members are in the house. The way I plan to do this is to have Arduino to get a notification when a family member connects to the home Wi-Fi. I have a Google Wi-Fi mesh network and have configured IFTTT to trigger an event when someone connects to my network. (Currently its configured to send me an email but its a trivial change to have it make a web request or one of the other many things IFTTT can do) . I have read dozens of tutorials on how to have Arduino call an endpoint on IFTTT to trigger an event when you push a button or read a value on a sensor. What I'm not sure how to do is the other way around. I want a variable to be set in my Arduino code when IFTTT gets a trigger from my Wi-Fi. I know how to register my Arduino 1010 MKR to Arduino Cloud and create a Thing so that when I update the Thing on the web my running Arduino code will react. What I'm not sure about is how to update that Thing from an IFTTT trigger. Can this be done? The only thing I can think of is to use the Arduino Cloud API and have a webhook from IFTTT call the API endpoint to update the thing with a value .. but that doesn't seem right ? or is it ? Is there a better way? The fact that I haven't found much about this on the forum makes me think I'm barking up the wrong tree. Any Ideas ?

If IFTTT can hit a web endpoint, you could have an Arduino running a web server for it to call. The downside is that you would need to poke a hole in your firewall and use a dynamic DNS service to ensure that IFTTT can find your Arduino by name when your ISP changes your IP address.

It might be worth taking a look at Blynk too.

I actually got this working using the MQTT service from io.adafruit. I was able to have IFTTT send a trigger to adafruit and have my arduino subscribe to the MQTT feed to receive the events and update variables in my code.

Adafruit didn’t have a library that supported my board so I helped them complete one.

Works great!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.