Blog · A home network run like a small office
Two messages, one second, wrong order
Out-of-order messages caused a false reminder. Read the history, not only the latest state.
In this series · Chapter 10, After the rebuildShow all 49 partsHide the list
1. Where it started
- 01Why I'm running my home like a small office
- 02What a read-only audit of my network found
- 03The first changes, and the ones I said no to
- 04Reuse first, build only what's missing
- 05Fifteen decisions before the first line of code
2. Remote access and keys
- 06One way in from outside
- 07An address that keeps itself up to date
- 08Where the passwords live
- 09Keys that can do one thing
3. Monitoring
- 10Is it my network or the internet provider?
- 11A watcher outside the house, and backups I've restored
- 12The drill that found the bug
- 13Alerts that only reach my phone when something needs me
- 14I had the monitor audit itself
- 15Teaching the hub to stop crying wolf
4. The network redesign
- 16"Don't take down my internet": the routine before every change
- 17The firewall upgrade, two days late
- 18Keeping the plan when the builder wanted to drop it
- 19Two Wi-Fi drops, and knowing when to stop
- 20The router at 90 percent
- 21Moving 40 gadgets without touching each one
5. The media server
6. The control center
- 24An overnight prototype, and bars instead of dials
- 25A nice hub, tucked away in a drawer
- 26Instructions for a phone I don't own
- 27Three checks before anything goes live
- 28Buttons with a seatbelt
- 29Rewind: replaying a Wi-Fi outage
- 30"I just want a more sensible layout"
7. Security
- 31A security scoreboard that started at a D
- 32Who's knocking: a security tab in two evenings
- 33Matching every program to the public flaw lists
- 34A DNS log for the house
- 35A weekly scan that can't annoy anyone
- 36The week of the scary flaw list
8. A private AI assistant
9. How the work got done
- 38Keeping a non-developer in charge
- 39A house manual that rebuilds itself every night
- 40My AI assistant keeps blocking itself, and I'm glad
- 41What it cost, what's next, and what I'd bring to an office
10. After the rebuild
- 42The backup that filled its own disk
- 43Two messages, one second, wrong order
- 44My help tool said "fine" at 7 megabits
11. Groceries
The hub reminds us when wet clothes have been sitting in the washer. One morning, someone in the house got that reminder after the clothes had already moved. The dryer was running. The hub was sure it wasn't.
What the history showed
Before changing anything, we read the dryer's message history. When the dryer starts, it sends two messages one second apart: "initial," then "running." Every start looked that way except two. On those two, both messages carried the same second, and they arrived in reverse order: "running," then "initial."
The hub keeps the latest message it receives, so it believed "initial" for the entire load, about an hour and a half each time. Other readings said otherwise. The time remaining kept updating, and the remote-start setting had switched on a second after each start. The hub wasn't looking at those. The washer never did this. Only the dryer, and only sometimes.
A timestamp wouldn't have saved us. Both messages had the same one.
The fix
When the hub sees "initial" now, it looks back at the history. If a started message sits within two seconds, it treats the dryer as running. If it can't read the history, it leaves the answer alone and tries again.
The reminder got a stricter rule too. It goes out only when the hub can see that the dryer is idle. Not knowing is no longer a good enough reason to bother anyone.
I added three tests for exactly these cases and tried the new code against live readings in a throwaway copy, where it read that night's dryer correctly. We also went back and repaired the two loads the record had missed, and the repair is written in the hub's change log.
Any system that reacts to messages from another one will eventually get them late, twice, or in the wrong order. Checking the history first would have saved us a false reminder. And when the hub can't tell, it leaves the answer alone and tries again.