A locking device for a door of a domestic appliance, wherein - the locking device comprises a main body, - the locking device comprises a locking hook element supported pivoting in and/or at the main body, - the locking hook element is pivoting between an engaged position and a disengaged position, - the locking hook element is engageable with and disengageable from a corresponding counterpart, - the locking device comprises an electric actuator arranged in and/or at the main body and mechanically connected or connectable to the locking hook element, - the locking device comprises a first spring element interconnected between the locking hook element and the main body, - the first spring element effects a movement of the locking hook element from the disengaged position to the engaged position, and - the counterpart is a recess, wherein the counterpart is adapted for receiving a protruding part of the locking hook element, the locking device comprises an actuating slide element interconnected between the electric actuator and the locking hook element, wherein said actuating slide element effects the pivoting of the locking hook element from the engaged position to the disengaged position, the locking device comprises a second spring element interconnected between the actuating slide element and the main body, wherein said second spring element effects a movement of said actuating slide element away from the locking hook element, the locking device comprises a door sensing slide element provided for detecting the presence or proximity of the door in a closed position or nearly closed position of said door, wherein the locking device comprises a third spring element which constrains the door sensing slide element to the main body, and the locking device comprises a sensor switch activated or activatable by the door sensing slide element, if said door sensing slide element is pushed by the door, wherein the sensor switch is electrically connected to a control system of the domestic appliance, characterized in that the electric actuator effects the pivoting of the locking hook element from the engaged position to the disengaged position. - the locking device comprises a main body, - the locking device comprises a locking hook element supported pivoting in and/or at the main body, - the locking hook element is pivoting between an engaged position and a disengaged position, - the locking hook element is engageable with and disengageable from a corresponding counterpart, - the locking device comprises an electric actuator arranged in and/or at the main body and mechanically connected or connectable to the locking hook element, - the locking device comprises a first spring element interconnected between the locking hook element and the main body, - the first spring element effects a movement of the locking hook element from the disengaged position to the engaged position, and - the counterpart is a recess, wherein the counterpart is adapted for receiving a protruding part of the locking hook element, the locking device comprises an actuating slide element interconnected between the electric actuator and the locking hook element, wherein said actuating slide element effects the pivoting of the locking hook element from the engaged position to the disengaged position, the locking device comprises a second spring element interconnected between the actuating slide element and the main body, wherein said second spring element effects a movement of said actuating slide element away from the locking hook element, the locking device comprises a door sensing slide element provided for detecting the presence or proximity of the door in a closed position or nearly closed position of said door, wherein the locking device comprises a third spring element which constrains the door sensing slide element to the main body, and the locking device comprises a sensor switch activated or activatable by the door sensing slide element, if said door sensing slide element is pushed by the door, wherein the sensor switch is electrically connected to a control system of the domestic appliance,