Bjarney: I have learned that ABSOLUTELY NOTHING can deter fire ants. They cause terrible problems here in Southeast Texas. I replaced a contactor on my Air Conditioner condenser unit a couple of summers ago because of these things. I haven't the slightest idea what draws them to electrical equipment.
I can't speak for fire ants, but little critters like earwigs and pillbugs seem to be drawn to silver in contacts, to the point of suicide squished under mating pairs of contacts. I'll bet more than a few contactors and water-pump pressure switches have been replaced without looking for or knowing about a flattened little pest.