The present invention relates to a locking device suitable for allowing or restricting access into an area or space. According to one aspect the locking device comprises locking device comprises at least one locking element, such as a bolt or cam, and a catch arranged to immobilize the locking element. According to another aspect the locking device comprises at least one locking element, such as a bolt or cam, and a blocking member arranged to block the locking element from moving, and a catch arranged to immobilize the blocking member. The locking device further comprises a control member arranged to both move the locking element or the blocking member and to control the state of the catch.