An actuating function that allows to open and close a device