I think the dimmer control works using a ground connection, meaning the switch alters the ground contact resistance. whether this will affect your intentions, I am not sure.