Claude's MQTT client worked first try. Its data was a stub
Data from a couple of Orange Pis needed to reach Home Assistant, and MQTT in Python was new to the writer. Claude one-shot a client, but the data block was a stub making fake data. It fixed that once asked.
Done withClaudeSpotted· by HN user ewoodrich· Oct 28, 2026
Result Claude's reply: 'That's exactly right, it's a stub'
“And it one-shot this super cool mini Python MQTT client I could drop wherever I needed it which was amazing having never worked with MQTT in Python before.”
Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.
What they did
Wanting to view data from a couple of Orange Pis in Home Assistant, and without prior experience with MQTT in Python, they asked Claude to write the client code. Claude one-shot a small Python MQTT client, and they built charts and dashboards in Home Assistant around it.
How it went
After watching the dashboards for a few minutes, they noticed none of the data was changing. The block meant to pull data from the device was a stub generating test data from their own mockup, even though they had explicitly asked for real data from the device. Claude replied that this was exactly right, a stub so they could add the real data easily, and then did fix it to use actual data.
Try it yourself with Claude
Write a small [Python MQTT client] that reads [these values] from [my device] and publishes them to [Home Assistant]. Use only real readings from the device: never stub, sample or placeholder data. If a reading fails, log the error and publish nothing. Tell me how to check that the values change over time.
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.
Frustrated by obscure Linux TUIs, they had Claude set up a headless Debian media server on a Pi, attached to a 6-drive enclosure of old hard drives. They've written no more than a dozen lines of code or commands.
Just to avoid having their mobile at home, they made a simple wifi alarm with Claude from an ESP32, a DF player and an SD card. It's set up through a wifi page and fixed to the wall.
For real privacy, the best TV option they found was Lineage OS (Android TV 17) compiled for a generic x86 mini PC, which doesn't exist off the shelf. They spent a couple of days putting it together with Claude.
Two months after a burst pipe, the insurance claim drags on. Claude reads the policy, files the receipts, logs every message and calls out the delays. Now it insists they complain to the state insurance bureau.
Old hardware sat unused until winter break, when they set up a Home Assistant instance on it. Claude and Tailscale saved hours, and now 15-20 minutes is enough to knock down homeserver tasks they'd have ignored.
After pricing a year of Squarespace, they built their wife's site in Astro with AI instead. Claude or Gemini CLI update the designs; it's hosted free on Cloudflare and deploys in a minute.