Skip to main content
Back to LearnBasics

Pair your device with the SmartLife app

Put your flashed, authorized device into pairing mode and register it to the Tuya IoT Cloud from the SmartLife app — the last step to a device you can control from your phone.

Beginner6 minNetwork

What you get at the end

Your device is registered to the Tuya IoT Cloud and controllable from the SmartLife app — the finish line of the first-device path.

  • Pairing connects and registers the device to the cloud, so you can control it remotely.
  • The device must already be flashed with firmware AND authorized (UUID + AuthKey written).
  • Some Tuya modules only support the 2.4 GHz Wi-Fi band — check your chip/module’s WiFi capabilities and your router settings.

Prerequisites

Before you pair, confirm each of these:

  • The SmartLife app installed on your phone (see Get the app below).
  • A device that has been flashed with firmware and authorized — see Use your license key if not.
  • The device in pairing mode (see Enter pairing mode).

Get the SmartLife app

Install SmartLife on your phone, then register and log in. Scan the QR code or tap your store below.

SmartLife
Smart living, by Tuya
SmartLife app download QR code
Scan to download

The QR code opens the official SmartLife download page, which routes you to the right store for your phone.

Enter pairing mode

On first boot

If your application uses the Tuya IoT Cloud (like switch_demo or your_chat_bot), a freshly flashed and authorized device enters pairing mode automatically on its first boot — no trigger needed. Watch the serial log to confirm it is ready.

If it is not in pairing mode

If the device has paired before, lost its network config, or is not showing the pairing log, reset the pairing and network configuration with one of these methods:

Embedded module (T5/T3/T2/ESP32/BK…)Power-cycle the device 3 times within 5 seconds — about 1 second between each reboot.
Raspberry Pi / Linux hostDelete the tuyadb folder on the device to clear the stored pairing configuration, then reboot.

What the log shows when it is ready

Whichever path you took, the device is in pairing mode when you see this in the serial log:

[01-01 00:00:01 ty D][tuya_iot.c:774] STATE_START
[01-01 00:00:01 ty I][tuya_iot.c:792] Activation data read fail, go activation mode...
[01-01 00:00:01 ty D][tuya_main.c:143] Tuya Event ID:1(TUYA_EVENT_BIND_START)

Method 1 — Add the device in the app (common)

With the device in pairing mode, add it from the SmartLife app:

  1. On the All Devices page, tap Add Device or the + in the top right.SmartLife app All Devices page with the Add Device button and + icon
  2. Grant Wi-Fi and Bluetooth permissions when prompted — without them, nearby devices cannot be discovered.SmartLife app prompt to turn on Wi-Fi and Bluetooth to discover nearby devices
  3. Tap Go to add when the device appears on the Home or Add Device page, then follow the app prompts to finish pairing.SmartLife app showing a nearby device in pairing mode with the Go to add button

Some Tuya modules only support the 2.4 GHz Wi-Fi band. If pairing fails, check your chip/module’s WiFi capabilities and confirm your router is serving 2.4 GHz (or split the bands) during pairing.

Method 2 — Scan to pair (QR)

Some TuyaOpen devices — commonly Linux devices like Raspberry Pi — pair by scanning a QR code the device prints to its terminal.

  1. Make sure the device is in pairing mode and a QR code is shown in the terminal/log.
  2. Open the SmartLife app and tap + in the top right.
  3. Select Scan and point the camera at the QR code the device printed.
  4. Follow the on-screen instructions to finish pairing.
SmartLife app QR code scanning screen used for pairing

Troubleshooting

Pairing fails and UUID / AuthKey show as xxxxxxxxxxxxxxxx in the log

The authorization information was not written. Re-write a TuyaOpen (not TuyaOS) UUID + AuthKey with tyutool, then re-enter pairing mode. See Use your license key.

The app cannot discover the device

Confirm Wi-Fi and Bluetooth permissions are granted to SmartLife, the device is in pairing mode (look for TUYA_EVENT_BIND_START in the log), and your phone is on the same network band the device supports.

Pairing fails against the router

Some Tuya modules only support 2.4 GHz. Check your chip/module’s WiFi capabilities, and confirm the router is serving a supported band — split or disable 5 GHz during pairing if needed.

The device is flashed but has no license key

Flashing firmware is not the same as authorizing. The device needs a UUID + AuthKey written separately — see Get a license key and Use your license key before pairing.

The device was paired before and will not re-pair

Reset the pairing and network configuration first: power-cycle 3 times within 5 seconds (~1 s apart) on embedded modules, or delete the tuyadb folder on a Raspberry Pi / Linux host, then reboot.

You did it — browse more learn →Full pairing docs →Use your license key →