One touch groups their Sonos speakers, on an ESP32 remote by Codex
Grouping Sonos speakers meant opening the app or walking over to long-press one. Codex wrote an ESP32 remote that groups them all with one touch and sets the group volume. It came together fast and works well.
Done withCodexSpotted· by HN user gaborme· Oct 29, 2026
Result The writer read every line Codex wrote
“I am blown away by how quickly this came together and how well it works.”
Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.
What they did
Grouping and volume are what the writer uses most on their Sonos speakers, and going into the app every time was annoying; on the speakers themselves, grouping means walking over and long-holding play. They built an ESP32 remote that groups all the speakers with one touch and sets the group volume, with Codex writing the code.
How it went
The writer is blown away by how quickly it came together and how well it works. They read all the code Codex wrote, which brought back memories of programming their first C game in 2000.
Try it yourself with Codex
Write firmware for an [ESP32 with a touchscreen] that controls my [Sonos] speakers over the local network: one button groups them all, and a control sets the volume of the whole group. Explain how it finds and talks to the speakers, and walk me through flashing it before I do.
A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.
"What's for dinner?" with allergies, expiring food and a garden to use up. ChatGPT wrote the build plan and Codex built a local app. Two restarts and about 20 hours later, it's an MVP they use daily.
Devialet's official app was abandoned. Claude and Codex reverse engineered the amplifiers' private protocol and built an iOS controller in about a day of work. Without AI, they'd never have started.
A new HDMI-CEC controller didn't work with their projector setup. From their phone, Codex diagnosed the firmware, rewrote it, tested it and flashed the fix over the air.
Reverse engineering the firmware meant soldering wires to UART headers in an awkward spot. With Codex it took about 10 hours; without it, they say, it would have taken many more weekends.
They plugged the board into their Mac and told Codex what it was, how the motor was wired and what it should do. Codex wrote all the software, and it worked exactly as wanted.
A pair of 8.8x3 inch monitors on a Raspberry Pi 4, and Codex told to 'go wild': a poor man's ATC kit of real-time HTML gauges for space, planes, weather and home sensors, polling its sources every 900 seconds.