A switch device (10) and method for generation of energy for operating the switch device (10), wherein the switch device (10) is provided with a drive unit (120) interacting with an actuation device operable by a user, and with a moving device (130) configured to be set in motion by the drive unit (120), and with an energy harvester (132, 140, 140a) for providing energy to the switch device (10) in dependence on a motion of the moving device (130), such that energy for commands or other operations is provided to the switch device (10). The moving device (130) is configured to be repeatedly repositioned in relation to a defined zero position, as long as it has kinetic energy, in order to provide kinetic energy which can be converted in electric energy by the energy harvester (132, 140, 140a). Such an electromechanical device for generating energy can ensure wireless operation of the switch device (10) without the need of batteries or any other kind of power supply.