I can’t speak for the batteries (mine are scheduled to be fitted next month, 5 x 5.1Kw INSIDE my external garage, never gets cold/hot in there)
However the inverters have capacitors, they don’t like getting too hot, in my previous job I was involved in the design and manufacture of machinery, they had inverters in them, never had a problem in ‘normal’ ambient temperatures, however every machine that was in some of the hotter country factories (45+ degrees) on the factory floor, hotter in the electrical panels, the inverters failed on a very regular basis, had to retrofit AC systems to maintain a nice 25 degrees, never had an inverter fail thereafter.
My inverters will also being fitted in my garage, the thought of fitting them in a loft space in my mind is madness, PITA to work on and they will see the extreme of temperatures, my loft is unbearable in the summer months.
Chris.