@spacelizard Whatever the reason for the ants being attracted to your electrical equipment, I have found this brand of ant bait to work very well when grease / patio ants get into my home. Just pop a couple of these inside your panels to solve the problem. https://www.hotshot.com/products/ant-roach-and-spider-control/new-package-2040w-maxattrax-ant-bait.aspx