Smart home matter over thread roof window controller based on an Espressif ESP32 C6 EVB from Olimex. I use this via a Home Assistant ZBT-1 / Skyconnect running as Thread boarder router. Still under development, but might be helpful for others starting out on building custom Matter over Thread devices.
https://docs.espressif.com/projects/esp-idf/en/latest/esp32c6/get-started/linux-macos-setup.html
https://docs.espressif.com/projects/esp-matter/en/latest/esp32c6/developing.html
https://github.com/espressif/vscode-esp-idf-extension/blob/master/docs/tutorial/install.md
https://github.com/espressif/vscode-esp-idf-extension/blob/master/docs/C_CPP_CONFIGURATION.md
Build the light example as a first test. To build the thread version of it, use the sdkconfig.defaults.c6_thread
by renaming it to sdkconfig.defaults.esp32c6
. See the API-Guides for further info. Flash it and commission the device to your thread network. Setup of a thread network using the Home Assistant ZBT-1 / Skyconnect can be found in the next section.
Taken from a reddit post.
On the Android Companion App open Settings → Companion App → Troubleshooting (I think that is what it is called in english, but it list logfiles and other tools to diagnostics as description of the item). In this next window click the Sync Thread Login Credentials (Again it might not be named exactly that, but close to and there should not be that many options and it should be in the bottom) It should say either something with “Added …” or “Already using the same credentials”. The trick here is to run it again and make sure that it does not say “Added …” the second time.
Scan the QR Code from the ESP Matter documentation to initiate. For Home Assistant, do this using the companion app (Add device -> Matter).
Enable the open thread web port in the open thread border router addon. Navigate to this webpage and click the topology sidebar entry.
- Source ESP IDF and ESP Matter:
cd esp-idf
source ./export.sh
cd esp-matter
source ./export.sh
- Switch to this repos root:
cd esp32c6-matter-over-thread-roof-window-controller
- Set target:
idf.py set-target esp32c6
- Build:
idf.py build
- Plug in your board and erase flash:
idf.py erase_flash
- Flash & monitor console:
idf.py flash monitor