Virtual Pin like push button for IFTTT

Hello Blynkers, I try to solve my problem since few hours and I don`t have idea how to do it.
I would like to use IFTTT for send RF 433mhz power sockets signal, how to send variable as “push button” instead “switch” ?

Now in my project I have something like this, and it works when I push V0 push button, but when I try to use IFTTT or Blynk`s Timer widget I have still “1” till the end.

BLYNK_WRITE(0) {  
 mySwitch.send(5238323, 24);
}

I tried to do something like this, but it doesn`t work:

BLYNK_WRITE(0) {  
   int pinData = param.asInt();
   if (pinData == 1) {
     mySwitch.send(5238323, 24);
     timer.setTimeout(100L, []() {
     mySwitch.send(0000000, 24);
     });
   }
 }

any help, how to send “push signal” to send RF when Virtual Pin == 1 and “push signal” when Virtual Pin == 0 ?

Search this forum for both topics separately (IFTTT & RF 433mhz) learn how one or the other is used in others projects and topics and then combine them in your own.

Thank you for your answer. I spent all Sunday to read about SimpleTimer, Virtual Pins, 433mhz and IFTTT. I think that IFTTT is no problem now for me, but I can`t find the way to do something like on this picture:

v0

I found your answer in another post, when you suggest to use such commands:

BLYNK_WRITE(Vx) { // when Button Widget or Web API called
  if (param.asInt() == 1) {
    digitalWrite(6, HIGH);
    timer.setTimeout(100L, []() {  // reset pin in 100ms
      digitalWrite(6, LOW);
    });
  }
}

But in my case I would like to send some RF code and I don`t know command how to send “release button” after 100ms and no longer send “mySwitch.send(5238323, 24);”.

I almost finished my home automation based on 4x NodeMcu + Blynk and this it the only thing which I can`t implemate :frowning_face:

BLYNK_WRITE(V8)
{
  int pinValue = param.asInt();
if (pinValue==1){
         mySwitch.send(5238323, 24);
Blynk.virtualWrite(V8, 0);    
} else {//break
  }   
}
1 Like

Thank you, I will check it.