Control and monitor battery charging to optimize for clean energy use.