There is research on whether solar arrays would be a net benefit. Those cells would catch most of the sun’s light, turn it into electricity to power the LEDs that have wave lengths that are better matched to what the plants need.
Mass produced photovoltaic is 22% efficient. LEDs tuned to the plant are 50% efficient. Net efficiency 11%. Now you need 9 times as much land to grow the same number of plants.
Plants reject a lot of the visible spectrum. The question is, can you make up for the losses in solar panels by giving plants light that they can use more efficiently?
But yeah shutters or something smarter (like two-state glass) should work IMO. I think you even get glass that can switch to mirror mode.