Thre should exist industrial control relays and such that would be code compliant, maybe not in the panel, but maybe downstream. Or those remote control light switch relays that fit in knockouts of boxes with the low voltage wiring outside the box.