Suppose I have a photochemical reaction in gas phase, such as $$ \ce{CO2 + {$h\nu$} -> CO + O}. $$ I would like to work through the thermodynamics of such a reaction and understand the meaning of every term.
For a non-photochemical reaction, such as $\ce{CO + O -> CO2}$, I have a good understanding of how the change in Gibbs energy breaks down into enthalpy, internal entropy and a log-concentration term corresponding to the entropy of mixing. If I ignore the photon in the first reaction above, I can regard it as simply the reverse of this reaction, which due to its photochemical driving force is able to reduce the Gibbs energy by the same amount, $\Delta G$. All of this is unproblematic.
However, $h\nu$ itself is an energy change, which I can calculate, assuming I know the frequency $\nu$ of the absorbed light. I would like to know how to think about the thermodynamics of the whole system, including the coupling of the chemistry to the radiation field. In particular, my questions are:
How does the energy $h\nu$ relate to the other terms with energy units, such as $\Delta H$ and $\Delta G^0$?
I know that while a single photon has no internal entropy, a beam of light of a particular frequency can be thought of as having a temperature and an entropy. How should I think about the role of radiation entropy in the thermodynamics of photochemistry, and in particular, how can I do second-law calculations for photochemical reactions?