Heat can be transferred in three methods - Conduction, Convection and Radiation.
A heat sink works on the conduction method and unlike an electrical diode, it works in both directions. So although you can get heat from the sun when it warms the heat sink, when the sun is not out, it would suck heat out of the hive.