Blynk IFTTT , ¿ possible to send push button like command?

Hello Blynk Community

I am connecting my room air freshener with google home, Ifttt and blynk. I am able to make the IFTTT part happen. But the only problem is I can either turn it on or off. I don’t know if it’s possible to send a pulse signal, I mean it turns on for few millisecond and then turns off automatically?

I am sending a PUT command, with application/json and in the BODY “[< < < 1 > > >]” . Is it possible to send a push button like command on the BODY part of IFTTT?

http://46.101.143.225/**108448ca79061c327/pin/D12

I am using a NodeMCU.

Thank you!

@Amantevez now that Blynk has things like the GPS widget is there really anything that you need from IFTTT?

@Costas Yes, I still need IFTTT so that I can control my home appliances with voice recognitions using google home.

Solved!

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
int ledPin = 12;     //responde a  GPIO D6 de NodeMCU
char auth[] = "***************************************";


char ssid[] = "*************";
char pass[] = "**************";


void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
}


void loop()
{
  Blynk.run();
  if (digitalRead(ledPin) == HIGH) {
    delay (200);
    digitalWrite(ledPin, LOW);
  }
}

Now the digital pin turns high whenever a request is made, but comes down to low state after 200 ms.

2 Likes

Aman, can you maybe help with the IFTTT part ? I use maker channel, ip instead dns name but whatever I try nothing works. http://blynk-cloud.com/XXXXXc746cb445daec3509eXXXXX/update/D4?value=0 works fine (although I also would like a push with this request)

Thanks in advance