Why pay for Home Automation when you can make it at home? In this tutorial we will learn to automate appliances in our home using NodeMcu. We will be building an mobile app using flutter and using firebase as the database. So let’s get started.
Then you need to create a firebase account and create a new firebase project with the name you want to give to your app.(You can learn to create a firebase project from here : https://firebase.google.com/)
You also need to install Arduino IDE on your PC/Laptop in order to program your NodeMcu.After installing Arduino Ide you need to setup the Arduino IDE to preferred settings int he following way:
Hence you have setup your NodeMcu.Now to add firebase to your arduino IDE you can folloe this link(https://www.instructables.com/id/Esp8266-Firebase-Connection/)
2. Once the project is created you can replace the code in the main.dart and replace it with this code.(Click here for code)