Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can use an ESP8266-based NodeMCU board as a Wi-Fi controller and Firebase Realtime Database to pass device state between the board and a web or mobile interface. The essential pattern is straightforward: a user changes a database value, the NodeMCU reads it and controls an output, then the device reports what happened. A safe, complete build still depends on choosing and wiring hardware for a specific load, securing Firebase access, and distinguishing a requested action from confirmed device state.

How the NodeMCU–Firebase system works

The NodeMCU is the physical controller; Firebase Realtime Database is the cloud data layer; and a web or mobile interface gives the user a way to request changes. The board joins the home Wi-Fi network, and its firmware reads or updates database values. A user action updates a value that the firmware interprets as a command.

Keep commands separate from reported state. For example, a client can write a desired state such as “on,” while the device updates a separate reported-state value after it has changed the output. This prevents the interface from treating a request as proof that the appliance actually switched.

The ESP8266 Arduino Core documentation describes the development ecosystem for ESP8266 boards, including NodeMCU-style boards: ESP8266 Arduino Core. The official sources cited here establish the general architecture, not a complete, tested NodeMCU firmware recipe. Choose a Firebase client library and confirm its compatibility with the board, firmware environment, and authentication approach before implementing the connection.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Hosyond 3Pcs ESP8266 ESP-12E CP2102 NodeMCU Lua Wireless Module Development Board for Arduino IDE/Micropython
  • Not only it is easy to program for this controller by using the CP2102-USB interface,but also unnecessary to press the flash and reset buttons before each flash operation.
  • NodeMcu is an open source Lua based firmware for the ESP8266, ultra low cost wireless modules, development boards for rapid prototyping, integrated with ESP8266 chips.
  • The ESP8266 has powerful on-board processing and storage capabilities, and can be integrated with sensors and other application-specific devices through its GPIOs.
  • It is compatible with Arduino IDE,works great with the latest Mongoose IoT/Micropython.
  • Modern Internet development tools can use the built-in API to instantly put your idea on the fast track.

What you need to decide before building

  • Board: Use an ESP8266 NodeMCU development board and verify its revision and USB connection. The available guidance does not establish a particular manufacturer or exact model.
  • Interface: Define whether you will control the system through a web page or mobile app. Firebase does not itself supply that interface.
  • Output and load: Select the switching component only after identifying what you intend to control and checking the component’s voltage, current, logic-level, and isolation requirements.
  • Inputs: Add a sensor only when the project has a defined sensing task and you have confirmed electrical compatibility with the board.
  • Network behavior: Decide what the device should do if Wi-Fi or the internet is unavailable. A cloud-dependent command path cannot deliver new remote commands while the board is offline.

No specific relay, sensor, power supply, appliance, or circuit is established here, so do not treat this as a ready-to-wire parts list. If the load uses mains voltage, use appropriately rated components and a safe, qualified wiring design; this article does not provide or certify mains wiring.

Set up Firebase access securely

Firebase describes its Realtime Database rules this way: “Firebase Realtime Database Security Rules determine who has read and write access to your database, how your data is structured, and what indexes exist.” The rules live on Firebase servers and are enforced for requests. By default, database access is denied until rules grant it. See Firebase Realtime Database Security Rules.

Rank #2
NodeMCU ESP8266 Development Board with 0.96 Inch OLED Display, CH340 Driver, ESP-12E WiFi Wireless Module, and Micro USB Works Great for Arduino IDE/Micropython Programming (Pin Header Soldered)
  • The ESP8266 NodeMCU board has all the features of the traditional ESP8266 module,with the same exact size and peripheral ports,offers seamless integration with a 0.96-inch OLED display, eliminating the need for frustrating wires and breadboards.Display features a high-resolution 128x64 with SSD1306 driver and is compatible with I2C,SPI interfaces. Plus,It uses Micro usb cable to connect. Say goodbye to messy setups and hello to hassle-free electronics with the ESP8266 NodeMCU board
  • This board uses I2C to connect to an OLED display via the SDA (D6 / GPIO12) and SCL (D5 / GPIO14) pins. With this board,it's easy to display a variety of information and data
  • To install the new version driver for CH340,simply search for the keywords "CH340 Driver" on Google.com or Bing.com and follow the installation instructions provided.Recommended for Win10 Operating System
  • ESP8266 NodeMCU board is equipped with ESP-12E module,which contains the Tensilica Xtensa 32-bit LX106 RISC microprocessor powering the ESP8266 chip. This microprocessor supports RTOS and operates at a clock frequency that can be adjusted between 80MHz and 160 MHz. It also boasts 128 KB of RAM and 4MB of Flash memory, providing ample storage for data and programs. With its high processing power, built-in Wi-Fi, and Deep Sleep Operating features, It's is an excellent choice for IoT projects
  • This board is an outstanding option for various Internet of Things (IoT) projects. It can be used to display network connection status,monitor information, power levels, and other relevant data. Additionally, it's suitable for building Internet Weather Stations, News Stations, Clocks, and Other similar applications

Use authentication to identify users, then authorization rules to limit which data each authenticated user can read or change. For example, a user’s access can be scoped to a path associated with that user’s authenticated UID. Device credentials and end-user logins are separate design concerns: avoid embedding a privileged server credential in firmware distributed with a device.

Rules apply through the database path hierarchy. In particular, broad `.read` or `.write` grants at a parent path cascade to child paths; a more restrictive rule lower in the tree does not undo a permission already granted above it. Review the effective permissions for every path the interface and device use, rather than checking only the leaf rule.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
HiLetgo 3pcs ESP8266 NodeMCU CP2102 ESP-12E Development Board Open Source Serial Module Works Great for Arduino IDE/Micropython (Large)
  • Built-in Micro-USB, with flash and reset switches, easy to program
  • Arduino compatible, works great with the latest Arduino IDE/Mongoose IoT/Micropython
  • Data download access to the website: http://www;nodemcu;com

Realtime Database is schemaless, so use `.validate` rules where appropriate to reject malformed values and enforce expected formats or child attributes. Do not leave a public, unrestricted write path for physical commands: an unauthorized write could ask the device to change an output.

Choose the Firebase plan for expected use

Firebase’s pricing page lists the following Realtime Database allowances. These are plan limits and pricing thresholds, not performance benchmarks or a prediction of typical household usage; the figures below were shown on Google’s page accessed October 4, 2026. Check the live Firebase pricing page before deployment because plan details can change.

Rank #4
ESP8266 ESP-12F NodeMCU Development Board Module, 2 Pack
  • ESP8266 ESP 12F WIFI MODULE: Built with ESP8266 ESP-12F chip providing reliable WiFi connectivity for IoT automation and wireless control projects
  • CP2102 USB TO SERIAL CHIP: Features CP2102 interface for stable programming and easy upload without repeatedly pressing flash and reset buttons
  • ARDUINO IDE MICROPYTHON LUA SUPPORT: Compatible with Arduino IDE MicroPython Lua and other IoT development environments for flexible programming
  • POWERFUL GPIO AND PROCESSING: Supports sensors modules and application specific devices through onboard GPIO with strong processing capability
  • 2 PACK WITH TUTORIAL PROVIDED: Includes two development boards with tutorials for quick setup learning and project development
Plan Simultaneous connections Stored data Downloads
Spark 100 simultaneous connections 1 GB 10 GB per month
Blaze 200,000 per database 1 GB at no cost, then $5 per GB 360 MB per day at no cost, then $1 per GB

Google notes that multiple database instances can extend beyond the 200,000 concurrent-connection limit on Blaze. Choose based on the number of connections, stored data, downloads, and whether paid service is acceptable—not simply on the fact that the project uses one board.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Firebase control is not Google Home integration

A Firebase-backed control page is not automatically controllable through Google Home or Google Assistant. Voice and Google Home app control require a separate smart-home integration. Google’s cloud-to-cloud route connects a developer’s cloud backend with Google Home; its cloud-to-cloud smart-home codelab uses Firebase project setup, Realtime Database, and Cloud Functions to demonstrate a backend pattern. It is not a drop-in NodeMCU protocol library, nor proof that a personal project is certified for Google Home.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
FORIOT 2Pcs ESP8266 Development Board with 0.96-Inch OLED Color Display, Type-C to Serial Port CH340 Driver NodeMCU ESP-12E Module Pin Header Soldered for Ar-DUI-no IDE
  • The ESP8266 NodeMCU development board has a built-in 0.96-inch OLED display (128x64, SSD1306) and supports the I2C interface. It can be directly integrated without additional wiring, making it an ideal choice for quickly building ESP8266-based visual display projects
  • The development board is equipped with the ESP8266 ESP-12E module, using the Tensilica Xtensa 32-bit LX106 CPU (80-160MHz), equipped with 128KB RAM and 4MB Flash, which can provide stable performance for demanding ESP8266 IoT applications
  • The onboard OLED uses the I2C interface through the SDA (D6/GPIO12) and SCL (D5/GPIO14) pins on the ESP8266 NodeMCU, which can easily display real-time network status, sensor data, and other ESP8266 project information
  • The ESP NodeMCU development board has built-in Wi-Fi, supports deep sleep, and is compatible with RTOS. It is ideal for low-power IoT solutions such as ESP8266 weather stations, clocks, and smart monitoring systems
  • This ESP8266 development board uses a Type-C port for power and data transmission. The CH340 driver can be easily installed by searching online. It is fully compatible with Windows systems and is an ideal choice for ESP8266 beginners and professionals

Google’s developer policies require a privacy policy and clear descriptions of how user and device data are collected, used, and shared. For certain changes to a non-secure or disabled state, Google requires secondary user verification; examples include unlocking a door, turning off a camera, or disabling a security system. Review the current Google Home Developer Policies before designing a supported integration. Do not use Works with Google Home branding unless the project meets the applicable requirements.

Plan for safety and offline behavior

Cloud control adds remote reach, but it also makes operation depend on the network path: the interface, internet connection, Firebase service, and the device’s Wi-Fi connection. Decide what outputs should do after a lost connection, how the device recovers, and whether a local control method is needed. A cloud value should not be the only safety mechanism for a device whose operation could harm people or property.

For loads that can affect security or safety, design authorization and confirmation around the consequence of the action. Do not infer successful switching solely from a database write; report device state separately, and use appropriate safeguards for the hardware and load.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.