The switch is of the bi metallic type and works as it heats up when the door is closed and the water level or start switch is activated and so the parts inside move to lock the door.
How does a washing machine door lock work.
When you shut the door the latch on the door pushes inside the door lock and activates an electrical part inside which locks the door shut.
How does a washing machine door interlock work.
The door interlock is commonly known as a door lock.
Understanding how a door lock works helps in deciding if one is faulty or not.
So one of the connections goes to mains hot and to one side of the heater wire on the bi metallic switch.
Tie the end of the string in a knot once it s completely wrapped around the door.
You need to tie the line on the side of the machine that is opposite to the lock.