Spent the better part of last Saturday sorting out the heat problem in the little alcove where my inverters and batteries live, and I wanted to share what ended up working since this topic keeps coming up.
For background, the gear sits in a recessed nook with a roller shutter in front that I have to keep closed most of the time because of the rain. The top of the nook is fully boxed in, so the warm air just sat there with nowhere to go. Inside temps were sitting around the high 30s on a normal afternoon, which is way too warm for the batteries long term. The fix turned out to be pretty simple. I cut a vent opening high up on the side wall of the alcove, right at the top where the hot air collects, and mounted an extractor fan there. Then I cracked the shutter open an inch or two at the bottom, which gives the fan a source of cooler air to pull through. Low intake, high exhaust, that's the whole trick. The fan runs on a thermostat so it only spins up when the space gets warm, which means it's mostly silent at night and barely uses any power from the system it's protecting. Checked it again yesterday after a full sunny day and the space was holding around 30, maybe a degree or two over, with the batteries noticeably cooler to the touch than before. Honestly I overthought this for months. I was pricing split AC units and worrying about running them around the clock when a cheap fan and a vent hole did the job. If your setup is anywhere near as small as mine, save the money and start with airflow before you go the aircon route.