Is there a gate valve on the cold feed to the cylinder?
Not cheap but it will do what you want...Easyflush Direct Valves with Infrared Sensor (Mains Flushing) Archives - Cistermiser
Combi or system boiler with zone valves ect :rolleyes:
Could you narrow it down a bit ?
Separate names with a comma.