Fog Machine controller

Stop and do not go any further until you have a voltmeter and can measure the electrical characteristics of the switch and lamp that you will be interfacing with. Trial and error will just damage equipment and possible injure somebody - measure first, so you know what you're dealing with.

Once you have the meter and are able to measure what's going on, if any part of this product is connected to the mains then assume that all electrical components are at mains voltage unless/until proven otherwise.