The relationship between entropy and life is complex and has even "philosophical" ramifications. The following thought experiment seems simple enough to bring a clear answer, but I'm unsure of my conclusions and would appreciate some help.
(A) Let's imagine the following open system: a box containing a quantity of atoms - C, H, O, and so on, the usual suspects, in whatever random spatial distribution. The system is open because it receives energy in the form of radiation in the visible spectrum, and it radiates energy outwards so that the temperature $T$ in the box remains stable.
The principles of thermodynamics imply that temperature $T$, energy $E_A$, local entropy $s_A$ in that box remain constant. Global entropy $S_A$ increases since incoming energy dissipates in the rest of the universe.
Is this correct?
(B) Imagine the same box, same incoming radiations. But this time atoms are organised in molecules and cells allowing photosynthesis to take place in the box.
$T$ is still constant, but $E_B$ the energy in the box is increasing, since part of the incoming energy is stored chemically as additional organic material. Therefore energy dissipated into space is lower compared to (A). Local entropy $s_B$ decreases, since atoms are forced into a specific organisation, reducing the number of possible microstates. Is this correct?
Global entropy $S_B$ still increases. But does it increase less than $S_A$?
(Related questions : Local decrease of entropy, does it require life? ; Can life decrease the entropy of an isolated system? )