Fire doors or smoke compartments are held open during factory or office hours by means of magnetic clamps. In order to prevent the spread of fire and smoke, smoke switches are used. In this way, doors and gates are automatically closed in the event of fire.