Here is a diverter valve. A lock on a canal would work like a diverter valve on a boiler. It opens and closes so that hot water and the water in the heating system can be heated.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.