The URL must work from your browser first. Only then it will work with IFTTT. In some cases, it will work with the browser but not IFTTT if hostnames are used in the URL. This is because your geo and the IFTTT server geo are different. You need to find the IP address that blynk-cloud.com resolves to and use the IP address in the URL.
Google Asst+IFTTT+Webhooks has been working for me for over 6 months flawlessly
I followed all the steps but i can´t get a response from google assistant, i think the problem is in the URL but im not sure about that, i typed : ping cloud.blynk.cc. in the command center and got this IP : 45.55.96.146 (México)
So my URL looks like this: http://45.55.96.146/MY_TOKEN/pin/V1
(It doesn´t works if i try to open that link from my PC)
I have a question: do we know that the [“0”] command sets the logical port to Low and [“1”] sets the port to High, what is the command to make a pulse on the port using the Google Assistant?
What do you mean by port?
Sending a 0 to a virtual pin will do just that, set the virtual pin to 0. What happens after that will depend on what is in the code.
To send a pulse, you will need to make it so when you send a 0 or 1 to the virtual pin what ever action you need to occur will, and then set the virtual pin back to the state you want.
For example, this is how I use it when activating my garage door opener. Sending a value of 1to the virtual pin with Google Assistant.
BLYNK_WRITE(V20)
{
int value = param.asInt();
if (value == 1)
{
Serial.println("Garage Opener Activated");
digitalWrite(led_pin, HIGH);//Active High Relay
timer.setTimeout(1000L, []() {
digitalWrite(led_pin, LOW);
Blynk.virtualWrite(V20, 0);
}); // END Timer Function
}
}
So in this example I am controlling virtual pin V43 which is the soffit light button on my blynk app - clearly make sure your button on the blynk app works first!!!
So I use the phrase ‘soffit lights on’ then a webhook to the public IP then your token and pin as shown
the method is ‘PUT’
COntent type is application/JSON
and the body is [“1”] so this turns
then you creat another applett to turn off ie changing trigger wording and put a 0 in the body.
Dont forget to save your applett and make sure it is turned on.
I also do this with a slider and alexa for a lounge dimmer just have an applet for 10, 20, 30 and so on. Then when you say trigger lounge 30 ie get 30% power - simples!!! and you see the slider move on the app.
You’re better using GET rather than PUT with IFTTT.
Also, when you test the URL in your browser you should use the IP address not blynk-cloud.com as there may be an issue with the IP address you’re using and you’d never know.