r/nzsolar • u/RyanBurnettNZ • 16h ago
I built a Claude agent in Home Assistant that texts me a daily solar plan and an evening energy report (Chch, Deye hybrids + ecoSOLAR)
Kia ora all. We had ~19 kW of panels, two Deye hybrids plus two grid-tie units and a 32 kWh battery installed in Christchurch this spring, then moved to Ecotricity's ecoSOLAR plan. I got sick of checking three apps (Deye, SolarMan, Mitsubishi) so I wired everything into Home Assistant and added a Claude agent (Anthropic integration, Haiku) to do the thinking for me.
What it does:
- 6:30am plan: checks the day's weather forecast and battery level, then tells me when to run the dishwasher, washer, dryer, spa and hot water, what to set the kids' heat pumps to, and whether to charge the EV on solar.
- 8:30pm report: what we spent on import, what we earned on export at ecoSOLAR's time-of-use rates, the net for the day, plus tomorrow's outlook.
- Alerts: spare-solar nudges when the battery's full and we're exporting at the cheap rate, plus a warning if battery charge current drops to 0 A.
- History: logs 14 days of daily figures and per-appliance usage (Shelly meters) to a dashboard.
Lessons learned:
- Set the Claude agent's thinking budget to 0 and raise max tokens (~4000), otherwise the reports cut off.
- Phone notifications truncate, so the full report also goes to HA Notifications.
- Use the station-level grid import/export sensors. The per-inverter ones only count the hybrids.
- If you see grid draw in the evening with a full battery, check your Deye work mode. "Zero Export To Load" only covers the load port.
Typical good day lately is 80-99 kWh generated and 90%+ self-supplied. Happy to share the YAML if anyone wants it. Keen to hear how others are automating on ecoSOLAR or other export plans.


