Matter Smart Button

Technical solutionMatter
Use caseAppliances & Controls

A Matter generic switch: a stateless button that reports single, double and long presses. Pair it with a Matter app and use each press to trigger a scene or automation across your home.

Product use case: A stateless Matter button: single, double and long presses are reported separately, each running a scene in any Matter app.

Overview

Supported chipsESP32-C3
ConnectivityWi-Fi, 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. Keep your phone on the 2.4 GHz Wi-Fi network the board should join.
  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. In Apple Home (or any app that supports Matter buttons), open the button and add an automation for Single Press, Double Press or Long Press, e.g. turn a light on.
  2. Press BOOT once, twice, or hold it for 5 seconds to run each automation.
  3. Each event is also logged in the console.

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

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

Having trouble connecting?