Table of Contents
This tutorial will demonstrate how to utilize the Lonely Binary ESP-01S Door Sensor kit to monitor your home's garage, doors, and windows. With this setup, you'll receive instant notifications on your iPhone in the event of an intrusion into your home. To facilitate this, we will employ IFTTT as a bridge.
The Lonely Binary ESP-01S Door Sensor kit will notify the IFTTT Webhook Server via the HTTP Post method. Subsequently, the IFTTT Server will relay this event to the IFTTT app on your phone. This means you can receive notifications from anywhere, provided you have an internet connection.
IFTTT is an acronym for "If This Then That." It serves as a web-based service and mobile app that empowers you to create automation rules, referred to as applets. These applets enable the connection of various online services, applications, and devices. They operate on a straightforward conditional statement: "If this event occurs, then perform that action."
The code also demonstrates how to utilize Arduino OTA. OTA, short for "Over-The-Air," enables remote software or firmware updates and upgrades, usually through a wireless network connection. This means you won't need to physically connect the ESP-01S to your computer anymore. The next time you make code modifications, you can simply upload them via Wi-Fi.
Here are six steps:
- Assemble the Lonely Binary ESP-01S.
- Create applets on the IFTTT website and obtain the WebSocket Key to be used in the code.
- Modify and upload the code to your ESP-01S using the Lonely Binary ESP-01S Type-C Programmer.
- Install the Lonely Binary ESP-01S on any door, window, or garage.
- Install the IFTTT app on your phone.
- Enjoy notifications from anywhere in the world.