An unexpected role of the monodentate ligand in photocatalytic hydrogen production of the pentadentate ligand-based cobalt complexes.