TL;DR
My kid's daycare posts everything in an app. I wanted the parts I check every day on our Home Assistant dashboard, so I built an integration for it.
Plain Python handles the facts: arrival, naps, meals, pickup. Claude handles the prose: messages, comments, photos of the weekly menu.
The instructions for the LLM half are a Markdown file. Most changes to what it notices are a sentence or two in it.
The riskiest part was one button, because the API call behind it is a toggle.
Daycare runs on an app. Every day the staff log when a child arrived, what they ate and how long they napped. They also post messages, photos and the weekly menu, and parents reply in the comments.
It's all useful, and it's all one more app to open. Some of it is a number I want at a glance. Some of it is a deadline in the third paragraph of a message. I already have a place at home for things I want to see at a glance, so I moved it there.
I'm leaving out the names of the daycare and the app, and every example below is invented.
Finding the data
I didn't have API documentation, so I wrote a small script that logs in with my own account, downloads the web app's JavaScript and lists the API paths it mentions. A second script calls a few of them and prints the shape of the responses: keys and types, no values.
That was enough. Nearly everything I needed came from one feed, with two kinds of entry: a message, or a child's daily record. The rest of the pipeline looks like this:
daycare app
│ every 30 minutes, on weekdays
▼
sync script ──► JSON, one file per child per day
│ ▲
│ │ summary, flags, menus
│ Claude ──► family calendar
▼
Home Assistant ──► dashboard card, widgets, CarPlay
It runs from cron on a home server. There's no database, just files. When something looks wrong, I open one and read it.
Code for facts, an LLM for prose
This is the decision I'd make again. If a value is already structured, an LLM shouldn't touch it.
Arrival time, nap length and how much of lunch got eaten are fields in a response. Python copies them, converts the timezone and adds up the minutes. It's boring and cheap, and it gives the same answer every time.
Messages are different. No field says "this needs a spare change of clothes by Friday". That's where Claude Code comes in, running headless after each sync. It does four things:
- Summarises the day in a sentence or two.
- Flags what matters: illness, incidents, missing supplies, schedule changes, deadlines, anything that asks parents to act.
- Reads the weekly menu, which is posted as an image, and turns it into JSON.
- Adds dated events to the family calendar, after checking they aren't there already.
A flag looks like this:
{
"level": "info",
"reason": "Bring a spare change of clothes by Friday",
"source": "post-123",
"quote": "Please remember to send a spare change of clothes by Friday."
}
The quote is my favourite field. A summary asks you to trust it. A quote lets you check.
The prompt is a Markdown file
The job's instructions live in the repo's CLAUDE.md, as a numbered list of steps. The cron script tells Claude to follow them, with a short list of tools it's allowed to use.
Most of my tuning has been editing that file. Flag threads about lost belongings, even when they're settled. Read my own comments for context, but never flag them. Ignore pleasantries. If only part of the menu is known, say only that part and never invent the rest.
Writing those as code would have meant a pile of keyword rules, each wrong in its own way. In the file, each one is a sentence, and it's versioned like everything else.
From a message to the calendar
Daycare events arrive as messages: a parents' meeting, a party, a closure, a trip that needs a packed lunch. Reading the message is only half the job. Someone still has to put the event in the calendar. Now Claude does that, through the Google Calendar connector, and adds it to our family calendar.
The rules are in the same Markdown file as everything else:
- Only real, dated events. A meeting next Thursday at 18:00 counts. "Sometime next month" doesn't, and neither does a deadline with no event attached.
- Unknown time means all day, unknown end means an hour. It never guesses a time.
- A reminder the day before.
- A description that cites its source: a short summary, the original quote, the post's id, and a line saying Claude created the event.
- Look before you write. The job runs every 30 minutes, so before creating an event it lists that day's events and skips the new one if a similar one is already there. It also skips things I've already scheduled myself.
It also looks back over the last few days of posts, not just today's. An event mentioned on Monday still gets added on Tuesday, even if the first run missed it or the date only came up later in a comment thread. Every event it creates also shows up as a flag on the dashboard, so I see it happen.
The tool list matters as much as the prompt. The job can list events and create them. It can't edit or delete anything, so the worst it can do is add one event too many.
Reality is messier than the API
A few things the happy path didn't cover:
- Timestamps have between one and seven fractional digits. Before 3.11, Python's
fromisoformatwasn't that flexible, so I fixed it once, then had to fix it again. - The menu isn't always a menu. Some weeks there's no image, and the only clue is a staff reply in a comment thread or a note on that day's lunch. The sync falls back to those and marks the result as partial.
- The plan isn't what got served. "Seasonal fruit" on the menu becomes "banana" in the daily record, so the record wins.
- The LLM step can fail. A login can expire. The script now syncs and writes the facts before it calls Claude, so a failure costs me the summary but not the arrival time.
The button
The dashboard began as read-only. Then I added check-in and check-out.
Parents register attendance by scanning a QR code in the app. My button sends the same request the scan does, from the dashboard or from CarPlay when I'm doing the drop-off. The catch is that the same code does both jobs. There's no "check in" and no "check out", only "flip".
A toggle is a bad thing to put behind a button. A double tap undoes itself, and a stale screen does the opposite of what its label says. So the button never just sends the request:
- The caller has an intent, in or out. If it doesn't give one, the time of day decides.
- The server reads the live attendance record, not the cached one.
- If that record doesn't match the intent, it refuses and says why. Nothing is sent.
- Only one request can be in flight at a time.
- Afterwards it syncs again and reports the state it ended up in.
On the dashboard there's a confirmation dialog too. In the car there isn't, so the server-side checks are the safety net. No automation presses the button: attendance is a record of where a child is, so a person should decide to register it. No LLM is involved either.
The project's instructions also say never to test it by hand. It would register real attendance for a real child.
Getting it on screen
Home Assistant reads the JSON straight from disk with a command line sensor, and a custom card draws it: arrival and pickup, nap, menu, how much was eaten, flags and the past week.
The same data feeds lock screen widgets, which have room for three short lines. Choosing those three was harder than building the card. I ended up with where they are, how they slept, and the most important flag, or lunch if there isn't one.
What I'd keep in mind
This is an unofficial integration, so it can break whenever the app changes. It uses my own account to read what that account can already see. If it breaks, I open the app like everyone else.
It's also data about a child, so it deserves more care than my other side projects. The data and credentials stay out of git. Using an LLM means message text leaves the house, and that was a trade-off to decide on, not a detail to skip over.
In the commit history, the first dashboard card landed nine minutes after the first sync. The weeks since went into the menu that arrived as a comment, the button that shouldn't fire, and the rules for what's worth interrupting a parent for. As I wrote in You still need Project Managers, AI made building cheap. Deciding what deserved one of those three lines was still my job.
Photo by charlesdeluvio on Unsplash.
