In this project you’re going to monitor the status of a door using an ESP8266. The goal of this project is to show the endless possibilities that this $4 WiFi module offers when integrates with a free platform that I’m about to show you.
Before continue reading this project, please complete the following tutorials or use them as a reference:
- How to get started with the ESP8266
- How to Install the ESP8266 Board in Arduino IDE
- Monitor Your Door Using Magnetic Reed Switch and Arduino
If you like the ESP and you want to do more projects you can read my eBook Home Automation Using ESP8266.
Let’s get started!
First, watch the video demonstration below
About IFTTT
In order to accomplish this task you have to sign up for one free service called IFTTT which stands for “If This Then That”.
IFTTT is a platform that gives you creative control over dozens of products and apps.
You can make apps work together. For example when you send a request to IFTTT, it triggers a recipe that sends you an email alert.
Creating Your IFTTT Account
Creating an account on IFTTT is free!
Go the official site: https://ifttt.com/ and click the “Sign Up” button in top of the page.
Complete the form with your personal information (see figure below) and create your account.
After creating your account, follow their getting started tutorial.
Open the Applet
I’ve created an Applet that integrates perfectly in this project and you can also use it.
If you’re logged in at IFTTT and you open this URL below to use my Applet instantly:
Press the “Turn on” button:
Next, you need to grant access permissions:
Let your IFTTT account connect to your Gmail account. A new page loads when you finish connecting your Gmail.
Complete the Applet
Fill the Applet with your own information. Follow these instructions:
- Type “door_status” in your event name
- Add an email address
- Edit the subject and body of your email. Do not delete the Value1 in the subject
- Press the “Save” button
Now, go to this URL: https://ifttt.com/maker_webhooks and open the “Settings” tab.
Copy you secret key to a safe place (you’ll need them later in this project). In my example my secret key is: b6eDdHYblEv2Sy32qLwe
Test Your Applet
Let’s test if your request is working properly. Replace YOUR_API_KEY from the following URL:
https://maker.ifttt.com/trigger/door_status/with/key/YOUR_API_KEY
With your API KEY:
https://maker.ifttt.com/trigger/door_status/with/key/b6eDdHYblEv2Sy32qLwe
Open your URL with your API KEY in your browser.
You should see something similar to the preceding Figure. Then go to your email client and new email should be there!
Parts List
Here’s the hardware that you need to complete this project:
- ESP8266 – read Best ESP8266 Wi-Fi Development Boards
- FTDI programmer
- 1× Magnetic Reed Switch
- 1× 10kΩ resistor
- 1× breadboard
- Jumper wires
You can use the preceding links or go directly to MakerAdvisor.com/tools to find all the parts for your projects at the best price!
Schematics (3.3V FTDI Programmer)
The schematics to upload code to your ESP8266 are very straight forward. You only need to establish a serial communication between your FTDI programmer and your ESP8266 to upload some code.
Uploading your ESP8266 code
Having the ESP8266 add-on for the Arduino IDE installed (How to Install the ESP8266 Board in Arduino IDE).
Go to Tools and select “Generic ESP8266 Module”.
Copy the sketch below to your Arduino IDE. Replace the SSID, password and the IFTTT API Key with your own credentials.
/*
Created by Rui Santos
All the resources for this project:
https://randomnerdtutorials.com/
Based on some ESP8266 code examples
*/
#include <ESP8266WiFi.h>
const char* ssid = "YOUR_SSID";
const char* password = "YOUR_PASSWORD";
const char* host = "maker.ifttt.com";
const char* apiKey = "YOUR_IFTTT_API_KEY";
int pin = 2;
volatile int state = false;
volatile int flag = false;
const char* door_state = "closed";
unsigned long previousMillis = 0;
const long interval = 3000;
void changeDoorStatus() {
unsigned long currentMillis = millis();
if(currentMillis - previousMillis >= interval) {
previousMillis = currentMillis;
state = !state;
if(state) {
door_state = "opened";
}
else{
door_state = "closed";
}
flag = true;
Serial.println(state);
Serial.println(door_state);
}
}
void setup() {
Serial.begin(115200);
delay(100);
Serial.println("Preparing the Door Status Monitor project...");
pinMode(pin, OUTPUT);
attachInterrupt(digitalPinToInterrupt(pin), changeDoorStatus, CHANGE);
Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {
if(flag){
Serial.print("connecting to ");
Serial.println(host);
WiFiClient client;
const int httpPort = 80;
if (!client.connect(host, httpPort)) {
Serial.println("connection failed");
return;
}
String url = "/trigger/door_status/with/key/";
url += apiKey;
Serial.print("Requesting URL: ");
Serial.println(url);
client.print(String("POST ") + url + " HTTP/1.1\r\n" +
"Host: " + host + "\r\n" +
"Content-Type: application/x-www-form-urlencoded\r\n" +
"Content-Length: 13\r\n\r\n" +
"value1=" + door_state + "\r\n");
flag = false;
}
delay(10);
}
After modifying my sketch upload it to your ESP8266 (If you can’t upload code to your ESP8266, read this troubleshooting guide).
Final Circuit
Now follow the schematics below to create your Door Status Monitor.
Demonstration
For prototyping/testing you can apply the magnetic reed switch to your door using Velcro.
Now when someone opens/closes your door you get notified via email (watch the video at the beginning of this project for a live demonstration).
Wrapping Up
Do you have any questions? Leave a comment down below!
Thanks for reading. If you like this post probably you might like my next ones, so please support me by subscribing my blog.
P.S. If you got stuck during this tutorial make sure you read “ESP8266 Troubleshooting Guide“
Cool project!
Thank you!
Thank you Rui,
Great job, as always 😉
Thank you Roger!
Very good an easy,thanks for this cool project!!!And….keep on sending….please…
Thank you! I will send more soon
Good article, but I don’t see the sketch anywhere. It would be kewl to see it. Thanks.
Which browser are you using?
Can you try again? Or open this link: https://raw.githubusercontent.com/RuiSantosdotme/Random-Nerd-Tutorials/master/Projects/Door_Status_Monitor_using_the_ESP8266.ino
That worked Rui – Thanks Again 🙂
What kind of component beside 10kΩ resistor on mini breadboard?
Kweeelll project. I’m going to attempt this.
Can I convert to python language?
I’m using a Magnetic Reed Switch, I have a link to that sensor in this blog post in the “Parts Required” section.
You can read more about that sensor in this project example: https://randomnerdtutorials.com/monitor-your-door-using-magnetic-reed-switch-and-arduino/
Amazing project…Great work !
Thank you!
What about Energy consumption? I guess that code inside loop will drain the battery soon.
Shouldn’t be better to use the sleep function?
Thanks!
Hi Javier,
Power consumption wasn’t a concern in this project and I’m using the ESP8266 connected to a wall power supply.
But the sleep function might be a great enhancement to this project
Thanks!
This is great, Rui. I’ve been a fan since I first started tinkering 🙂 I was wondering if this works the same way as a bluetooth HC-05 module ? I have tried something similar but i ran it off my phone, the only problem was that had to be on 24×7. Does this module have a workaround where it turns the entire setup on and off based on PC messages ?
Hi Assad,
Thank you for your continuous support!
The HC-05 is a bluetooth module that it’s not connected to the internet. The ESP8266 is a WiFi module, so it’s actually connected to the Internet to send those emails.
This project is also running 24×7, but you can stop and restart the project whenever you feel like.
Rui
Olá,
great! I’m thinking to use this with a washing machine to get a notification of the end of the laundering, but I will get the info on the LED END notification for this i’m thinking use a photo-resistor, you now if I can simply change the reed switch by the photo resistor?
Necessary to change the code?
You need to use an Analog pin with your photoresistor to determine the value.
And the ESP-01 doesn’t offer that kind of pin.
Here’s more information on that subject: https://randomnerdtutorials.com/esp8266-adc-reading-analog-values-with-nodemcu/
Excellent, THANKS RUI !!
I will give it a go!
Thanks Rod! Let me know your results!
Thanks for another great tutorial Rui
Another great tutorial and successful project built, thanks Rui.
Thank you Geoff!
Hi can someone please clarify the following
const char* ssid = “YOUR_SSID”;
const char* password = “YOUR_PASSWORD”;
I know the SSID of my wifi modem as it comes up on the PC Task bar.
Is “YOUR_PASSWORD” the MODEM password or is it the “Network KEY”
When connecting a friend to my home network they search for the SSID and then enter the “Network KEY”. I assume its the network KEY I need here NOT the modem password. My problem is Ive tried both and neither work. So I have another problem but I need to get the password correct. Can anybody confirm this.
Hi,
The SSID is the name that you see in your computer as the network name.
And the password is the same password you need to enter in order to your router with any device…
How are you sure that your ESP isn’t connecting to your router?
What do you see in your Arduino IDE serial monitor at a baud rate of 115200?
Hi Rui
I found the problem I had the CPU set at 80 MHz.
The Arduino Serial Monitor output is ..
WiFi connected
IP address:
10.0.0.105
1
opened
connecting to maker.ifttt.com
Requesting URL: /trigger/door_status/with/key/c8O
0
closed
connecting to maker.ifttt.com
Requesting URL: /trigger/door_status/with/key/c8O
Looking good now.
Thanks
Olá Rui! Tenho acompanhado seus excelentes tutoriais;
Mas, gostaria de uma informação: Qual a diferença deste ESP8266 para o Módulo Bluetooth HC-06 ou 05?
Obrigado
This worked great with the “ESPDuino Development Board ESP13 UNO R3 With Wifi” from Banggood. This was also my first time using an IFTTT account. I really appreciate your time in posting this for all of us.
Hi Wayne,
Awesome! I’m glad it worked as expected. Thanks for sharing,
Rui
pinMode(pin, OUTPUT);
Please, is that correct ? GPIO_2 shouldn`t be and INPUT pin in order to catch the sensor status ? Thank you very much for your work.
Please ignore my previous question about pinMode(pin)… I`ve just read about attachInterrupt function. It`s clear now. Sorry and thanks again !
not sure what i am doing wrong when Test the url I get cogradulations but no email is sent or recieved
Did you change the default URL in the IFTTT recipe?
got it working it was my gmail not connecting. I have to say this is amazing and thank you. I am using it as a sump pump monitor with a little float switch to email me when water level gets too high (IE the sump pump failed). I am using a NodeMcu and the arduino ide works perfectly on it. what I am trying to figure out now is can it be modified to look at a second gpio for my second sump pump. then send a email as to which pump has failed. once again thank you .
alan
You’re welcome Alan! I’m happy to hear that it’s working as expected 🙂
Got your message today, but does not matter, never too many projects using ESP8266.
Thanks a lot gonna try them soon.
Thanks for reading!
Rui
Hi
Thanks for the great project
Thanks!
Hi thanks for the great project
But I am using the esp-12 can you please tell me the codes and schematic for that on my gmail
You can download from this page
I’m using ESP8266-12e and finding it to be very unstable, sometimes it doesn’t boot well and I have to restart it, many times it completely pukes and dumps the stack. Is this normal for the 12e’s? I’ve worked with ESP8266-01’s and have not had this kind of instability. Any thoughts would be appreciated. Also, I can’t get the POST to work, it basically does nothing, but if I use GET code it works flawlessly. Does anyone have a sample of what the JSON POST should look like so I can make sure mine is right?
This can happen due to power issues…
Make sure you supply enough current to have a stable ESP8266 running.
Thanks,
Rui
Hi Rui,
Would be possible to have it showing up in DOMOTICZ? If yes, how would be the code? Could you help? 🙂 Tks and congrats for the project!
Sure, I’ve never used the Domoticz platform, but you simply send an HTTP request to the Domoticz platform
Thanks so much for this example and code.
I even added a few lines of code to make a beep (using a piezo) when the door opens and closes.
I’m glad I could help! Thanks for reading,
Rui
Great project! There is a problem I’ve found: if GPIO2 is low at boot time, the ESP-01 doesn’t boot, so you cannot boot the ESP while the door is open.
Hi,
is it possible to see the status of the door with no concern of getting a mail ?
i want to monitor if a door is open after 4 pm in a school classroom and don’t care to see all the mails if it was open or closed during the day
thanks
ben
Yes, instead of triggering the email action every time the door closes, you can add an RTC to the ESP8266 (or check the time online).
Then, it only trigger the email action if it’s after 4PM
Great project. I looking for it.
Can you advise how to do it with Sonoff(smart Wi-Fi switch 10A) Thank you!
Thanks for the suggestion.
Right now I only have these tutorials related to the Sonoff: https://randomnerdtutorials.com/category/sonoff/
I have the Sonoff. I want to do the Door project. How should I wiring and what (GPIO) need to change in the code? Thank you for support.
Thanks. Please advise.
1.I sould change in sketch to int pin = 0 (for getting email from button) or int pin = 14(for getting email from door sensor) ;
2. upload you sketch to Sonoff.
Is it correct?
I did it with Sonoff. I have one question. If I open and close the door fast I didn’t get two emails. only one. After it emails are not correct.
Hi Rui,
Sorry. It’s not so good. Rui, can you change the sketch. I’d like to know status the reed switch exactly -close or open. Thank you.
close
Rui,
How to know close: contact or open?
Simply read the current state of the reed switch
No, for me it’s difficult. You did the good project and posted it in detail. I’ve repeated it only. Would you like to change the sketch with “read the current state of the reed switch”?
And GPIO for led (door state) (I use sonoff)
Thank you.
I am stuck. i have completed testing of maker app with my key , did the firmware flash -nodemcu firmware programmer, loaded sketch with my credentials (SSID,password,key). Connected the circuit as shown by you, but still cannt get the esp to trigger/send a msg to my gmail acc. i thing i did notice, after loading sketch, i tried sending AT commands through serial monitor, not getting an response back. Not sure were i went wrong. ( i am using 2 AA to power up my project)
When you open the IFTTT URL in your browser, do your receive an email?
yes, i can set a trigger through ifttt and receive a msg but with esp chip, it doesnt do anything. Connections are done as per your given circuit, but still it doesnt trigger. I can load the sketch through Ardunio on to esp chip , but later when connected to reed circuit, it powers up, but doesnt do anything. Also as mentioned earlier, i am not able to test the AT commands on the esp chip. is it normal ?
pls reply/help …
Hello Rui,
Congratulations with this project. I buy all the parts and replicate your project:)
Everything is working good. But I buy the wrong switch, when I open the door
I get the message “door closed” and the message “door open” when closed.
Do I need to buy a other switch or can I alter something in the code?
Rui, one more question: Can you alter the code, so I can use the same
principle for my mailbox with a Microswitch instead? To receive only one
message when the postman open the hatch. And maybe implement “Pushover”
beside gmail. Very exciting!
Kind regards,
Thanks for reading,
Try switch the logic in my code to use give you the messages in reverse. I can’t create custom projects at the moment due to time constraints..
Thanks,
Rui
It looks like GPIO2 will be low if the door is open during boot. Can you confirm? I might suggest to set serial to TX only and use GPIO3 (ESP RX) for the reed switch.
Nick, I have the same issue. Please read my previous comments.
Try close and open one time fast. After it will be correct email. I can’t fix the sketch. We need “Simply read the current state of the reed switch”
Now it changes email any time when was event and not depend on the state of the reed switch.
Hello thanks for your post.
I think is better to do work this project on battery ans use interupt To wake up esp8266 i see the esp8266 work with only few micro-amp.
Sorry for my english i’m french.
Exactly, that’s the best solution
Regards,
Rui
what is name this circuit
This circuit was created using Fritzing
Can u plz check it once
#include
#include
#include
#include
#define USE_SERIAL Serial
#define trigPin 9
#define echoPin 10
#define piezoPin 8
ESP8266WiFiMulti WiFiMulti;
int normalDistance;
boolean triggered = false;
long duration, distance;
void setup() {
USE_SERIAL.begin(115200);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(piezoPin, OUTPUT);
long duration, distance;
while (millis() 0; t–) {
USE_SERIAL.printf(“[SETUP] WAIT %d…\n”, t);
USE_SERIAL.flush();
delay(1000);
}
WiFiMulti.addAP(“hema”, “hema9966”);
}
}
void loop() {
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance= duration*0.034/2;
USE_SERIAL.print(“Distance: “);
USE_SERIAL.println(distance);
if (distance 0) {
// HTTP header has been send and Server response header has been handled
USE_SERIAL.printf(“[HTTP] GET… code: %d\n”, httpCode);
// file found at server
if(httpCode == HTTP_CODE_OK) {
String payload = http.getString();
USE_SERIAL.println(payload);
}
} else {
USE_SERIAL.printf(“[HTTP] GET… failed, error: %s\n”, http.errorToString(httpCode).c_str());
}
http.end();
}
}
}
ultrasonic and buzzer are working in (Tools <board<Arduino/Generic uno)
and wifi module is working in onlt(Tools <board<(any esp8266 in down column)
when i mix ultrasonic and buzzer nothing happening)
any idea
thanks
Has anyone tried this project using the Witty board? I’ve built it using the board shown, and it works, but would like to expand it using a Witty to send light levels.
I’ve never used that board before Andrew.
Thanks for asking,
Rui
awsome with some -01 projects.
would it require a lot if the unit should go deepsleep and awake on the magnets seperating? then send the IFTTT and go back to sleep again?
Hi Rui. In your code you have the pinmode for “pin” as OUTPUT. Shouldn’t it be INPUT?
Great tutorial, thank you. Is it possible to connect more then one ESP8266 to applet so I can monitor all my doors in my house. Do I need to change door_status but use the same key?
You could use the same applet and the same API key in all your devices.
In your post request you could pass a value that would indicate in the value which ESP posted that event…
Looks like a fun project. I am really new to this type of connection to the web so I am not too knowledgeable on some of the details. On the final schematic I do not see a power source. What voltage is required and how it it connected?
The ESP-01 uses 3.3V
Good morning: Thanks for your project. When I replace the password in the web address it says “Congratulations! You’ve fired the door_status event” but I do not receive the email. I do not know how to do it to receive it.
Hi Braian.
Did you test your IFTTT applet before uploading the code?
If you’re not receiving an email, it may be a problem with your applet.
Exactly, until I get the text “” Congratulations! You’ve fired the door_status event “but I never receive the email in gmail. Please do not know how to continue
Hi again.
In your IFTTT account, go to “Activity” in the following link: ifttt.com/activity
Make sure your applet is turned on. Also, in the “Activity” section, you can see if something is wrong with that specific applet.
It may tell you why it is not sending the email.
I hope this helps.
i am using this 8266 board.
http://www.instructables.com/id/Getting-Started-With-ESP8266LiLon-NodeMCU-V3Flashi/
Can you tell me which gpio you are using?
Hi. We’re using esp8266-01, and we are using GPIO2.
If you want to use that esp8266, you need to use GPIO2(pin marked with D4).
I hope this helps.
Regards,
Sara 🙂
This is great. Can you use deepsleep on this for those running off batteries? Also use mqtt instead of email? I have the ESP8266–01
Yes, you should be able to do everything that you’ve said. This project should run on batteries and can easily make MQTT publish messages.
for me it’s not working,
it is triggering the url from ESP, but when i trigger the url from the browser, it’s working for me.
Please help me.
Make sure you’ve added to the course the exact URL as I illustrate and double-check your SSID/password.
Hi, am not getting any email as notifications, but testing result getting ok
Hi.
You need to provide more information about your problem, so that we can help.
Regards,
Sara
Hi Rui,
Why, am not getting enough mail notifications of this project, when am testing by URL, it shows congratulations ,n fire it but mail not receiving.
Pl send me reply by my mail
Thank you,
The test url is HTTPS:// but the ESP8266 code says it is using port 80 http:// I am not sure where to change this in the code.
IFTTT supports both HTTP and HTTPS requests, so it should work with HTTP…
Regards,
Rui
Sorry but the Ifttt directions are no longer working.
Sorry I am a dumb guy, figured out the mail problem
Hi.
That’s ok!
I’m glad it is now working!
Regards,
Sara 🙂
Hi Rui Santos,
Dear I m getting error, when event is triggered from my laptop & the email is not sent to my mail box at given email address. Web browser message ” Congratulations! You’ve fired the door_status event ” is OK.
In activity window I get Action Skipped Error.
Action skipped after 5 action errors.
Please help me to resolve this problem.
Thanks & kind regards,
Yawar Saeed
Hi Yawar.
I think it may be some problem related with IFTTT services. I’ve never faced that error.
Can you take a look at the IFTTT error glossary and see if it helps?
https://help.ifttt.com/hc/en-us/articles/115004914234-Activity-feed-error-glossary-
Regards,
Sara 🙂
why I cannot get the email? I have put my nodemcu ssid or my ssid home wifi? I dont understand,, sorry I still new in this
Hi.
Did you test the applet? Did it worked well?
Don’t forget that you need to insert your own API key on the following line:
const char* apiKey = “YOUR_IFTTT_API_KEY”;
Regards,
Sara 🙂
Great tutorial, thank you!!!,
what kind of component is that near the resistor on the breadboard?
Best Regards
Hi Simone.
It is a magnetic reed switch.
https://makeradvisor.com/tools/magnetic-reed-switch/
Hi Sara,
thanks for your replay! 😉
Why is was used a 10kΩ resistor?
Is it fundamental?
Best Regards,
Simone
Hi.
The reed switch works like a pushbutton. So, it is advisable to use a 10k resistor to prevent false positives.
It is advisable, but not mandatory. However, you may have an unexpected behavior without the resistor.
Regards,
Sara 🙂
I have similar setup using esp-8266-12 setup to email me using IFTTT when garage door changes from open to close or close to open. What I would like is can one esp-8266 communicate to another esp-8266 over my home wifi? They are too far apart to communicate directly. I want the second esp-8266 to then send hardwired signal to my home security system on the garage door status. Thanks.
Hi Paul.
They can communicate using your home Wi-Fi if both boards have access to the same Wi-Fi network.
Hey Sara and Rui!
Thanks for this very easy tutorial! Its my first project with an ESP-01 at all and I got the ESP programmed in unter 2h, inc. communication to the serial monitor stating the connection to Wifi and the triggering of the IO (just connecting it to 3.3V).
Also triggering the IFTTT applet to send a mail to my inbox works via my browser!
But doing it via the ESP does not work. Is there any configuration neccessary on my router to allow the ESP going through?
KR
Maik
Hi Maik.
Thank you for reaching out.
The only thing you need to do is to include your network connections (SSID and password) on the code and insert your own unique API key on the code.
We haven’t done any other configurations.
Are you getting any errors on the serial monitor?
In your IFTTT account, you can go to “Activity” to see if the IFTTT is receiving your request.
Regards,
Sara
This is really useful. I’m stuck with IFTTT – I get the website confirmation but no emails to me gmail account. Any suggestions?
Hi Brian.
Are you using a Gmail account?
Using the Documentation tab in Webhooks I am able to sen a test email to my gmail account using door_status in the event box. Just not working from the esp8266. The serial monitor reports opening, closing and connection to ifttt.com.
It does NOT send any e_mail. The activity says : applet skippedbecause the url must begin with HTTP….
Any help to solve the problem please ?
Thanks
Ambro
Hi.
replace this line on the code
const char* host = “maker.ifttt.com”;
with
const char* host = “http://maker.ifttt.com”;
I haven’t tested it, but it should solve the problem.
Let me know if it works.
Regards,
Sara
Hi, great tutorial! Please can you tell me why are you using resistor? Can it be done without resistor? And can it be done with Wemos D1 mini instead of esp8266? 🙂 Thanks!
Hi Timothy.
Yes, you can use a wemos d1 mini instead.
You can use the circuit without resistor, however, you’ll be more likely to have false positives.
Regards,
Sara
Hi
I trying this on my wemos d1 mini, not getting there quite yet 🙂 I just wonder where to add my magnetic reed switch?
What/where is int pin = 2; for reed switch? I got the notification in my web browser (pc) but no mail either pc or phone.
Which magnetic reed to use, NO or NC?
Hi.
You need to connect the reed switch to GPIO 2 (marked D4) on the board. Check the Wemos pinout here: https://randomnerdtutorials.com/wp-content/uploads/2015/01/esp8266-wemos-d1-mini-pinout-1024×677.png
We’re using normally open reed switch. (but you can use either one, just need to change the logic on the code)
Regards,
Sara
Hi
Thanks for answering😁 got it going now but the e-mail does not work. It works in browser but I dont get any mail. My e-mail is correct in ifttt. Please hjelp 😁
Hi
I guess this is why : “Triggers for the Gmail service are inactive”
status.ifttt.com/incidents/0pb2pp4l3bx1
Frode
Hi,
Confirmed – IFTTT has disabled the trigger for Gmail.
Gmail actions may fail for some users
Identified – The issue has been identified and a fix is being worked on. It will require a large rework in how Gmail is implemented, we appreciate your patience as we get Gmail up and running for everyone.
May 15, 16:51 PDT
Hi.
It seems that the Gmail option is temporarily not working. I’ve tested and it is not working for me either. There is a problem with the gmail services on IFTTT at the moment.
However, there is an alternative.
When you’re creating a new applet, after clicking the “that” word. Instead of searching for gmail, search for “email” and select the “email” option.
Then select the “Send me an email” option. Proceed as described in the tutorial then. That worked for me a few days ago.
Thanks.
Regards,
Sara
Good day,
I am struggling to get notifications from this event. Is there a workaround to get notifications to a gmail account?
I tried your alternative suggestion, but without success.
Thank you for great projects!
Kind regards
Louis
Hello Louis, instead of using the gmail account, search for the “Email” service on IFTTT. It works exactly the same.
I hope that helps!
Regards,
Rui
would it be possible to hook up multiple magnetic reed switches to a single esp8266 in order to monitor multiple doors from a single esp8266? if possible, would the wire length be an issue?
Hi Tim.
If you’re using an ESP-01, I don’t think you’ll be able to attach many reed switches.
If you’re using another ESP8266 like the NodeMCU Kit, you should be able to attach more reed switches.
As for the wire length, it can be an issue, but you have to experiment yourself and see the results.
Regards,
Sara
Sara,
thanks for the quick reply! yeah, i was talking about an ESP-01, but i think i have others that might fill the bill. i’ll tinker a bit and see what i can come up with.
thanks again!
-=tim
Hi both, haveyou come across the ‘ISR not in IRAM’ error message with the esp01? I’ve Googled it and It seems to be something to do with the interrupt. I only get the error when uploading the door status monitor code, other projects such as the wifi button work fine. Any suggestions???
Hi Neil.
Add ICACHE_RAM_ATTR before void changeDoorStatus() {
like:
ICACHE_RAM_ATTR void changeDoorStatus() {
This should solve the problem.
We’ll update the code.
Regards,
Sara
Fantastic! thank you….
Hello, fantastic tutorial.
My question, is it possible using esp32 and ESP32_MailClient.h?
Thank you.
Hi.
Yes.
You can see this example: https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/
Regards,
Sara
Hi, i hope health is ok.
I have been working with that code that you indicate, but I am not able to include it in the code of the magnetic sensor, I always have an error.
can you give me some indication?
greetings from Spain.
Hi Julio.
What error do you get?
Regards,
Sara
Hi Sara,
I have problems with ifttt, and I do not receive email from esp8632, my thought is to do it with esp32 and ESP32_MailClient.h, it works very very well and without third party problems, but I don’t know how to add the magnetic sensor, I am very very newbie, a help? 🙁
I feel my bad language.
greeting. 😉
Hello,
I have don this project and it work perfect for years, BUT, why is neewnded to be always an BUT?
The problem is that IFTT does not allow anymore to enable webhooks at this project, it give some error when you want to enable this project. So if you have this project done and working, and you will disable it and want to reenable it in IFTTT, will now work anymore and i do now know why, maybe you can help me to find out why…
hello, can anyone tell me where is the problem with this project? any news? why ifttt doesnt allow to work anymore?
any news? doesnt work anymore, can you fix it?
Hi Dan.
I think it has some problem with the Google Services.
When creating an applet, instead of the gmail option, choose the “mail” option.
Regards,
Sara
hello,
cannot find that option, can you guide me?
and what is the use of the IFTT? cant you make it to send e-mail without iftt? please, i realy need it
How can I get email notices without having to rely on IFTTT?
That is what I want also. I don’t want to rely on IFTTT. How can I send an email directly from my ESP8266 / wemos D1?
Hi.
We have this project that you can follow: https://randomnerdtutorials.com/esp32-esp8266-send-email-notification/
Regards,
Sara
hi, i was wondering what power the circuit took?
Hi.
You just need to power the ESP-01 using a 3.3V power source.
Regards,
Sara
thank you for your help.