Letting Claude Rewrite My Home Assistant
After years of accreted config, dead sensors, and a failed ChatGPT attempt, I handed my Home Assistant to Claude to rewrite the YAML and clean house.
Self-hosted solar + battery ROI tracker, motorbike trip writeups with GPS routes, and notes on building it all with Claude Code.
After years of accreted config, dead sensors, and a failed ChatGPT attempt, I handed my Home Assistant to Claude to rewrite the YAML and clean house.
A week ago I said my battery had never breached its floor. Last night it did — not because the safety net failed to fire, but because a second safety system was running month-old code and kept turning the charger back off. Two backstops at war, and a human at 2am.
A year ago I put in a home battery and started timing my electricity buying — by hand at first, then a Python script I built. What the year added up to.
A Cloudflare 502 sent me to fix one thing. By the end of the night I'd found three more — numbers that had been quietly wrong for weeks.
The 0-byte ghost.db fossil at content/data is a Ghost migration leftover. The one that actually runs this site lives one directory over — 13 MB, 44 tables, and the entire reporting and automation layer for GPS, energy, SEO, alerts, and the planner.
Most home batteries charge whenever the rate is cheap. Mine compares this cycle's cheapest slot against the next cycle's, the projected drain, the SOC-aware ceiling, and a forecast of tomorrow's solar — every 30 minutes.
A small wrapper around an amazing open-source UK bin-collection scraper — plus three upstream council fixes I sent along the way.
Discover how Home Assistant automates your solar energy system to maximize savings with Octopus Agile pricing and intelligent self-management.