Thermodynamic aspects of the transition to spatiotemporal chaos