Book Image

ESP8266 Home Automation Projects

By : Catalin Batrinu, Constantin Tambrea
Book Image

ESP8266 Home Automation Projects

By: Catalin Batrinu, Constantin Tambrea

Overview of this book

The ESP8266 is a low-cost yet powerful Wi-Fi chip that is becoming more popular at an alarming rate, and people have adopted it to create interesting projects. With this book, you will learn to create and program home automation projects using the ESP8266 Wi-Fi chip. You will learn how to build a thermostat to measure and adjust the temperature accordingly and how to build a security system using the ESP8266. Furthermore, you will design a complete home automation system from sensor to your own cloud. You will touch base on data monitoring, controlling appliances, and security aspects. By the end of the book, you will understand how to completely control and monitor your home from the cloud and from a mobile application. You will be familiar with the capabilities of the ESP8266 and will have successfully designed a complete ready-to-sell home automated system.
Table of Contents (16 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
3
Building a Home Thermostat with the ESP8266
5
Using ESP8266 to Build a Security System
Index

Summary


In this chapter, you have learned how to use Docker to create a development environment for creating and using a mobile application. On the ESP8266 side you have learned the topics and messages that the module needs to have in order to be able to integrate into a system composed from a cloud MQTT and a mobile application. The code for ESP8266 in the demo app is too big to be presented here, but it covers all the ESP8266 chapters of the book: how to connect to Wi-Fi, how to store data in SPIFFS, how to connect to an MQTT broke, and how to subscribe and publish messages on topics. It can be a good start for a Smart Plug device since it is a fully functional example.

On the mobile part, code that exists in the GitHub example is fully operational with the iotcentral.eu platform and with the demo app. Looking to the code a learning more on how to develop and mobile application with Ionic and Cordova, you will be able to easily add new devices such as temperature monitoring, controlling...