BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

How to integrate Blynk and IFTTT (Google Assistant)

#42

I’m pretty new to this. I’m trying to integrate this in a garage door too. Where do I add this code?

0 Likes

#43

Which code are you talking about?

You should already have code for the button widget. IFTTT/Google Assistant just simulates a button press.

You would most likely be better off starting your own topic, and asking a more specific question there. Be sure to add your code (properly formatted that is), the type of device you are using, wiring diagrams, etc… Basically anything that would be helpful for us to try and answer your question.

0 Likes

#44

I’m talking about the code you have for the garage door opener up above.

0 Likes

#45

Ok, that code gets added to the overall sketch. Basically anywhere except inside of another function.

It is your basic button widget type code. It reads the value of virtual pin 20, if it is 1, it then: sets a GPIO pin to HIGH, and one second later Sets the same GPIO pin LOW and then sets virtual pin 20 back to 0.

0 Likes

#46

I’m sorry, I don’t understand. Do I do this in the Blynk App or do I sudo nano a certain file on my Raspberry Pi?

0 Likes

#47

This code is for an arduino type system (arduino, ESP8266, etc). Not a Raspberry Pi.

0 Likes

#48

Oh ok. Thanks anyway.

0 Likes

#49

As mentioned before, try creating your own topic with all relevant information. I am sure some of the people with Pi experience may be able to help.

1 Like