Device isn't online yet

 /** Voice controlled house lights with Google Assitant
 *  Instructable contest
 *  Mridul Mahajan
 */
/*************************************************************
  Download latest Blynk library here:
    https://github.com/blynkkk/blynk-library/releases/latest

 */
#define BLYNK_PRINT Serial
#define EspSerial Serial1

#include <SoftwareSerial.h>
#include<SPI.h>
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

// You should get Auth Token in the Blynk App.
char auth[] = "guwbokZWg1UNAuyUcXYtk_GI3s2ck2R2";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "MMVS";
char pass[] = "123";


SoftwareSerial EspSerial(2, 3); // RX, TX of ESP8266

String s;    //to store incoming text ingredient

BLYNK_WRITE(V0)     // it will run every time a string is sent by Blynk app
{
  s=param.asStr();
  Serial.print(s); //string sent by Blynk app will be printed on Serial Monitor
   if(s=="on")
  {
    digitalWrite(7, LOW);       //Pin 7 has been set in setup()
  }
  else if(s=="off")
  {
    digitalWrite(7, HIGH);
  }
  else{
    Serial.print("Say on or off");
  }
}
// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600

ESP8266 wifi(&EspSerial);

void setup()
{
  // Debug console
  Serial.begin(9600);
  pinMode(7,OUTPUT);       //Pin 7 is set to output
  // Set ESP8266 baud rate
  EspSerial.begin(ESP8266_BAUD);
  delay(10);
 
  Blynk.begin(auth, wifi, ssid, pass);
}

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

The aim of my project is to be able to make a switch which can be controlled by google assistant…:
I’ve used

  1. 5V relay
  2. esp8226
  3. arduino UNO
    I’ve created an IFTTT Applet and blynk project in the app.

This line of code shouldn’t be in your sketch, as the Uno doesn’t have a Serial1 port.

What type of ESP8266 board are you using, and how have you wired that and the Uno together?

Pete.

Thanks for replying Pete!!!
ESP8266 wifi board is what I’ve used
Connections between Arduino,ESP8266 and relay module:

Arduino <-----------------------------------------------> ESP/Relay

Pin 7 ------------------------------------------------------- IN of relay

Pin 2 -------------------------------------------------- RX pin of ESP

Pin 3 -------------------------------------------------- TX pin of ESP

RESET-------------------------------------------- RESET pin of ESP

GND 1 -------------------------------------------- Ground pin of ESP

GND 2 -------------------------------------------- Ground pin of relay

+3.3V ------------------------------------------------------ Vcc of ESP

+5V ------------------------------------------------------ Vcc of relay

With serial communications you always connect Rx —> Tx and vice versa, so pin 2 of your Uno (SoftwareSerial Rx) needs to go to Tx on your ESP-01

Your connection of the two Reset pins is a new one on me and makes no sense to me, but you seems to be missing a connection between CH-PD on the ESP-01 and 3v3

Pete.

I was initially guided by :

https://www.instructables.com/id/Control-House-Lights-With-Google-Assistant-Using-A/ … so could you please help me with this one…

And 3v3 pin of the esp is connected to 5V port of the UNO

I think you should discuss that with the author of the instructable.

Pete.

Well thanks for the advice Pete!
But since he isn’t responding can we find out our own version of the solution for this problem…

I’ve given you my thoughts on what’s wrong, but your response was “but the guide I’m following says to do this instead…”

Pete.

Oh! Okay Gotcha Thanks!
Have a Nice day!