BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

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