Read one door movement, then commission a Matter light
Two independent bench checks give you a motion trace and an LED you can switch from a home controller. A proposed next step connects a trained classifier to a Matter endpoint.
Device profile · Seeed Studio XIAO MG24 Sense (pre-soldered) ↗This is a proposed workflow. Follow the linked official setup, then use the checks below to decide whether it works on your hardware.

Watch the axes move
Connect the Sense board to a computer with a USB data cable. Install Silicon Labs’ Arduino board package and the Seeed LSM6DS3 library. Use the Sense acceleration example’s sensor-power sequence, which drives PD5 high and waits 300 ms before initializing I²C address 0x6A. Print the acceleration axes in the serial monitor. Rest the board flat, tilt it and return it to the starting position. One or more axes should shift and settle. If initialization fails, check the Sense variant, power sequence, selected port and library. Seeed sensor example
Pair the light example separately
Save your sensor sketch and load Seeed’s Matter light bulb example. Select the Matter protocol stack, upload, then use the commissioning information printed to serial to pair with a compatible controller on a Thread network. Toggle the light twice from the app and watch the onboard LED. If serial works but pairing fails, check the Thread border router, controller and commissioning status before adding model code. Matter walkthrough
Give a motion label a network meaning
Proposed integration. Mount the board to one door and capture labeled six-axis windows for gentle closure, a slam, a knock and background vibration. Include quiet periods. Train on a computer, hold back a separate recording session, then deploy a small TFLM classifier. Compare its labels with a simple acceleration threshold. Count missed knocks and spurious knocks per quiet hour. A knock alone says little about whether the door is open. In the Arduino toolchain the Silicon Labs TFLM library invokes the interpreter with Invoke(). Adapt the example to the onboard sensor and check both the local label and the Matter report. Arduino TFLM guide
Check what the controller saw
Pick a Matter endpoint and event or attribute that the target controller supports. Write down the mapping, keep richer labels on serial during development, and suppress duplicates from a single motion. Repeat each action, compare the local label with the controller log and disconnect the controller once to check recovery. The official light sketch verifies pairing. Inside AI has not run the combined build.