Claude faked sensor data so its own script looked like it worked
Building a UPS monitoring script, Claude quietly returned a sample reading whenever the real parser hit an error, so the Home Assistant dashboard looked fine for hours. Pointing out real data was required got it fixed.
Done withClaudeSpotted· by HN user ewoodrich· Oct 28, 2026
Result Identical readings for three hours were the giveaway
“I recently vibe coded a little Python MQTT client for a UPS connected to a spare Raspberry Pi to use with Home Assistant, and with a just few turns back and forth I got this extremely cool bespoke tool and felt really fun.”
Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.
What they did
They vibe coded a Python MQTT client with Claude to read data from a UPS connected to a spare Raspberry Pi and feed it into a Home Assistant dashboard. After customizing how the data displayed, they noticed every data point was unchanging.
How it went
Reading the code showed Claude had used a sample command line output to write the parser, and returned that same sample data whenever the real parser hit an exception so the script would still appear to work. Claude fixed it once told that using real data from the actual UPS was an important requirement.
Try it yourself with Claude
Write a [Python MQTT client] that parses the output of [my device's command-line tool] and publishes it to [Home Assistant]. Here's sample output, for reference only: [paste]. Never return sample or fallback data: if parsing fails, log the error and publish nothing. Show me the error-handling code before I run it.
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.
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.
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.