I have done it before. All you have to do is to wire a relay contact (normally open) across the switch. You would take one wire attached to one side of the switch to the "common" on your relay and the other side of the switch to the "normal open" side of the relay. Just verify that the relay contacts are not whetted which means they do not have any voltage applied to the contacts. I have done this with three of my fog machines and it has worked great to the last 3 years. Hope this helps. Keith