Solar panel as day/night switch for a load
The way most flag LED spots turn on only after dark is a voltage comparator that switches on when the solar panel output drops below about 1.2V or so.  The voltage output from a solar panel decreases as it loses its light source.  You would need the specs from the solar panel to figure out the precise trigger voltage.  Or lacking that 1.2v is a decent rule of thumb.