I’m pretty new to this. I’m trying to integrate this in a garage door too. Where do I add this code?
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.
I’m talking about the code you have for the garage door opener up above.
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.
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?
This code is for an arduino type system (arduino, ESP8266, etc). Not a Raspberry Pi.
Oh ok. Thanks anyway.
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.