The wireless gang switch contains an agency that transforms the kinetic switch into electrical power in the state of a voltage pulsing. It works both when the lever is pressed and released. This action sends a signal to the configured transmitter which turns on lights or machines.
I think understand what you are asking, although it’s not clear to be honest. If you’re asking what converts the energy of you pressing a switch into electrical power, that’ll probably be a piezo crystal. (Look up piezoelectricity) An example of this would be found in one of those cigarette lighters when you press the button and a spark is generated to ignite the gas.