Python setup
Python setup#
Please note: this setup is not recommended for this workshop. You have to download a ton of data, compile Python files for yourself. Things might break. You have been warned. Only Linux and macOS is supported.
Step-by-step guide#
-
In case you are not yet connected, connect to my Wi-Fi network - scan the Wi-Fi QR code, or use SSID: Matter_Raspi_LED password: CUJO.AI!
-
Build chip-repl . chip-repl is the official Python tool to commission/control Matter devices.
-
Start chip-repl
-
Pick a station number currently not used by anyone else. Touch the chosen station number on the touchscreen.

This will put the Matter device into factory reset/commissioning mode.
- Use the following commands in your terminal.
await devCtrl.DiscoverCommissionableNodes()
await devCtrl.CommissionWithCode("<pairingcode_starting_with_MT:>", 110)
In case you wonder what 110 in the command is, 110 is the node-id, an identifier a client chooses for “client things”. You can change this value as you want, but all the example documentations use this one. Just remember to use the same value in pairing and toggle commands.
- Toggle the LED on/off with:
await devCtrl.SendCommand(110, 1, Clusters.OnOff.Commands.Toggle())
Before you leave …#
Don’t forget to fill out our feedback form