开源项目用双Gemini模型协调家庭能源
开发者Romin Irani在GitHub上开源了cheap-watts,使用Google Antigravity搭配Gemini 4 Hydrogen和Gemini 4 Carbon,协调屋顶太阳能、家庭电池、两辆汽车及动态电价。该项目包含跨25次以上提交的离线测试、硬件抽象、CI安全检查和dry-run模式;后者可读取实时数据,但不向逆变器写入指令。Irani称,模型负责需求设计、编码和测试,他主要专注于架构与代码审查。
这是一份使用多模型和安全机制自动化实体家庭能源系统的具体开源实践,为智能体参与物理设备自动化提供了可参考的实现。
Running rooftop solar, a home battery, two electric vehicles (EVs), and dynamic hourly electricity tariffs requires tight coordination. Without automation, these systems work against each other.
At home, I run dual east/west solar panels feeding a hybrid inverter with a 10 kWh battery, alongside a plug-in hybrid, an EV, and dynamic tariffs from my electricity provider. On sunny days, you should never buy grid power when solar can charge the battery for free. On dark, cloudy days, you want to buy grid power only during the cheapest hourly windows. Moreover, if you charge the home battery from the grid before plugging in an EV, the car drains your charged home battery right away.
Last weekend, in a couple of hours of hands-on work starting Saturday evening, I engineered cheap-watts to automate this workflow and open-sourced it on GitHub, complete with a full offline unit test suite across more than 25 commits.
The best part? I almost never touched the code myself.
By pairing Gemini 4 Hydrogen and Gemini 4 Carbon inside Google Antigravity, I practiced agentic engineering and stayed focused on high-level architecture. Here are the three main takeaways from the weekend build:
#cheap-watts#Gemini 4 Hydrogen#Gemini 4 Carbon#Google Antigravity#GitHub