The documents for setting up and using a Matter network require a change to account for new behavior of the chip tools.
Building and installing
Before you can use the Python controller, you must compile it from the source on Linux (amd64 / aarch64) or macOS.
To ensure compatibility, build the Python CHIP controller and the Matter device from the same revision of the connectedhomeip repository.
To build and run the Python CHIP controller:
-
Install all necessary packages and prepare the build system. For more details, see the Building Matter documentation:
sudo apt-get update sudo apt-get upgrade sudo apt-get install git gcc g++ python pkg-config libssl-dev libdbus-1-dev libglib2.0-dev libavahi-client-dev ninja-build python3-venv python3-dev python3-pip unzip libgirepository1.0-dev libcairo2-dev bluez
If the Python CHIP controller is built on a Raspberry Pi, install additional packages and reboot the device:
sudo apt-get install pi-bluetooth sudo reboot
-
Clone the Project CHIP repository:
git clone https://github.com/project-chip/connectedhomeip.git
-
Enter the
connectedhomeip
directory:cd connectedhomeip
-
Initialize the git submodules:
git submodule update --init
-
Build and install the Python CHIP controller:
scripts/build_python.sh -m platform <------------ This command not requires the " -i separate " option to generate the env. See --help
Note: To get more details about available build configurations, run the following command:
scripts/build_python.sh --help