You could take a metal cased switch and add vent holes and a fan.
Port switch for attic use.
A few solutions come to mind.
However such a device could be needed.
If you have central ac ducts in the attic you can install the switch in the duct to keep it cool.
This might keep it running.
Loading ubiquiti community ubiquiti community.
Wherever that extension cord is connected to power you could extend that circuit from there to the poe and then connect the poe.
96w power available to all poe ports.
10 100 1000mbps gigabit ethernet uplink and sfp optical fiber uplink.
Supports maximum 30w power poe plus 802 3at and 10 100mbp to each poe port.
Add a ceiling vent and insulate above it so the switch is in the cooler room air.
Trendnet 16 port unmanaged gigabit greennet desktop metal switch teg s16dg ethernet splitter ethernet network switch 16 x 10 100 1000 rj 45 ports 32 gbps forwarding capacity lifetime protection black.
It is perfectly safe to install a switch in the attic.
What i was commenting on was the extension cord in the attic.