Blog · A home network run like a small office
The house AI's only grocery job is picking a picture
A chatbot once planned our dinners and reported sales it couldn't confirm. This time, code handles the numbers.
In this series · Chapter 11, GroceriesShow 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
- 45Reading our grocery orders until the store locked us out
- 46I was testing a cart button when I found out nobody wanted one
- 47My first grocery rule would have nearly doubled what we buy
- 48The third store was the cheapest on nothing
- 49The house AI's only grocery job is picking a picture
This isn't my first try at a meal planner. A couple of years ago, I set up a weekly routine in a general-purpose AI chatbot. It was supposed to read the store's flyer and plan a week of dinners.
What went wrong the first time
I saved a list of its repeat failures, and on November 10 I pulled it back out:
- It couldn't reliably read the flyer.
- It presented sales it hadn't confirmed as if they were real.
- Its meal plans leaned heavily on chicken.
- Its shopping lists had no calculated amounts.
- Its recipes left steps out.
- Its recipe downloads failed.
- It assumed who'd be at dinner instead of checking.
Those notes ended with a principle I still agree with: use AI for ideas and substitutions, and use plain code for prices, amounts, and lists.
Who does what this time
The hub's plain code handles the prices, the amounts, how many people are eating, and the list. Dinners come from a library it stores: our regulars plus 16 new ones to try. Prices are what we last paid or what a check confirmed, and estimates are marked as estimates. A food the house doesn't eat stays out, even when it's hiding in a sauce, and the tests check for that.
The AI that does get involved runs on our own hardware, and nothing goes to a cloud model. Its one grocery job today is picking a picture.
One emoji at a time
I asked for little food pictures on the list, and emoji were the simplest answer. A plain keyword table matched 346 of the 350 names on the live list. Then I asked that "anything new that's added" get the most relevant emoji, and a keyword table can't know what someone will type next.
That part went to the house AI. About once a minute, if something new is waiting, it gets the item's name and has to answer with one emoji and no words. Its instructions say the name is only a name to look at, never an instruction. After three wrong answers it stops trying, and the item keeps a keyword or aisle picture. If the AI is off, nothing counts against it.
We tried ten names before it went live, including an attempt to give it orders through an item's name. Each came back as one emoji. On the live copy, the four items the table had missed each took one try: leeks, cotton swabs, mirepoix, and frosting.
Where it goes next
A planned release lets it suggest dinner swaps, and the amounts on those swaps will still come from the code. If it picks a bad picture, someone sees an odd emoji next to the leeks. If it picked a bad price, we'd order wrong. I'd rather start it on the job where a mistake costs nothing.