Solar decision engine
A solar and battery decision built on how my house really uses power, hour by hour. I built it to see how far AI could take the analysis, and to make a better-informed call on solar than a bill and a quote would give me.
01
What it is
I wanted to know whether solar and a battery would pay off for our house, and I wanted to find out how much of the analysis AI could do on the way to that answer. So I built a simulator with Claude Code over four days. It simulates a whole year of electricity half an hour at a time, against real wholesale prices and 19 years of sunshine records. This is my hype video, which I got Opus to make to show how it all works.
The video runs on a demo household, so the payback and prices on screen are the demo’s.
A recent bill and a rough look at the roof give you a rough indication, and that is what most solar calculators work from. I wanted to push it further and see how detailed I could get. So this is what I did.
I pulled five years of our Contact Energy bills, added local weather, sunshine records and a model of the roof, and built a decision dashboard, a weekly digital twin of the house and a half-hourly simulator on top of that. The model points to about 10 kW of solar, and the next step is installer quotes.
02
How AI got me the data
Contact has no API and no download for hourly usage. The hourly figures exist only inside the interactive graphs on its website. So I had Claude drive a browser through those graphs for me, window by window, and capture the hourly consumption from a snapshot of each one. That gave me real hourly data for the weeks it could reach, alongside the bill PDFs and the monthly and daily totals. The windows it could not reach stay as gaps in the database rather than being filled in.
For the weather I asked Claude to research what was available for our area, then sign up and pull it. It found a weather station a few kilometres from the house that publishes its own observations, which gave me temperature, humidity, rain, pressure and wind. Open-Meteo’s historical weather API gave me hourly cloud cover, sunshine duration and solar radiation, and PVGIS gave me 19 years of satellite sunshine records for the location. All of it landed in one SQLite database next to the electricity data.
Google’s Solar API models the roof from aerial imagery. For ours it found eight roof segments facing different ways, rather than the single north-facing rectangle a simple calculator assumes, with usable area and shade for each. I combined that with my own photos of the roof to check what the imagery was showing, and the roof model came out far more accurate than a postcode estimate.
The meter only sees the whole house, so I walked round and photographed the big consumers: the pool heat pump, the pool pump, both hot water cylinders, the spa and the heat pumps. I fed the photos in, and Claude identified each unit from its plate and gave me a detailed breakdown of what it draws and how it runs. That became the load model: an estimate of what each system uses, with low, base and high cases, reconciled back to what the meter measured.
From all of those inputs I built the digital twin. It replays real measured weeks hour by hour with the weather that went with them, and it runs scenarios against the history of sunshine and cloud rather than a single average year.
03
From the meter to a decision
Most of the work went into the Contact data, which came as bill PDFs, portal exports, graph captures and patchy hourly series that all had to land in one place without the gaps being filled in by guesswork. With that in one database, the weather, the roof and the scenarios went on top.
04
What the digital twin can do
The twin is a weekly operating model of the house. It replays 16 complete measured weeks from Contact, or a representative week for any month, with the weather that went with it. Every scenario runs on the same 168-hour clock, and every one has to balance: load, solar, battery and the system schedules all reconcile before a change is accepted.
Six systems can be moved: the two hot water cylinders, pool circulation, pool heating, the spa and the car charging. Each has a measured cap, a flexible share and a target start time, so I can ask what happens if the pool pump runs through the middle of the day instead of the evening, or the cars charge from the roof at lunchtime instead of overnight. Moving a load keeps its energy the same, and any change to how much it uses is shown as a separate multiplier.
The weather lens switches a week between the weather that happened, a typical week, a bright one and a cloudy one, each drawn from a whole week of history rather than spliced together hour by hour. The solar slider runs from 0 to 15 kW, and there is one 13.5 kWh battery with a backup reserve and a carry-in policy for how full it starts the week. The weekly ledger then shows where every kilowatt-hour went: straight from the roof, through the battery, or from the grid, with the cost beside it.
The fidelity is explicit about what each number is. The meter is measured, the appliance split is an estimate, the weather is context and every change I make is a scenario. The tool labels which is which on every screen, and the one week built from graph captures is marked as reconstructed and off by default.
05
What it told me
What the house uses, hour by hour. An average January weekday comes to about 64 kWh, and the pool, spa, two hot water cylinders and charging for two cars make up most of it. Today our bill is about $6,361 a year.
Which loads can move into daylight. Water and pools store heat, so they work a bit like a small battery. Moving them and the car charging into the middle of the day saves about $505 a year on my current plan before I buy a single panel. With 10 kW of solar it lifts the share of a January weekday that solar covers from 60% to 76%.
What the roof can produce across the seasons. The roof has several planes facing different ways. Ten kilowatts across them makes about 13,400 kWh a year, and January makes 2.6 times as much as June, so winter stays the hard part.
What a battery adds. Our flexible loads already soak up most of the midday surplus, so a 16 kWh battery adds only $170 to $460 a year for about $21,500 more. The model says to buy one for backup and independence if I want those, and to leave it out on savings alone.
Where it landed. The model points to about 10 kW of solar paying back in about six years, with a 13.2 kW stretch layout worth pricing. Next I want quotes for solar alone and with a battery, plus a shade survey.
It’s a screening tool for one house. The appliance split is estimated from whole-house data and the roof model uses older imagery. The video and the screenshots have my address and location taken out.