Switch

Technical solutionNeo
Use caseAppliances & Controls

A smart on/off switch on the ESP RainMaker Neo stack. Power is controllable from the ESP RainMaker Home app and the cloud, and the on-board RGB LED lights red while the switch is on. A short or long press of the BOOT button toggles power.

Product use case: A smart plug powering the coffee machine, switched on and off from the ESP RainMaker Home App.

Overview

Supported chipsESP32, C2, C3, C5, C6, S3
ConnectivityWi-Fi or Thread, BLE for setup
FrameworkESP-IDF v6.0.2
CloudESP RainMaker Neo

You will need

What you can try

Try it on a real board

Get an official DevKit from Espressif or one of its distributors, then flash this example straight from this page. Shop Espressif DevKits

Flash and try it

Choose your deployment

Public deployment

Hosted by Espressif for evaluation. Free, with nothing to set up.

  1. Connect: Plug in the board over USB and pick its serial port.
  2. Flash: Write the prebuilt firmware. Wait for the erase and flash to finish.
  3. Reset: Reboot the board. A QR code appears in the console.
  4. Pair: In the Home App, tap +, connect over Bluetooth and enter the PoP from the console.

Detailed instructions

1. Prerequisites

  1. Linux, macOS, or Windows-based computer.
  2. An ESP32/ESP32-C2/ESP32-C3/ESP32-C5/ESP32-C6/ESP32-S3 DevKit.
  3. USB cable.

2. Connect your device

  1. Connect your device to the computer using a USB cable, then click the Connect button located in the top-left corner above the terminal.
  2. Select the right port and click connect.
  3. Once connected, the device is ready to be flashed.

3. Flash your device

  1. Click Flash Device above the terminal and choose Erase and flash. Wait for the erase_flash process to finish before the firmware is written.
  2. Wait for the firmware flashing process to complete.
  3. Click the Reset button to reset the device.
  4. When you see the QRcode in the terminal, it means that the flashing process is completed successfully.

4. Provision the device in the Home App

  1. In the Home App panel next to the console, tap Change deployment and choose ESP RainMaker Neo, then sign in. You can also use the ESP RainMaker Home phone app (iOS / Android).
  2. Tap +, choose I do not have a QR code, then Bluetooth.
  3. In Chrome's Bluetooth window, pick the device whose name matches the one in the console, for example PROV_ff7bf2.
  4. Enter the PoP when asked. It is the middle value of the QRCODE: line in the console. In NP:PROV_ff7bf2|c3ce0dbd|b, the PoP is c3ce0dbd.
  5. Pick your Wi-Fi network, enter its password and wait for provisioning to finish. The device then appears under My Devices.
  6. Control the device from the app.

Private deployment

Your own ESP RainMaker Neo, installed in your AWS account.

  1. Register: In your Admin Dashboard, generate nodes, then register them with node_certs.csv.
  2. Load credentials: Drop the Admin Dashboard ZIP, or one node's .bin, into Device credentials.
  3. Flash: Write the firmware and the credentials in one pass. The board resets when done.
  4. Pair: Load your Deployment QR code in the Home App, then add the device with the PoP.

Detailed instructions

1. Before you start

  1. A private ESP RainMaker Neo deployment, installed with the Cloud Installer. If you do not have one yet, see Take Neo to your own cloud further down this page.
  2. Super-admin sign-in for its Admin Dashboard. The dashboard URL is in your Deployment Details.
  3. An ESP32/ESP32-C2/ESP32-C3/ESP32-C5/ESP32-C6/ESP32-S3 DevKit, a USB cable, and Chrome or Edge.

2. Register your nodes

  1. In the Admin Dashboard, open Node management → Generate nodes, enter how many boards you have and click Generate.
  2. Download the ZIP. It holds one factory image per node under bin/, and common/node_certs.csv.
  3. Open Register nodes, upload common/node_certs.csv and click Register. A node that was generated but never registered cannot connect.
  4. The ZIP holds private keys. Keep it out of chats and repositories, and delete it when you are done.

3. Load the device credentials

  1. Drop the ZIP, or one node's .bin, onto Device credentials above the console. It is read in your browser and never uploaded.
  2. With the ZIP, pick the node for this board. Every board needs its own node: two boards with the same one connect as the same device.
  3. The credentials are flashed at 0x3E0000, where every Neo example keeps its fctry partition.

4. Connect and flash

  1. Connect the board over USB, click Connect above the console and pick its port.
  2. Click Flash Device and choose Erase, then flash firmware + credentials. The firmware image goes to 0x0 and the credentials to their address in one pass, so the erase cannot wipe them.
  3. The board resets when flashing is done. Type get-node-id in the console: it prints the node you picked.
  4. To give a board another node later, or restore one after a full erase, load the credentials and choose Credentials only. The firmware on the board is kept.
  5. To reflash only the firmware, choose Flash only. The credentials on the board are kept.

5. Connect the Home App to your deployment

  1. In your Admin Dashboard, click Show Deployment QR code in the top-right corner. Keep the QR code on screen, or download it or the deployment JSON.
  2. In the Home App panel next to the console, choose Private deployment. If it opens on another deployment, tap Change on the sign-in screen first.
  3. Click Enter configuration, drop in the QR image or the JSON file, and click Apply configuration.
  4. Sign up or sign in with a non-admin email address.
  5. On the ESP RainMaker Home phone app (iOS / Android), choose Private deployment, tap Update config and scan the QR code from the dashboard.

6. Provision the device in the Home App

  1. Tap +, choose I do not have a QR code, then Bluetooth.
  2. In Chrome's Bluetooth window, pick the device whose name matches the one in the console, for example PROV_ff7bf2.
  3. Enter the PoP when asked. It is the middle value of the QRCODE: line in the console. In NP:PROV_ff7bf2|c3ce0dbd|b, the PoP is c3ce0dbd.
  4. Pick your Wi-Fi network, enter its password and wait for provisioning to finish. The device then appears under My Devices.
  5. Control the device from the app.

Having trouble connecting?

Take Neo to your own cloud

Deploy ESP RainMaker Neo in your own AWS account: you choose the region and fully own the data and configuration.

Evaluate on the public deployment

Flash a prebuilt example and control it from the Home App. Nothing to set up.

Runs inEspressif's account
Setup timeMinutes
CostFree

Install with the Cloud Installer (Recommended)

A dashboard-led install into your AWS account. Pick a version and modules, with no local toolchain.

Runs inYour AWS account
Setup timeAbout an hour
CostYour AWS usage, free tier available

Deploy with the Cloud Installer

What you need

  1. Sign in to AWS: Use the account the deployment will live in, as a user with admin access. (AWS Console)
  2. Deploy the Installer: Enter the admin email(s) and a region, and deploy the installer with AWS CloudFormation. Then sign in to the Installer Dashboard and deploy Neo from there. You can also subscribe to Neo on AWS Marketplace. (Deploy with the Installer, AWS Marketplace)
  3. Try the examples on your deployment: In Flash and try it, choose Private deployment and follow its steps: register a node, flash its credentials with the firmware, and connect the Home App.

Build from source

Fork the open-source backend, firmware, app and dashboard, change what you need, then deploy.

Runs inYour AWS account
Setup timeA few hours
CostYour AWS usage, free tier available

Deploy from source

What you need

  1. Set up the cloud backend: Install the prerequisites, then deploy the backend from the esp-rainmaker-neo repository with a few commands. (Deploy from source, esp-rainmaker-neo on GitHub)
  2. Try the examples on your deployment: In Flash and try it, choose Private deployment and follow its steps: register a node, flash its credentials with the firmware, and connect the Home App.