So apparently my ants-in-the-head had other plans. They kept digging:
“Why aren’t you like the cool kids using Matter and Thread?”
“Why are you still living in 2010?”
“Why do you need a Hub when you already have Apple HomeKit, Google Home, or Home Assistant hubs?”
And to that I answer, as my father used to say: “So you’ll have what to ask.”
But OK OK, I got it — time to move forward and jump on the Matter train.
Honestly, most of the heavy lifting in the code was already done.
All we needed was to make sure we can pair the device as a Matter device… How hard can it be?! (famous last words)
Turns out, getting ESP-IDF + ESP-Matter up and running, AND actually making it compile, is not exactly a weekend project.
Also, because I’m still civilized, I wanted to use nice libraries like Adafruit for sensors,
and not communicate directly with I2C like some caveman.
After about 4 days (no sleep, marriage status: pending review) — It compiles!
Now, since I was already in ignore-everything-else-and-code mode,
I figured why stop there? Let’s add some cool features:
For those of you thinking, “Oh no, this probably has some Chinese spyware that’s going to plant 5G chips in our brains and force us to binge-watch all six seasons of Sex and the City…”, I also made a second firmware:
I gotta say, it’s working MaGniFicEnTLy!
.bin
file:If you want… | Flash this file |
---|---|
EnvironmenTor (no Matter) | EnvironmenTor-Client.bin |
EnvironmenTor + Matter | EnvironmenTor-Client-WithMatter.bin |
Matter Only | EnvironmenTor-Client-MatterOnlyDevice.bin |
.bin
you want.0
.When flashing is done:
Now comes the important part:
You’re looking for two lines that look similar to:
E (3399) app_main: SetupQRCode: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT:OS011ZJB000MLN44S10
E (3400) QR: Manual Pairing Code: 35158350250
Save them somewhere! (You can also print a label and slap it on the device.)
Action | What Happens |
---|---|
One click (battery mode) | Wake up for 1 minute. |
One click (USB mode) or wake up mode | Send pairing request to EnvironmenTor Hub. |
Long press ~7–10 sec (slow orange blink) | Soft Reset: unpair from Matter + clear Hub config. |
Long press ~15–20 sec (fast orange blink) | Hard Reset: everything above + regenerate new pairing codes. |
That’s a Real Wrap (Finally) Ahhhh… feng shui.
See you on my next project!
Send me an email or use the contact form
Want to buy me beer 🍻? Use this link
~ TheBrightKnight