Switches in which the opening movement and the closing movement of a contact are effected respectively by heating and cooling or vice versa