Wireless magnetic contact for metal doors