A device for controlling the flow of a fluid that is configured as a 3/2-way valve, comprising - a valve body with three valve ports , wherein a first and a second fluid path are formed in the valve housing that extend between the three valve ports , - a first valve seat that is associated with the first fluid path , - a second valve seat that is associated with the second fluid path , - a closing body that is arranged to be coupled to the first and second valve seat to block or unblock the two fluid paths , and - an electromagnetic actuation unit for actuating the closing body , comprising a first electromagnet and a second electromagnet , wherein the first electromagnet and the second electromagnet are arranged one behind the other in a longitudinal direction , wherein the first electromagnet comprises a first movable armature and the second electromagnet comprises a second movable armature that are movable in the longitudinal direction to produce an armature stroke, wherein the first armature and the second armature are mechanically coupled for motion entrainment, wherein the first armature and the second armature are coupled with one another for motion entrainment in the longitudinal direction via a connecting piece that is configured as a pin and disposed between the first armature and the second armature , wherein the connecting piece is made of a non-magnetic material so that magnetic decoupling is provided between the first electromagnet and the second electromagnet , wherein the first electromagnet and the second electromagnet have a common magnet yoke , wherein the first valve seat and the second valve seat face each other, and wherein the closing body comes into contact with the first valve seat in a first switching position to block the first valve seat , and comes into contact with the second valve seat in its second position to block the second valve seat . - a valve body with three valve ports , wherein a first and a second fluid path are formed in the valve housing that extend between the three valve ports , - a first valve seat that is associated with the first fluid path , - a second valve seat that is associated with the second fluid path , - a closing body that is arranged to be coupled to the first and second valve seat to block or unblock the two fluid paths , and - an electromagnetic actuation unit for actuating the closing body , comprising a first electromagnet and a second electromagnet , wherein the first electromagnet and the second electromagnet are arranged one behind the other in a longitudinal direction , wherein the first electromagnet comprises a first movable armature and the second electromagnet comprises a second movable armature that are movable in the longitudinal direction to produce an armature stroke, wherein the first armature and the second armature are mechanically coupled for motion entrainment, wherein the first armature and the second armature are coupled with one another for motion entrainment in the longitudinal direction via a connecting piece that is configured as a pin and disposed between the first armature and the second armature , wherein the connecting piece is made of a non-magnetic material so that magnetic decoupling is provided between the first electromagnet and the second electromagnet , wherein the first electromagnet and the second electromagnet have a common magnet yoke , wherein the first valve seat and the second valve seat face each other, and wherein the closing body comes into contact with the first valve seat in a first switching position to block the first valve seat , and comes into contact with the second valve seat in its second position to block the second valve seat . <EOS>