The wall socket can be turned on and off, so the light is turned on and off from the wall socket (crazy, but it was like this when we bought the house). The cable runs through the wall, from the wall socket to the undercupboard light, but I don't want every time to switch off the socket in order...