As in other recent posts, 2 port valves have volt free end switches on the grey and orange wires.
3 port mid-position valves use the grey wire to move to CH only, and feed the boiler from the orange. This is obviously NOT VOLT FREE.
then you could use a relay on the orange switching volt free contacts.