How to integrate Blynk and IFTTT (Google Assistant) for ESP01s

i used ESP01s for my first home automation project . and i connect it to blynk server using this code

ESP8266-PINOUT

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "token code";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "my home wifi ";
char pass[] = "pw";

void setup()
{
  // Debug console
  Serial.begin(115200);

  Blynk.begin(auth, ssid, pass);
}

void loop()
{
  Blynk.run();
}

all working properly i can on off my relay using blink app . i used GPIO0 pin in the ESP01s for control the relay . now i want to connect it to my google assistant . i used IFTTT for that

in applets i used blynk webhook and google assistant .

http://188.166.206.43/my auth code/update/??

01 my first question how i put GPIO ( that pin GPIO0) to that code ?
02 in IOS blynk app in webhook only can idently V pink i cant find GPIO0 pin. how i name in that

please i want step by step . Thank you

  1. Please format your code using triple backticks (```) (before and after)
  2. I don’t understand this comment:

how i name GPIO in that code ?

  1. V refers to virtual pins - D refers to physical pins on the board.
1 Like

ESP8266-PINOUT

i mean that pin GPIO0 pin how i put it to this

http://188.166.206.43/my auth code/update/ ?? for the webhook in blynk IOS app

you mean what code webhook code or ESP01s code ? please explain me more

thank you

https://blynkapi.docs.apiary.io/#reference/0/write-pin-value-via-get/write-pin-value-via-get
Above is a link, you can to use this formule: http://139.59.206.133/token/update/D0?value=1.
GPIO 0 is actualy the D0 pin.

2 Likes

Thank you very much its working now .

this code worked to me

http://IP/you auth code /update/D0?value=1 for that GPIO0 pin in ESP01s

1 Like

I am facing the exact same problem. But your solution didn’t work for me. I am connecting IFTTT for Google Assistant. Will you please help me if I have missed any step?

@PRR are you using blynk legacy or iot ?

I’ve used Blynk and it’s functioning successfully with app in my mobile. In Blynk app, I’ve used Digital Pin gp0

Which version of blynk are you using buddy ?

2.27.32 (04-09-2021)

You are using blynk legacy

First the url should be like this : http://your blynk cloud IP/4ae3851817194e2596cf1b7103603ef8/update/D8?value=1

Thanks buddy.
Is this command specific to my version of Blynk?
Does D8 correspond to gp0 in Blynk?
Value=1 is for ON?
How did you get the authorisation code?

Yes

You mean the auth token ?

Yes. My authorisation token is different than what you mentioned.

It was just a sample url, you should replace the auth and pin number with your own.

I’m sorry to disappoint you.
Because, I’m there where I started with my problem.
I don’t know what digital Pin to use corresponding to gp0 in Blynk setting. Whole string of commands are known to me but for digital Pin number.
Thanks for input.

You should use pin 2 instead of pin 0

@PRR does it work ?

In Blynk, only pin that works is gp0 and nothing else.