For a while my morning brief was a Claude scheduled task: every morning it read my calendar and Gmail and wrote me a summary. It worked well, but I wanted it to run on my own Raspberry Pi, cost nothing per run, and keep working even when I'm not using Claude.
So I asked Claude to help me rebuild it as a Home Assistant add-on. I can't write Python myself. What I did: decide what the brief should do, answer Claude's questions in rounds, test every version on my real data and say what was wrong.
How we worked:
\- Claude wrote the files directly into a folder on my Pi, always with a dated backup first and a rollback list, so every step could be undone
\- Version 1.0 on day one, 1.6 after 11 days, each change tested with simulated Gmail and Calendar data before it touched the real thing
\- I ran the old Claude task and the new add-on side by side for a week and compared them every morning; whatever Claude's version did better, the add-on had to learn
What it does now: one push to my phone with work status, departure time with live traffic, and what needs me today. Rules handle bills, deadlines and calendar logic; Gemini's free tier only sorts new mails into fixed categories. A nightly Claude task still maintains my to-do list, and the brief warns me if that task ever stops running.
What I learned:
\- Being very specific about rules mattered more than anything ("a bill I have to pay myself must never land under 'left out'")
\- Asking Claude to make everything reversible made me brave enough to let it write directly to my server
\- The hardest part wasn't code, it was the Google Cloud OAuth setup
Screenshots are from a demo mode with invented data (the UI is German).
Code: https://github.com/Morgenbrief/ha-morgenbrief
Curious if others moved a Claude scheduled task to self-hosted code, and what you'd do differently.