Matter Door Lock over Thread

Technical solutionMatter
Use caseSecurity & Access

A Matter door lock running on the ESP32-H2 over Thread. Pair it through your Thread Border Router, then lock and unlock it from any Matter app. The on-board RGB LED, where fitted, shows the lock state.

Product use case: A Matter door lock on a low-power Thread mesh: lock and unlock from any Matter app, with a red or green ring for the state.

Overview

Supported chipsESP32-H2
ConnectivityThread, BLE for pairing
FrameworkESP-Matter
ControllerAny Matter ecosystem app

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

Flash the prebuilt firmware from the browser, then pair the board with any Matter app on your phone. Works in Chrome and Edge over USB.

  1. Connect: Plug in the board over USB and pick its serial port.
  2. Flash: Write the prebuilt Matter firmware straight from the browser.
  3. Reset: Reboot the board. It opens its Matter pairing window.
  4. Pair: Scan the Matter QR code with Apple Home, Google Home, Alexa or SmartThings.

Detailed instructions

1. Connect and flash

  1. Connect the board over USB, click Connect above the terminal and pick its port.
  2. Click Flash Device, choose Erase and flash and wait for it to finish. The flasher checks the chip against the supported list.

2. Reset the board

  1. Click Reset.
  2. Wait for Commissioning window opened in the console. The board is now ready to pair.

3. Pair with a Matter app

  1. Make sure your Thread Border Router (HomePod mini, Apple TV 4K, Nest Hub 2nd gen or Echo 4th gen) is set up in the same app.
  2. In Apple Home, Google Home, Amazon Alexa, SmartThings, choose Add device → Matter.
  3. Scan the QR code in the Pair with Matter panel, or enter the code 34970112332.
  4. This is a development build, so the app warns that the device is not certified. Tap Add anyway.

4. Try it

  1. Lock and unlock the door from the app.
  2. Press BOOT on the board to toggle the lock locally; the app updates within a second.
  3. On DevKits with an RGB LED, it shows the state: red locked, green unlocked, amber while moving.

5. Pair again

  1. To start over, remove the device from the app, then hold the BOOT button for about 10 seconds to factory reset it.
  2. Every board uses the same test pairing code, so keep only one unpaired board powered while pairing.

Pair with Matter

Manual pairing code3497-011-2332
QRMT:Y.K9042C00KA0648G00
Works withApple Home, Google Home, Amazon Alexa, SmartThings

Needs a Thread Border Router set up in the same app.

Development build with a test certificate. Tap Add anyway when the app asks. Setup PIN 20202021, discriminator 3840.

Having trouble connecting?