You need what is known as a: "3 port bypass valve", a motorised valve effectively; a small probe is connected to the cylinder and when the cylinder temp. reaches a preset value the valve diverts water flow away from cylinder to the space heating circuit only. To accommodate this set-up you need a cylinder with a female tapped connector to accept the probe. Your system may require some other modifications to ensure that the boiler unit is not over-cycling as a consequence of fitting this set-up, your plumber should be able to advise. I'm not a plumber but I have seen this arrangement fitted on many systems and it is another effective energy saving control- also prevents scalding from a cylinder which is storing water at too hot a temp.